Axiometa
Axiometa Spark
Axiometa Spark
SKU:MTA0002
Regular price
$18.99
Regular price
Sale price
$18.99
Unit price
per
Taxes included.
Shipping calculated at checkout.
Couldn't load pickup availability




PCB Design
-
Top
-
Bottom
Arduino Code Example
#define ACT_LED 13
#define PWM_LED 10
#define BUTTON_PIN 2
#define LDR_PIN A3
void setup()
{
Serial.begin(9600);
pinMode(ACT_LED, OUTPUT);
pinMode(PWM_LED, OUTPUT);
pinMode(BUTTON_PIN, INPUT);
attachInterrupt(digitalPinToInterrupt(BUTTON_PIN), interuptHandler, FALLING);
startupLED();
}
void loop()
{
lightDetection(); //if the surrounding light is too low, the led turns on
PWM(); //fades a PWM LED
}
void startupLED()
{
for (unsigned int i = 0; i < 5; i++)
{
digitalWrite(13, HIGH); delay(100);
digitalWrite(13, LOW); delay(100);
}
}
void lightDetection()
{
int dataLDR = analogRead(LDR_PIN);
if (dataLDR > 400)
{
digitalWrite(ACT_LED, HIGH);
}
else
{
digitalWrite(ACT_LED, LOW);
}
}
void PWM()
{
for (int fadeValue = 0 ; fadeValue <= 255; fadeValue += 15)
{
analogWrite(PWM_LED, fadeValue);
delay(30);
}
for (int fadeValue = 255 ; fadeValue >= 0; fadeValue -= 15)
{
analogWrite(PWM_LED, fadeValue);
delay(30);
}
}
void interuptHandler()
{
Serial.println("Hello from Axiometa Spark - you pressed a button");
}
Guides and Blogs
-
First time setup
Pair text with an image to focus on your chosen product, collection, or blog post. Add details on availability, style, or even provide a review.
-
Using Core WiFi with Toit
Pair text with an image to focus on your chosen product, collection, or blog post. Add details on availability, style, or even provide a review.
-
Making first Web Server
Pair text with an image to focus on your chosen product, collection, or blog post. Add details on availability, style, or even provide a review.