Shop OBEX P1 Docs P2 Docs Learn Events
New to Programing. — Parallax Forums

New to Programing.

ecustomecustom Posts: 3
edited 2011-12-25 21:55 in Propeller 1
Hey, I'm new to programing anything but I really want to learn all I can. I'm looking to do a data logger with the propeller chip. And I don't know where to start. I've been doing some reading and trying to get up to speed on what this chip can do. I want to log data coming out of an engine control unit that is already programed to output the data needed by sending it simple commands. I would like to log to the internal or external ram or if I have to, to an external sd card or thumb drive. I have a quick start board and am in need of some guidence. Thanks in advance.

Comments

  • Duane C. JohnsonDuane C. Johnson Posts: 955
    edited 2011-12-23 20:39
    What is the nature of the signals to and from the engine control?
    How much data needs to be stored?
    What is the rate of data flow?

    Duane
  • Mike GMike G Posts: 2,702
    edited 2011-12-23 20:47
    Welcome to the forum ecustom.

    First you need to get some mileage under your belt. Go through the exercises in the Propeller Education Kit. From the Propeller Tool click help then Propeller Education Kit (pdf).

    You can find data loggers and all kinds of source code in the OBEX. Do yourself a favor and run through a few tutorials before tackling your data logging project.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-12-23 20:48
    An SD card my be the easiest way to do this.

    You'll need a way to interface with the engine control unit (this will depend on what kind of signal the controller uses) and a SD or uSD card adapter kit.

    Ap Note AN006 tells you how to use a SD card with the Prop.

    With a SD card you can store lots of data and then easily read in with a computer.

    You could also store data to the Propeller EEPROM but you're a bit limited on the amount of data you can store this way (it will likely be between 32KB and 64KB depending on how much space your program uses). You'll also need a way to get this data from the EEPROM to where you want it to end up (also doable with the Prop).
  • ecustomecustom Posts: 3
    edited 2011-12-24 11:02
    What is the nature of the signals to and from the engine control?
    How much data needs to be stored?
    What is the rate of data flow?

    Duane
    It is Serial data that comes out in sizes of bytes. Usually around 171 bytes. To get the ecu to send this data out the serial port you just send a comand to it. In this case it is an "A". Here is a link that explains it futher. http://www.msextra.com/doc/ms2extra/RS232_MS2.html

    The flow rate is 115200. And the amount of data is fairly small. Only enough for about 1 min of data.
  • ecustomecustom Posts: 3
    edited 2011-12-24 11:05
    Mike G wrote: »
    Welcome to the forum ecustom.

    First you need to get some mileage under your belt. Go through the exercises in the Propeller Education Kit. From the Propeller Tool click help then Propeller Education Kit (pdf).

    You can find data loggers and all kinds of source code in the OBEX. Do yourself a favor and run through a few tutorials before tackling your data logging project.

    Yes I know. I've been doing that a little.
  • Duane DegnDuane Degn Posts: 10,588
    edited 2011-12-24 11:26
    ecustom wrote: »
    It is Serial data that comes out in sizes of bytes. Usually around 171 bytes. To get the ecu to send this data out the serial port you just send a comand to it. In this case it is an "A". Here is a link that explains it futher. http://www.msextra.com/doc/ms2extra/RS232_MS2.html

    The flow rate is 115200. And the amount of data is fairly small. Only enough for about 1 min of data.

    It looks like you'll need a way of translating between voltage levels.

    I think a RS232 converter chip is one of several methods that would work.
  • TymkrsTymkrs Posts: 539
    edited 2011-12-25 21:55
    If you're interested in learning more about the chip in general - I'm also new to programming and I ask a couple of Spin experts and do my own projects - http://firstspin.tv has the episodes. They're about 30 minutes long and I've never had any bias from other languages. May help you out - and welcome!
Sign In or Register to comment.