Shop OBEX P1 Docs P2 Docs Learn Events
Designing controller with Prop (main) & ATMega2560 — Parallax Forums

Designing controller with Prop (main) & ATMega2560

MacTuxLinMacTuxLin Posts: 821
edited 2014-06-26 10:24 in Propeller 1
In one of my current (urgent) project, I needed to design a controller with a ATMega2560 loaded with the Arduino image. Another team member will then write the sketch, comm with WiFi & comm with the Prop via UART. This Arduino code (as it is in the study module) might eventually be shared with the students for them to learn &, probably, further develop it. The Prop will be the main controller for communication with BT, uSD, RTC, data-logging, flashing new code & PING. The comm between ATMega & Prop should be at 115.2kbps.

While I'm currently working out the pieces of information for the design, I wonder if anyone has done something similar (as in ATMega2560 & Prop on the same board) so a heads up on what to look out for might help avoid potential show-stoppers.

Thanks.

Comments

  • LoopyBytelooseLoopyByteloose Posts: 12,537
    edited 2014-06-26 10:24
    Well.... you could program on the Propeller in GCC with the Propelleriuno library so that you avoid a potential mutiny of demanding that your students learn SPIN code and OBEX as well as what they are using in the Arduino.

    It could be made to appear that serial communications are the same on both devices.

    You may be expecting well supported devices in the OBEX to have support in GCC. That may not be the case and a bit of scramble to get what you want working in GCC. Are you up to that? Most of what you want seems to be easy, but the SDmicro card has me wondering.

    ++++++++++++++++
    Or, you could have the Propeller loaded with Tackyon Forth and do all its programing and communications via the serial link to the Arduino which would pass it on.

    ++++++++++++++++
    Whatever you do, allocate features and rescources where they best fit. This will showcase the strengths of both the Propeller and the Arduino. Be fairminded about this. It would be silly to make one processor or the other do something poorly due to some preconception of what must be.
Sign In or Register to comment.