axe133 outputs

tony_g

Senior Member
i just got my order from techsupplies today which included the budget lcd kit axe133.

i have the board all soldered up, paying extra care to all pins and solder and everything was perfect with no issues.

i have been playing around successfully with displaying text however then trying to turn on outputs c.0 to c.2 gives me nothing as far as the multimeter is concerned.

as mentioned before the solder job during assembly was done with absolutely no shorts ect and i dont know why they are not switching high and low.

i have another 18m2 in my parts boxes and so loaded the firmware on that chip and still no control of the outputs, no problem with sending and displaying data.

simple sending from 08m2

Code:
[color=Navy]#picaxe [/color][color=Black]08m2[/color]
[color=Navy]#com 6[/color]

[color=Black]init:[/color]
[color=Blue]pause [/color][color=Navy]500[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]254[/color][color=Black],[/color][color=Navy]128[/color][color=Blue])
pause [/color][color=Navy]10[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]254[/color][color=Black],[/color][color=Navy]1[/color][color=Blue])
pause [/color][color=Navy]30[/color]


[color=Black]main:[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]254[/color][color=Black],[/color][color=Navy]128[/color][color=Blue])
pause [/color][color=Navy]10[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]254[/color][color=Black],[/color][color=Navy]1[/color][color=Blue])
pause [/color][color=Navy]30[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Red]"outputs off"[/color][color=Blue])
pause [/color][color=Navy]10[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]255[/color][color=Black],[/color][color=Navy]%00000000[/color][color=Blue])

pause [/color][color=Navy]5000[/color]

[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]254[/color][color=Black],[/color][color=Navy]128[/color][color=Blue])
pause [/color][color=Navy]10[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]254[/color][color=Black],[/color][color=Navy]1[/color][color=Blue])
pause [/color][color=Navy]30[/color]

[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Red]"outputs on"[/color][color=Blue])
pause [/color][color=Navy]10[/color]
[color=Blue]serout c.2[/color][color=Black],[/color][color=Blue]n2400[/color][color=Black],[/color][color=Blue]([/color][color=Navy]255[/color][color=Black],[/color][color=Navy]%00000111[/color][color=Blue])

pause [/color][color=Navy]5000[/color]

[color=Blue]goto [/color][color=Black]main[/color]
and lcd firmware for 18m2, lcd type uncommented and everything else left as is



im now left scratching the old noggin, am i missing something??:confused:
 

tony_g

Senior Member
ok so i have put the 18m2 on the breadboard with the 08m2 and still no outputs from c.0,c.1,c.2 with the serout c.2,n2400,(255,%00000111) command from the 08m2.

if i load either of my 18m2's with this
Code:
[color=Navy]#picaxe [/color][color=Black]18m2[/color]
[color=Navy]#com 6[/color]

[color=Blue]let [/color][color=Purple]dirsc [/color][color=DarkCyan]= [/color][color=Navy]%00000111[/color]

[color=Black]main:[/color]
[color=Blue]let [/color][color=Purple]pinsc [/color][color=DarkCyan]= [/color][color=Navy]%00000111[/color]
[color=Blue]pause [/color][color=Navy]3000[/color]
[color=Blue]let [/color][color=Purple]pinsc [/color][color=DarkCyan]= [/color][color=Navy]%00000000[/color]
[color=Blue]pause [/color][color=Navy]3000[/color]
[color=Blue]goto [/color][color=Black]main[/color]
then meter outputs c.0,c.1,c.2 i get high and low changes as the program commands, so this tells me its down to the axe133 firmware but i cant decipher it well enough to see whats wrong, its going in the bin soon, if im supposed to have 3 usable outputs its getting frustrating not being able to use them and the only thing i can see that im instructed to change in the firmware/lcd instructions is to uncomment lcd/oled to suit my display.
 

Rick100

Senior Member
Try increasing the delays after the 'serout c.2,n2400,("outputs on")' and 'serout c.2,n2400,("outputs off")' on the 08m2 program.
 

tony_g

Senior Member
well with a delay of 1 sec they briefly turn on and show 5v but immediately go low before it even gets into the pause 5000.

so why are they not staying high until the command to bring them low is issued?
 

Rick100

Senior Member
Try this little program to see if they come on and stay on
Code:
#picaxe 08m2
'#com 6

pause 1000

serout c.2,n2400,(255,%00000111)

here:
goto here
 

tony_g

Senior Member
yes that kept them on, but then does that mean i cant really use them as gp outputs and keep them on if i still need to send different messages to the lcd?

thanks.
 

tony_g

Senior Member
ok it did once and after turning power off for everything and back on now it wont, this is strange
 

Rick100

Senior Member
yes that kept them on, but then does that mean i cant really use them as gp outputs and keep them on if i still need to send different messages to the lcd?

thanks.
I'm not sure what the problem is yet, but were gaining on it. Try this program. It breaks up the port command so the axe133 will have more time to process it.
Code:
#picaxe 08m2
'#com 6

init:
pause 500
serout c.2,n2400,(254,128)
pause 10
serout c.2,n2400,(254,1)
pause 30


main:
serout c.2,n2400,(254,128)
pause 10
serout c.2,n2400,(254,1)
pause 30
serout c.2,n2400,("outputs off")
pause 10
serout c.2,n2400,(255)
pause 10
serout c.2,n2400,(%00000000)

pause 5000

serout c.2,n2400,(254,128)
pause 10
serout c.2,n2400,(254,1)
pause 30

serout c.2,n2400,("outputs on")
pause 10
serout c.2,n2400,(255)
pause 10
serout c.2,n2400,(%00000111)

pause 5000

goto main
 

tony_g

Senior Member
ok rick youve got it there,obviously it does prefer that format even though the instructions say that control of the outputs is in the format of serout c.2,n2400,(255,%00000111)

thanks for the help, now i can get on with it and start fitting it into a project which would have been temporarily shelved if the outputs would not cooperate.

tony
 

Rick100

Senior Member
You can probably delete the 'pause 10' lines after the 'serout c.2,n2400,(255)' lines. The time it takes for the line to execute is probably delay enough.

Good luck,
Rick
 
Top