Hot answers tagged

3

I may experiment with a simple photocell used to turn lights on or off, and a light source for night time. Mount the photocell so that its lens is upwards towards the sky, at night you'd need a light source shining on the photocell, I'm thinking a very low wattage led light to reduce power consumption, or even another photocell or astronomical time clock to ...


2

I found this code for the SRF05 and it works for the SRO4M-2 as well. Good Luck! const unsigned int TRIG_PIN=13; //RX const unsigned int ECHO_PIN=12; TX const unsigned int BAUD_RATE=9600; void setup() { pinMode(TRIG_PIN, OUTPUT); pinMode(ECHO_PIN, INPUT); Serial.begin(BAUD_RATE); } void loop() { digitalWrite(TRIG_PIN, LOW); delayMicroseconds(2); ...


1

Nano board has a bunch of analog and digital pins. It does good and cheap. But for convenience UNO board is preferable for its large size easy handling and easy pin and wiring management.


1

You have: digitalWrite = (redLED, HIGH); This is incorrect since digitalWrite is a function not a variable. Instead you likely want: digitalWrite(redLED, HIGH); This calls the digitalWrite function with the two arguments.


1

I think it is because of power consumption. If the LEDs consume lots of power, the LED on Arduino(typically mini red LED) will be off or faded. So before you connect the LEDs, check the mini red LED which is on Arduino and after connection the LEDs, check ones again. If the red LED is faded or off, the problem must be power consumption. Connect 12v or 5v ...


1

Have a look at: YEONHO_ELECTRONICS_20037wr YEONHO_ELECTRONICS_SMH200 YEONHO_ELECTRONICS_YST200 or CJT CONN A2008 WR S 4P / A2008 H ......


Only top voted, non community-wiki answers of a minimum length are eligible