SEROUT + SERIN, OLED + PICAXE coding help required


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2012
    Posts
    2

    Exclamation SEROUT + SERIN, OLED + PICAXE coding help required

    HI

    I'm Sean

    I'm new here, so, as it stands, my problem:

    please note, everything is still in the planning proccess yet i have a very good idea of how im going to do things, im yet to actually buy components (since more often than not something will undergo a minor alteration, so everything i talk about is just a sketch on a peice of paper or in my head at the moment :P)

    I'm building a motorcycle H.U.D. as a part of an A-level school project, i have, several serial outputs from various PICAXE components connected to other transducers and controls (e.g. i have a PIC in the main control box (mounted to handle bars) controlling the contrast setting or the small projction unit in the helmet so as not to dazzle the rider at night, the contrast/brightness information along with the speed is then relayed via a radio uplink to a small unit on the helmet which then changes the output voltage to the display in the helmet thus changing the brightness, this contrast control PIC also outputs the information regarding the current contrast as a Serial output which i would like displayed on the OLED screen i'll have mounted to the control box) i would like to effectivlely use one monster microchip that i think for now i'm going to call the "funnel" chip (just for ease) to condense all these serial outputs (like the one regarding contrast), into one, this one, will then go off to the OLED screen mounted on the handlebars, so the rider can have a look at things like battery level and other bits and bobs of information all to extensive to list here, (i'm displaying only speed in the helmet due to a few limitations and i dont want the product to be to intrusive to the helmet and require years of fidling and setup just to display stuff the rider doesnt need to always see)

    im familiar with programming using flowcharts quite extensively however, the school are about to upgrade to PICbasic (or pro, i dont know which yet so i apologize if im in the wrong forum, but lets just say it's PICbasic for now) i'm not so familar with the language if someone could give me and example of a peice of code for my "funnel" chip which for example takes two serout commands from other PIC's e.g. the characters:

    ("A - 8/10") - this represents a contrast level when the unit is using it's "A"utomatic contrast control mode.

    The serial from the second chip....
    ("mode-R") telling the funnel chip the device is in "road" mode (as apposed to "T" for "tear that rubber" mode... )

    and then converts these (using the SERIN command needless to say) into a SEROUT wich will display (" A - 8/10 mode - R") on the OLED screen positioned wherever for now

    if you could give some indication of how i position the text on the screen (i'm looking at using the 20x4 yellow text OLED on the PICAXE website) - effectively all it has to do (famous last words) is read two (in reality this will be several) serial outputs from other PIC's and chuck the information onto various corners of the screen (anwhere of your choice since youre writing the code) some explanation of what the different aspects of the code mean would be useful but throwing anything at me is also useful.



    any (useful) answers would be greatly appriciated, sorry for the long message i know i still havent fully explained things, any questions please ask, i just need to gain an understanding of how to use serial commands really thanks for your time, i may upload a few doodles in a minute to try make things understandable.

    kind regards
    Sean

  2. #2
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,617


    Did you find this post helpful? Yes | No

    Default Re: SEROUT + SERIN, OLED + PICAXE coding help required

    Hi, Sean

    @First ...

    what is Picaxe ???

    does that " Picaxe" have any use ??? has it even ever existed ???

    you're NOT on the Picaxe forum here ... so help won't be what you are hoping ...

    You better should post HERE: http://www.picaxeforum.co.uk/forumdi...e-PICAXE-Forum

    Alain
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

  3. #3
    Join Date
    Oct 2012
    Posts
    2


    Did you find this post helpful? Yes | No

    Default Re: SEROUT + SERIN, OLED + PICAXE coding help required

    i was fully aware of what forum i'm on... really... really helpful reply, good to see you read the entire post, clearly i am in the wrong forum since i'm talking to someone who hasnt actually heard of one of the largest manufacturers of micro controllers -_-

  4. #4
    Join Date
    Sep 2004
    Location
    Mentor, Ohio
    Posts
    352


    Did you find this post helpful? Yes | No

    Smile Re: SEROUT + SERIN, OLED + PICAXE coding help required

    Hi Sean,

    There are quite a few samples of using PICBasicPro using SERIN, SEROUT, and writing to a LCD Display on the
    MELabs website. (www.melabs.com) You will find a wealth of information to help you get started. You can also download a smaller version of PBP to try some of them out. Even if you plan to use the PICAXE form of basic you can gain a good foundation for what you want to do. Using the SEARCH function of this forum will also help you out alot. Don't let anyone here turn you away. Most of this stuff is trial and error and using bits an pieces of other peoples examples will teach you what you want to achieve. On this forum we ask people to show us some example code and a schematic of what you are trying to do then show us what you are having trouble with and the help usually comes out of the woodwork.

    Have a nice day!

    BobK

    Sorry, I missed the part about the programming language your school is providing. There are examples of
    both PicBasic and PicbasicPro at melabs.com
    Last edited by BobK; - 11th October 2012 at 00:33. Reason: Re-read you rpost again!

  5. #5
    Join Date
    May 2004
    Location
    NW France
    Posts
    3,617


    Did you find this post helpful? Yes | No

    Default Re: SEROUT + SERIN, OLED + PICAXE coding help required

    Quote Originally Posted by SeanHowson View Post
    since i'm talking to someone who hasnt actually heard of one of the largest manufacturers of micro controllers -_-
    Do you really think so ???

    Picaxes only are Microchip MCU where macros have been ROM programmed !!!
    soooooo much room lost just to sell captive devices ...




    Alain ... laughing about the " largest manufacturer " !!!
    ************************************************** ***********************
    Why insist on using 32 Bits when you're not even able to deal with the first 8 ones ??? ehhhhhh ...
    ************************************************** ***********************
    IF there is the word "Problem" in your question ...
    certainly the answer is " RTFM " or " RTFDataSheet " !!!
    *****************************************

Similar Threads

  1. Using SEROUT and SERIN
    By acinorth in forum Test Area
    Replies: 1
    Last Post: - 20th July 2011, 11:33
  2. SERIN and SEROUT
    By CumQuaT in forum mel PIC BASIC
    Replies: 10
    Last Post: - 3rd September 2009, 00:17
  3. Serin Serout
    By docaberle in forum Serial
    Replies: 3
    Last Post: - 29th September 2008, 14:24
  4. Serout/serin issues, advice required
    By Agent36 in forum mel PIC BASIC Pro
    Replies: 9
    Last Post: - 29th May 2008, 22:51
  5. help with SERIN & SEROUT
    By navaismo in forum mel PIC BASIC Pro
    Replies: 5
    Last Post: - 17th September 2005, 01:49

Members who have read this thread : 2

You do not have permission to view the list of names.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts