Hi,
please please please help me!
i have created my first picaxe led chaser, based on a 28x1 chip at the moment on a breadboard. for power i have used a 12v pack made up of 8 AA batteries which feeds a 5v reg. While i have my circuit connected to my computer it works great. when i remove the cable (the resistors are left in) it still seems to work but slows a little. however when i disconnect and then reconnect the battery the sequence does nothing but all leds stay permanantly on. if i reconnect the serial cable it works again. surely i dont need to leave it permanantly connected to the pc?
cheers
So I finally got a chance to
Have you pulled the reset pin (1) high via a resistor?
You should also pull the ser in pin (6) low via a resistor to the ground to keep it from floating.
hi,thanks for the reply. the
hi,
thanks for the reply. the reset is pulled high via a 10 ohm resistor, while the ser in pin is pulled low via the 2 resistors from the download circuir (ie a 22 ohm to a 10 ohm to 0v)
I hope that the 10 ohm and
I hope that the 10 ohm and 22 ohm is just a typo and it should be 10k ohm and 22k ohm 
But yes. On your final board leave a 10k resistor to +5V on the reset pin and 10k on the serial in pin to GND.
sorry lazy typing on my part
sorry lazy typing on my part lol. still not doing as expectd, but oddly when i touch the resistor is works, take the finger off and back to original state. i know what it sounds like but they are all pushed in correctly. :]
If you’re using wireless
If you’re using wireless breadboard, some of them has blocks on the power rails. That groups them together. Check if there is connection between your resistor ground pin and the actual ground.
Hi,yeah cheers, that was
Hi,
yeah cheers, that was already in place for the leds. hoping it isnt my chip
ok the plot thikens,
ok the plot thikens, apparently the circuit will work if i touch my regulator the resistor touch was a red herring. as soon as i let go it stops, maybe a grounding issue after all. but more confused than ever.
here is a pic of the circuit
here is a pic of the circuit if it helps any
I don’t think the picture
I don’t think the picture will help anyone if the problem is the power supply. Try;
- Measure the voltage in an out of the regulator
- Removing the capacitors (your power is probably rater noise free)
- Move the regulator to different pins (if there is a bad connection)
- Try another regulator
- Try a 5V battery pack directly.
The fastest gun in the west
Geir,
I thought of exactly the same things that you said. Only you said them first. A medal for speed!
Andrés
getting fed up now, tried a
getting fed up now, tried a direct supply from 3aa batteries. same result. but after about 7 seconds the sequence starts. surely these chips dont take 7 seconds to start their programs? so im still stuck 
and now tried again with 5V
and now tried again with 5V and LEDs stay on constant no matter how long. Faulty chip?
I have to agree with OddBot
I have to agree with OddBot that the PICAXE probably isn’t the problem. Those chips are pretty robust. I had a 08M turned the wrong way around and it got smoking hot. Flipped it around and it worked just fine.
If you have another breadboard I would take the PICAXE out and just do a hello world LED program with a single LED. Then add your power supply and see if it still works… and so on.
thanks mate, wil persevere.
thanks mate, wil persevere.
thanks for all ur help mate,
thanks for all ur help mate, after taking out and reseating everything, i have narrowed it down to the code! if i comment out the call to the interrupt it works fine, if i leave it in then it all goes to hell again! however the code simulates fine. didnt think there would be any issues with setint.
Good to hear that your
Good to hear that your figuring it out. What I can’t understand is what your interrupt routine is supposed to do? I can’t see any input devices.
yeah I took the led and ptm
yeah I took the led and ptm switch out of the photo. Basically the port c6 is an input and the port c7 is the output from teh interrupt. Code is below: (please excuse my cappy code, its ironc as I am an OO developer by trade lol)
symbol timeout = 50
setint %01000000,%01000000
dirsc = %01000000
main:
low portc 7
high B.0
pause timeout
high B.1
pause timeout
high B.2
pause timeout
high B.3
pause timeout
high B.4
pause timeout
high B.5
pause timeout
high B.6
pause timeout
high B.7
pause timeout
high portc 0
pause timeout
high portc 1
pause timeout
high portc 2
pause timeout
high portc 3
pause timeout
high portc 4
pause timeout
high portc 5
pause timeout
low portc 5
pause timeout
low portc 4
pause timeout
low portc 3
pause timeout
low portc 2
pause timeout
low portc 1
pause timeout
low portc 0
pause timeout
low B.7
pause timeout
low B.6
pause timeout
low B.5
pause timeout
low B.4
pause timeout
low B.3
pause timeout
low B.2
pause timeout
low B.1
pause timeout
low B.0
pause timeout
goto main
interrupt:
let pins = %11111111
high portc 0
high portc 1
high portc 2
high portc 3
high portc 4
high portc 5
low portc 7
pause timeout
high portc 7
pause timeout
low portc 7
pause timeout
high portc 7
pause timeout
low portc 7
pause timeout
high portc 7
pause timeout
setint %01000000,%01000000
return