Shop OBEX P1 Docs P2 Docs Learn Events
Expert coder needed - Page 2 — Parallax Forums

Expert coder needed

2456

Comments

  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-01 23:40
    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
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-01 23:42
    Is there anyone else on the forum from oz?

    Steven
  • HarleyHarley Posts: 997
    edited 2008-02-02 00:08
    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. yeah.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Harley Shanko

    Post Edited (Harley) : 2/2/2008 12:37:43 AM GMT
  • Shawn LoweShawn Lowe Posts: 635
    edited 2008-02-02 01:35
    Coley said...

    Not me!

    I'm happy here in England with the miserable cold and rainy weather, stupid government, high taxes and poor rugby team! tongue.gif
    Wow, we have all that in the USA. Except where I live (utah) it's snow, and instead of rugby its american football. Weird it's so similar!!! wink.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    Maybe I should have waited to do that......
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-02 01:39
    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 smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    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
    2083 x 1061 - 37K
    392 x 664 - 8K
    1195 x 1032 - 17K
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-02 01:54
    Would you be happy if instead of having a time period we replace it with the day? We can turn the things of by just having another command.

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-02 01:57
    Ok, sound good to me.

    I would have to build that into the webpage, but I am much better with webpage design than I am with Spin and Assembly. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-02 02:02
    How hard is it to get the serial output we will need from the Matchport?

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-02 02:09
    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
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-02 03:18
    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.

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-02 03:33
    Thank you steven. smile.gif

    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 smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-02 03:40
    Your welcome. Its been a bit of fun to take a bit of time off what I'm working on at the moment.

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-02 04:14
    After reading the code a few times, I have realised how it works.
    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
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-02 04:16
    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. smile.gif

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-02 04:42
    It is better than I could have done.
    Any learning is good learning. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • rjo_rjo_ Posts: 1,825
    edited 2008-02-02 14:03
    computer guy,

    I tried to look at RECONAUTOR... the page comes up, but some of the links look broken from my end... great looking BOT!!!!


    Rich
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-02 21:57
    rjo_,

    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 smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-05 05:49
    Steven,

    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 smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-05 06:49
    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?

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-05 06:52
    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. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-05 07:01
    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.)

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-05 07:24
    Steven,

    Java supports BCD, and I would be happy to use it.
    I agree on having a start byte as flow control.

    Thank you smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-05 07:50
    Sounds good. I probably get a chance to work on it for the next couple of days but I should be able to have something done by/during the weekend.

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-05 07:52
    That's alright I might not be able to get near my Computer until weekend anyway.
    Getting new flooring put in.

    Thank you. smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-05 07:54
    You didn't get rained out in the recent rains did you? If you did you could send some down to Canberra. We hardly get any here.

    Steven
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-05 07:56
    We got 2mm of rain in past week, so no.
    The old flooring was just really old and worn. smile.gif

    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
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-10 04:36
    Steven,

    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 smile.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Check out my robot using the propeller RECONAUTOR
    If you like my avatar then check this out Propeller Domed Sticker
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-10 06:25
    I'm working on it now. I had to put a new radio in my sisters car. Its amazing how many bits you have to take to get to it.

    I'll post an update sometime tonight.
  • computer guycomputer guy Posts: 1,113
    edited 2008-02-10 06:27
    Thank you steven smile.gif

    The car dashboard has always been like an onion. Layer after layer smile.gif
    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
  • stevenmess2004stevenmess2004 Posts: 1,102
    edited 2008-02-10 07:37
    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.

    Steven
Sign In or Register to comment.