SparkFun Forums 

Where electronics enthusiasts find answers.

For the discussion of Arduino related topics.
By Kent Martens
#194375
I have a 4D display to monitor data coming from an Arduino Uno sending controls to another Arduino via Bluetooth. The 4D display is on a SoftwareSerial port while the Bluetooth Mate is connected to a normal hardware serial port. (The project is for a dew heater for my telescope; I'm tired of the tangle of wires.)

If I'm powering the project from the USB connector from the desktop, everything works just fine. The display works, showing me the data I want to send, changing as parameters change. The bluetooth devices connect and the data changes are reflected properly on the slave end.

However, if I just give the devices, the Arduinos and the display and the Bluetooth boards, power from a battery or a wall wart, there's no joy. The display doesn't display, even though it has power, and the bluetooth devices don't connect.

The usb connection causes the master Arduino to show both TX and RX leds blinking and the led on pin 13 to blink numerous times, while the simple power connection does not. The problem appears to be in startup, or at least before the loop; if I plug in the usb while the code is running, the problem stays. If I plug in the usb from scratch, the problem disappears.

Can someone help me understand this and correct my mistake, please?

My code is attached. All help appreciated,

Kent
By jbike
#194490
I didn't see your code attached. What powers my Bluetooth master and slave Arduinos is a USB battery bank on both ends. You might try that; the Bluetooth chip draws a lot of power, maybe more than the Arduino regulator can provide.
By Kent Martens
#194493
Thanks for the reply.
It seems the fault was with coding for the display: it needed to be reset before the rest of the code would continue. Once that was resolved, everything is working fine. I was trying to power everything from an external source. It actually did work with power from the usb so that wasn't the problem.