Arduino prototyping

8×8 LED matrix is funnier with animated pixel art ;-p [huge_it_gallery id=”22″]

Published
Categorized as Arduino, dev

Arduino distance logger

Un petit bout de code pour utiliser le module à ultrasons compatible Arduino. const int TrigPin = 2; const int EchoPin = 3; float cm; void setup() { Serial.begin(9600); pinMode(TrigPin, OUTPUT); pinMode(EchoPin, INPUT); } void loop() { digitalWrite(TrigPin, LOW); //Low-high-low level sent a short time pulse to TrigPin delayMicroseconds(2); digitalWrite(TrigPin, HIGH); delayMicroseconds(10); digitalWrite(TrigPin, LOW); cm… Continue reading Arduino distance logger

Published
Categorized as Arduino, dev