Shop OBEX P1 Docs P2 Docs Learn Events
Please someone help me!!! — Parallax Forums

Please someone help me!!!

luke.bluke.b Posts: 3
edited 2009-11-20 08:39 in Propeller 1
Hello all,

I've just signed up with this forum after buying a propellor development board and learning that this website·is so helpful.·I have puchaced the book which explains exactly how the propeller chip works and how to write spin code.

I work as an electronic systems engineer which mainly deals with automation using PLC's although i rarely program them and have a very basic knowledge in that area.

My problem is that no matter how many times i look at this book i just can't seen to get my head around it.

I would really appreciate some help with a project that i have been trying to do for months now. I have purchaced most of the components that are need for my project.

My project i'm sure you will find very simple.

i have an small LCD screen http://uk.rs-online.com/web/search/searchBrowseAction.html?method=searchProducts&searchTerm=5326458&x=30&y=8

in which i want to diplay a reading from my encoder http://uk.rs-online.com/web/search/searchBrowseAction.html?method=getProduct&R=2508968358

The reading i want the display to give is a rotational distance in metric and in imperial, for example:

The encoder is rotated·720 degrees and diplays 8cm on the screen

Furthermore, i would like a pushbutton to instantly change that figure in to an imperial reading (for this example 3.14 inches).

Also a couple of other small features which i will explain later if anyone is kind enough to help me.

I would be very grateful for a reply and any help with wiring on the development board and writing the code.
Thanks
Luke

Comments

  • MagIO2MagIO2 Posts: 2,243
    edited 2009-11-20 07:05
    Yep .. that's easy with a propeller. Just take the right objects from the Object Exchange and here you go ...

    For the display this driver should work: http://obex.parallax.com/objects/106/
    For the encoder this should do: http://obex.parallax.com/objects/24/

    For the pushbutton read the Education Lab, for calculating you can use the Float object - or do it in integer if accuracy is good enough then.

    The display driver should contain a schematic for the wiring. I hope you can wire the encoder and pushbuttons by yourself.
  • VIRANDVIRAND Posts: 656
    edited 2009-11-20 08:39
    Look around this forum for code and run it on the Propeller and then read the code and it will soon make some sense,
    especially if you try changing things and Guess what will happen, and See what does happen.

    Have you have installed the Propeller Tool (programming software),
    and do you have a working serial cable to program the chip with?
    USB and RS-232C are usable. Depending on what board your chip
    is on, you might need a USB to RS-232C adapter (prop plug) if
    you want to program through USB and some boards only have RS-232.
    You DON'T NEED AN "EPROM BURNER" TYPE DEVICE with this chip.

    You should have wrote a program before or at least used a computer
    without a mouse though.
Sign In or Register to comment.