ATmega firmware programming tutorial?

BrainCuriousBrainCurious Nashville
edited June 2018 in Cyton
Hello,

I have the 8bit board and I know the programming tutorials are posted for the 32bit board. I was wondering if there's a link to the programming tutorial compatible with the 8bit board (V3-8).


Thank you!

Comments

  • As long as the instructions haven't changed, you should be able to use the 32 bit tutorials to program the 8 bit board without any issues besides manipulation information greater than 8 bits with 1 instruction.


    If you data fits into 8 bits do:
                   For example, if I tell you to add 2 3-digit number  (010 + 080) you'll get the answer (90) but if you only have access to 2-digits you just have to do all you without having the last digit (10+80=90).


    If your data doesn't fit into 8 bits and requires more bits to use you'll have to do some extra calculations.
                   If you have a 3-digit number (099 + 001 = 100) there is no problem but if you only have 2-digits (99 + 01 = 00) because there is no space to hold the one.
                   To fix that problem, find out which of the 2 pieces of data is larger then see if you answer is smaller than that. If it smaller, you have a floating 1 that couldn't be stored so you have to add it in yourself. If it is larger, then there is no                problem.

    Source: I just spent the entire last semester using ATMEGA328p for my microcontroller class. If you have any more questions, I'll try to help.



  • Thanks Codelyok13,

    I need to reprogram the 8-bit board as instructed in the tutorial but i could not find the files for the 8-bit. In other words, my board has nothing downloaded on. I think even the one that comes from company has been destroyed.

    Any ideas will be helpful!  
  • wjcroftwjcroft Mount Shasta, CA
    edited June 2018
    Here is the official, current repository,


    and the current (chipKIT / 32 bit) Radios repo,


    But what I noticed was that the current Radios repo is missing the 8 bit radios folders. I happen to have a snapshot of this same repo, taken when it had the 8 bit folders. But not sure how useful / accurate this is. It's unfortunate that these folders were deleted from the current repo. Use your discretion, as most of this repo is now obsolete, except for the 8 bit folders. Your host and device RFduinos might be just fine and you will only be flashing the ATmega firmware. In which case just ignore this following link.


    Unfortunately I don't think we have a step by step tutorial for flashing new firmware on the ATmega online. I'll mention Joel @biomurph and @openbci here. There may be an archive somewhere in the lab with 8 bit firmware steps.

    Regards,

    William

  • wjcroftwjcroft Mount Shasta, CA
    Here is post from 2015 where an 8-bit board is being flashed, with some tips.


    And some threads that showed up using the Advance Search button in the right column of the forum here,

  • biomurphbiomurph Brooklyn, NY
    @brainCurious ;
    Ah the 8bit board is still around! did you purchase from us back in the day, or did you make your own?

    The code for the radios can be found in the examples folder of the OpenBCI_Radios library.
    The sketch for HOST is for the radio on the dongle, and the sketch for DEVICE is for the radio on the 8bit board.

    The code to flash onto the 8bit board is located here
    There you will find the library, as well as the sketch OpenBCI_8bit_SD. That is the code that the original 8bit OpenBCI boards were shipped with.
  • wjcroftwjcroft Mount Shasta, CA
    Joel, thanks. I missed looking in that 'examples' folder!

    8-bit flashing instructions are here:

  • Thank you so much for your help @biomurph @wjcroft ;

    I bought the board a couple years ago and am trying to get it to work. I think there a communication error between the dongle and the board and I think its a software issue. I will keep you posted on the progress. Again, thank you!

  • biomurphbiomurph Brooklyn, NY
    We have not had one of those 8bit boards running in years. I would hazard that it will have a hard time working with the current GUI software that we provide.
    You should look back for an earlier version of software when you are testing the functionality. Also, you can control the board via a simple serial port connection that will send ASCII characters.
Sign In or Register to comment.