Greetings, All!
I'm still learning a lot about Arduino UNO and friends. I'm working on some Halloween projects and one of them has me stumped.
My UNO is VID 2341, PID 0043. ( I've got the serial number if it's a help). I have the UNO connected to an 8-relay board (5 VDC control, 12 VDC through the relays). Each Relay is activated from a port on the UNO (outputs 3,4,5,8,9,10,11,12). The relay controls 12 VDC LED lights. The relay board gets 5 VDC from the UNO power points on the UNO. There are two servos, one to open the front door (output 6) and the Hangman (Output 13) handle the command, power from a 5 vdc terminal on the power bus. The relay operating power comes from the UNO 5 vdc and GND ports on the board. (RELAYS are 5 vdc coil and 12vdc load). The hangman power is sourced from a 12 vdc to 5 vdc converter on the bus.
When I was testing and working to get the sequence exactly the way I wanted it, I was connected to the laptop via the UNO USB port. I even had the 'Serial' function set up so I could see where the program was during testing. (a nice feature BTW for troubleshooting!). When I was satisfied that it was working like I wanted it, it operated for most of a couple of days with no issues. The haunted house is about 18" wide and 13" deep doll house we rescued from the trash man.
Since the 12 vdc source was connected the whole time, as well as the 12 vdc power plug on the UNO (12 + in center, 12- on outside), I unplugged the USB from the UNO and let the program continue. I also tried resetting it. What happens is the hangman sequence is supposed to turn on a light to show the hanger isn't there, the light turns off, the servo swings the hanger out, the light comes back on. The light goes off, the hanger swings back out of the window and the light comes back on to show the hanger is gone. Light goes off and other things go on.
When the USB is disconnected, the servo for the hanger swings out and then right back, and a light in another area of the 'house' turns on and off. The other servo (door) moves faster and slower as it works. Not the same type of operations when it's plugged into the usb.
I'm really stumped on why this isn't working the same when it's unplugged from the laptop. Obviously, I won't be able to leave my laptop connected to the UNO in my front lawn during Halloween.
Any ideas on how to make this work? I can share the program if it would help.
Thanks,
Larry




