Continue to Site

# driving outputs

Status
Not open for further replies.

#### bowser22

##### Member
hey guys i got a picaxe 08 dev board thats got in/outputs varying from 0 to 4 and a V+ rail on one side and a 0v on the other side. i wired up an led to output 2 and 0v then wrote a little prog to make it flash. i then wanted to wire up another led on a different output and make the leds alternate. i can only get the first one to light up but never the second one. ive tried everything from flipping it around to hooking on leg to 0v and v+. im done rambling though i need some assitance. thanks!

#### bowser22

##### Banned
No one can help you with anything unless you post a schematic of how you have things hooked up and the code for your program. We can't guess =)

Last edited:

#### bowser22

##### Member
ok heres my code
Main:
high 2
pause 150
low 2
pause 100
high 2
pause 150
low 2
pause 100
high 0
pause 150
low 0
pause 100
high 0
pause 150
low 0
pause 100
goto main

now that should make 2 leds alternate similar to a police car. i have one led connected to 0v and output 2 and one led connected 0v and output 0

#### bowser22

##### Member
im trippin sack waitin for an answer! please im on the verge of crying

Last edited:

#### be80be

##### Well-Known Member
I don't think you can use out 0 to drive a led use out 1 and out 2
Code:
Main:
high 2
pause 150
low 2
pause 100
high 2
pause 150
low 2
pause 100
high 1
pause 150
low 1
pause 100
high 1
pause 150
low 1
pause 100
goto Main
end
I don't know if you read this but it will help https://www.electro-tech-online.com/custompdfs/2009/12/picaxe_manual1.pdf

Last edited:

#### bowser22

##### Member
too late boys think i just pooched her. prlly could get it runnin with a reset but im just gonna buy a better picaxe and proto board.

#### AtomSoft

##### Well-Known Member
you probably burned out the LEDs because i didnt see you say you had any resistors on there.

Nice link Burt.... page 6 shows correct LEDs.

Status
Not open for further replies.

Replies
12
Views
2K
Replies
2
Views
901
Replies
4
Views
1K
Replies
20
Views
5K
Replies
7
Views
1K