Go Down

Topic: VirtualWire or String causes arduino to hang (Read 4 times) previous topic - next topic

Makkan


You appear to still have your LEDs connected to pins 9 and 10, which the VirtualWire class uses, unless you tell it to use other pins. Which you don't.

So, it's hardly surprising that as soon as you write to those pins VirtualWire quits working.


Nope, dc42 noted this a while back so I've changed to pins 3,5 and 6.


What happens if you just comment out the analogWrite calls?


That works, it's up and running hand still works after five minutes of continous running. So it seems to be analogWrite that causes trouble.

dc42

OK, try commenting just one or two of the analogWrite calls out, see if it is a particular pin causing the trouble.
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Makkan

That didn't do much but I noticed that if I disconnected the led everything worked. Could it be that the led disturbs the transmission?

dc42

Post a photo and schematic of your setup. Maybe the ground wiring needs attention. What value resistors do you have in series with the LEDs?
Formal verification of safety-critical software, software development, and electronic design and prototyping. See http://www.eschertech.com. Please do not ask for unpaid help via PM, use the forum.

Makkan

#29
Dec 14, 2012, 07:14 am Last Edit: Dec 15, 2012, 11:01 pm by Makkan Reason: 1
Took a while but here we go:

Circuit diagram
Breadboarded Circuit 1
Breadboarded Circuit 2
Breadboarded Circuit 3

Since it looks a bit messy I might aswell say, NO! There are no crossed leads touching.

EDIT: Moving this to the General Electronics part forum.

Go Up