I've started on some code. Have a look at it and we can discuss what else needs doing to it. It's not useable at the moment but we need to figure out exactly what you want.
steven, is there any spare space In the long to fit the day of the week that the schedule will run.
Like Sunday - Saturday = 0 - 6.
This would be needed.
If there is not any free space maybe we can have a separate array that kept the information saying -
On Monday run schedule 1,2,5
On Wednesday run schedule 2,7,8
Basically what I need is to be able to check the day of the week with all of the schedules.
If they match check the start time.
If they match turn on the outputs specified by instruction.
The outputs are connected to P4 – P11 just so you know.
Attached is a picture of the schematic I have so far.
The extra EEPROM was put there for if I was to need it to store the schedules but obviously I won’t need it.
Ignore the power names. I couldn’t find out how to do an AC power signal in Eagle, so I used +24V and -24V instead.
The code is looking good, what aspects of the code would you like to discuss?
You seem to be on the right track, I suppose knowing how the Matchport worked would help, however I do not have it yet and the documentation isn't very helpful.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Post Edited (computer guy) : 2/2/2008 1:44:58 AM GMT
Should be easy using fulldeplex serial.
As I said the documentation is nothing special.
Will email Lantronix today and ask them.
I would assume that you can just add a command to a html form using javascript or something similar and get it to output data to the serial port automatically using the OS build into the Matchport.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Here is an update. You will need to finish doInstruction method. You will also need to check whether the RTC object sets up the clock for 12 or 24 hour format. It should be almost useable now. We still need to implement some serial commands so that we can set the clock and add schedule items. What do you think. I haven't tested this because I don't have one of the RTCs. It would probably be a good idea to hook this up to PropTerminal to make sure that it works properly when you get the clock.
The code looks great.
As soon as I can test it I will, might a a few weeks.
If I need any further assistance I will certainly ask for it.
Will probably need your help with the serial interface so as soon as I get the device up to that stage of operation I will contact you via this thread.
Will definitely use prop terminal for debug, if that is what you recommend.
Once again, Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
You'd be better off learning from some of the more experienced members (hippy, desilva, Mike Green to name just a few) of this forum than me. That code is probably not the best example of spin coding although it should work.
Am still working on the site.
I have a really nasty cold right now, that prevents me from sitting up for longer than a few minutes without getting dissy.
So I have to spend most of my time in bed.
Thank you, I will upload some more pictures when I am feeling better.
The robot works from a home made remote control, using a prop and an xbee.
The response time of the robot is a bit slow however with some practice it becomes easy to drive.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
The Matchport will have a webpage on it that will send the needed serial data to the prop via the a Java Applet.
The Matchport has the following pins - TXD, RXD, RTS, CTS.
I will connect them to pins P24,25,26,27.
I can design the webpage to send whatever information you need to match the propeller code.
computer guy, I'm going to need a serial data packet something like this
'Format for schedule items is
'byte day
'byte hours
'byte minutes
'byte control instruction
It may also be a good idea to send a start byte like %10101010 to ensure that we are actually receiving the message. Do you want to be able to read the settings on the chip or do a complete rewrite every time?
I would like to be able to read the current data.
So that it can be displayed in the web interface.
The ability to edit a current schedule would also be nice, however is not necessary.
Thank you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
So we will also need to feed data from the propeller back to the Matchport. We can use the same format. Just send a byte %01010101 so that the propeller will know to send the data and not wait to recieve something. Can you easily work with BCD numbers in Java? If you can than that will make the propeller side easier (slightly, its not a problem just something that I don't have to think about.)
What time frame are we looking at for that code?
I have started work on the web side of things however I need the propeller code in order to see how the exchange of data will work.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Here is an update. It now has the serial code in it although I haven't tested it yet. I'll try to do that later tonight or tomorrow night. I've got it hooked up to a TV so that you can see what its doing. You will need to setup what pins you are using and change the line where I make the call to getTestTime to getTime.
Comments
Steven
Steven
If you go to propeller.wikispaces.com/Where+In+The+World%3F that will show you those who 'dare' give out their locations. Cool mapping.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Harley Shanko
Post Edited (Harley) : 2/2/2008 12:37:43 AM GMT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Shawn Lowe
Maybe I should have waited to do that......
Like Sunday - Saturday = 0 - 6.
This would be needed.
If there is not any free space maybe we can have a separate array that kept the information saying -
On Monday run schedule 1,2,5
On Wednesday run schedule 2,7,8
Basically what I need is to be able to check the day of the week with all of the schedules.
If they match check the start time.
If they match turn on the outputs specified by instruction.
The outputs are connected to P4 – P11 just so you know.
Attached is a picture of the schematic I have so far.
The extra EEPROM was put there for if I was to need it to store the schedules but obviously I won’t need it.
Ignore the power names. I couldn’t find out how to do an AC power signal in Eagle, so I used +24V and -24V instead.
The code is looking good, what aspects of the code would you like to discuss?
You seem to be on the right track, I suppose knowing how the Matchport worked would help, however I do not have it yet and the documentation isn't very helpful.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Post Edited (computer guy) : 2/2/2008 1:44:58 AM GMT
Steven
I would have to build that into the webpage, but I am much better with webpage design than I am with Spin and Assembly.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven
As I said the documentation is nothing special.
Will email Lantronix today and ask them.
I would assume that you can just add a command to a html form using javascript or something similar and get it to output data to the serial port automatically using the OS build into the Matchport.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven
The code looks great.
As soon as I can test it I will, might a a few weeks.
If I need any further assistance I will certainly ask for it.
Will probably need your help with the serial interface so as soon as I get the device up to that stage of operation I will contact you via this thread.
Will definitely use prop terminal for debug, if that is what you recommend.
Once again, Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven
I have learnt a lot from this so far. Am sure I will continue to learn from you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven
Any learning is good learning.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
I tried to look at RECONAUTOR... the page comes up, but some of the links look broken from my end... great looking BOT!!!!
Rich
Am still working on the site.
I have a really nasty cold right now, that prevents me from sitting up for longer than a few minutes without getting dissy.
So I have to spend most of my time in bed.
Thank you, I will upload some more pictures when I am feeling better.
The robot works from a home made remote control, using a prop and an xbee.
The response time of the robot is a bit slow however with some practice it becomes easy to drive.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
The Matchport will have a webpage on it that will send the needed serial data to the prop via the a Java Applet.
The Matchport has the following pins - TXD, RXD, RTS, CTS.
I will connect them to pins P24,25,26,27.
I can design the webpage to send whatever information you need to match the propeller code.
The following page describes the supported serial methods.
www.lantronix.com/device-networking/embedded-device-servers/matchport.html#features
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
'Format for schedule items is
'byte day
'byte hours
'byte minutes
'byte control instruction
It may also be a good idea to send a start byte like %10101010 to ensure that we are actually receiving the message. Do you want to be able to read the settings on the chip or do a complete rewrite every time?
Steven
So that it can be displayed in the web interface.
The ability to edit a current schedule would also be nice, however is not necessary.
Thank you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven
Java supports BCD, and I would be happy to use it.
I agree on having a start byte as flow control.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven
Getting new flooring put in.
Thank you.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven
The old flooring was just really old and worn.
I wish it would rain here too.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
What time frame are we looking at for that code?
I have started work on the web side of things however I need the propeller code in order to see how the exchange of data will work.
Thank you
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
I'll post an update sometime tonight.
The car dashboard has always been like an onion. Layer after layer
I once had to replace a light bulb behind the air con panel in a car.
Look forward to the update.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Check out my robot using the propeller RECONAUTOR
If you like my avatar then check this out Propeller Domed Sticker
Steven