Eddie Control Board Aux Port constant settings - Help
Hi,
Since a couple of days I'm looking to solve this problem. It sounds simple, but...
I want to set the Aux Port A from the mainboard/controlboard of eddie to a constant output on a high level
when I switch on the power supply of the robot. (cause I need 12 V for a timer)
Thats what I did:
I ran the propeller tool and opened eddie.spin.
Then I opened the Parallax Serial Terminal and wrote in HEX:
"out 10000 (this is for the pin 16 in AUX A)
high 10000"
It works, the blue light flashes and my AUX A Device works.
But when I close the two applications, the aux port is dead again.
So I wrote the two lines "out $10000, high $10000" into the eddie.spin file and selected run\compile current\load eeprom.
It worked, but nothing happend, the aux port is still dead at start and only over the Parallax Terminal, I can activate this (like above).
So, how can I save the changes for the AUX Port permanently, so that it is activ (and high), when I switch on the power supply?
Many Thanks in advance :-)
Since a couple of days I'm looking to solve this problem. It sounds simple, but...
I want to set the Aux Port A from the mainboard/controlboard of eddie to a constant output on a high level
when I switch on the power supply of the robot. (cause I need 12 V for a timer)
Thats what I did:
I ran the propeller tool and opened eddie.spin.
Then I opened the Parallax Serial Terminal and wrote in HEX:
"out 10000 (this is for the pin 16 in AUX A)
high 10000"
It works, the blue light flashes and my AUX A Device works.
But when I close the two applications, the aux port is dead again.
So I wrote the two lines "out $10000, high $10000" into the eddie.spin file and selected run\compile current\load eeprom.
It worked, but nothing happend, the aux port is still dead at start and only over the Parallax Terminal, I can activate this (like above).
So, how can I save the changes for the AUX Port permanently, so that it is activ (and high), when I switch on the power supply?
Many Thanks in advance :-)
Comments
Todd
And how can I hardcode it in the eddie firmware?
What are the commands I must write in the eddie.spin?
What I tried was this:
out $10000
high $10000
And then I wrote the firmware to the board (with success)
But it didn't work anyway.
Namus
Can you post a text file of the code you attempted? It would be easier to help if we had the context of what you attempted.
Cheers,
Jessica
in the attachement is the eddie.txt file. I renamed the original eddie.spin. But it is the same file. In Line 76/77 is the code I attempted.
The jpg-file is a snipet-picture from the "Propeller Tool" with the same code.
Cheers
Namus
perhaps I can ask my question in another way:
I'm looking for a code with that I can set an arbitrary GPIO Port to "always on" (in this case AUX Port to OUT) when I switch on the power switch.
Has anybody an idea?
Namus
After reading myriads of lines in this forum and in different manuals, here is the solution, to those who are interested:
First of all I must say for a beginner it is not as easy to find out how to connect and activate other devices to the several, not activated GPIO Ports(what is a GPIO Port? )
IMHO it would be an improvement to write this in the assembly manual or the normal manual in an "easier" way.
For Beginners: The eddie board has several GPIO (Gerneral Purpose Input Output) Ports that come from the processor, named cog. To this ports you can connect devices like a
robot arm or in this case a timer modul, that starts when you turn on the power switch.
Especially the AUX Ports (Port 16, 17, 18) you can activate to a lower status and a higher status.
The higher status ist about 12 V.
To activate this via the debbuging software, you can use the "Parallax Serial Terminal". The commands for this are written in the "Eddie Control Board Firmware Command Set".
However it is only for runtime use.
If you want to use it as a "real" robot that starts some extern devices automaticaly, you can turn on the board with activated GPIO Ports or propably via the MRDS Software (like Todd wrote, thanks :-) - not yet tested).
To activate the AUX Port 16 (named A on the board), you must write the following lines in the "Pub Main" Section of the eddie.spin file (via the "Propeller Tool"):
dira[16]~~ 'set GPIO 16 as output
' outa[16]~ set the GPIO to low
outa[16]~~ 'set GPIO 16 to high
Note: the ' is for comments.
You have to write this commands directly under the "Pub Main" Words Section (see code below). When you write this at the end, it doesn't work.
The explanation for this is to find in this (400 pages!) manual on page 175: http://www.parallax.com/Portals/0/Downloads/docs/prod/prop/Web-PropellerManual-v1.2.pdf
here is the code of the eddie.spin
Hope this will help especially the beginners to let extern devices work on the eddie platform.
Please don't hesitate to ask, when you have questions around the other processes (i. e. how to get the code to the controller board).
Or leave some suggetions or corrections...
Kind regards from germany
Have a nice weekend
Namus
Is it possible to power a 6V device from AUX port? I have a SSC32 which operates on 6V. Can I connect it directly to one of the AUX ports and then set the AUX port to permanently high in the spin code? Please advise.
Thanks.
If you use the AUX Ports on HIGH you will get 12V.
What you can do is to sold a resistor "in" the "Plus"-wire to your device. But to calculate the resistor, you need the maximum current what your device can stand.
Then you use the formula: R=U/I.
I looked at this page: http://www.lynxmotion.com/p-395-ssc-32-servo-controller.aspx
And there is given a current of 31mA (current requirements). This might be the right specification. Then you would have need a 400 OHM Resistor.
If you use the AUX Porst on LOW, I think you have only 3,3 given (You should measure it ;-)). This is too less. You could then try to serially connect two ports, then you have 6,6V.
Perhaps you can also use the Regulated power headers on 5 V, and perhaps it will work with your 6 V Device ;-)
Sorry, it is bit complicated. But at the moment I have no other solution.
Hope it will help.
I think I would try it with the voltage regulator yet, because it is glitch free.
The voltage regulator is within the tolerance of the 12V input and you can switch the output to 6V.
It is not really cheap, but I think without this, there might be a "limit problem" with the 5 A fuse from the Eddie board.