Kijken

 

 

Buzzer

#include <Ultrasonic.h> Ultrasonic ultrasonic(6,5);// 6 trig , 5 echo const int buzzer = 7; // pin buzzer void setup(){ pinMode(buzzer,OUTPUT); } void loop(){ int dist = ultrasonic.Ranging(CM); if (dist <…

Laser

int laserPin = 10; void setup () { pinMode(laserPin, OUTPUT); } void loop () { digitalWrite(laserPin, HIGH); delay(100); digitalWrite(laserPin, LOW); delay(100); }

Meerkleurige LCD

/*Interfacing RGB LED with Arduino * Author: Electrofun * For more information visit us: www.electrofun.co.in * Video explanation at: https://www.youtube.com/playlist?list=PLnDLZy2UodwHt3Z8bD6V8lsegmc2yGuMP */ //Defining variable and the GPIO pin on Arduino int…