Programming of OpenBCI 32 bit PIC controller (DIY board fabrication)

chexchex india
edited April 2017 in Build-it-yourself
Hello,
I want to know how can i program 32bit PIC controller in OenBCi cyton board? i mean PIC controller maintain data from ADS1299 to RFduino, So how can i program PIC in this board? I know PIC can be programmed with MPLABX IDE and IPE. But In this board i had read about chipkit and arduino ide on Git HUb(https://github.com/OpenBCI/OpenBCI_32bit_Library), i had Follow all that instructions,  open Defaultboard.ino in arduino IDE but not found particular PIC controller setup for this board and How PIC interfaced with ADS1299 in .ino file. Please help, Thanks in advance.

Comments

  • Thanks for the reply sir,
    I had read link provided by you. But suppose if i want to change PIC controller from PIC32MX250F128B to PIC32MX250F128D then is it possible? Does openbci support this type of change? If it is possible then which are the general steps required to do so?  
  • wjcroftwjcroft Mount Shasta, CA
    Sorry, I clarified the title of your post / thread. To include the DIY aspect.

    The initial PIC bootloader is installed with chipKIT / PIC IDE and the associated PIC USB dongle with a hardwired serial port, I believe. See,


  • chexchex india
    edited April 2017
    Thank you sir, 
    But if i change PIC32MX250F128B to PIC32MX250F128D in Cyton board, then do i need to change bootloader in PIC controller? I had found GIT repo for the bootloader hex for the OpenBCI 32bit on-board PIC32 microcontroller(https://github.com/OpenBCI/UDB32-MX2-DIP). Here both  PIC32MX250F128B  and PIC32MX250F128D controller are 32 bit. So can i use same bootloader hex file provided in GIT repo(https://github.com/OpenBCI/UDB32-MX2-DIP) for PIC32MX250F128D controller also?
  • wjcroftwjcroft Mount Shasta, CA
    Is it true that the *B and *D microcontrollers have differing numbers of pins? Why are you doing this? Why not just use the same part as OpenBCI? Are these additional pins for GPIO digital IO functions? 
  • Yes *B is of 28 pin controller while *D is of 44 pin controller, But we want to change controller for future use of Extra GPIO pins.
  • So as i want to change controller, i need to understand what is the role of bootloader hex file for PIC32 in cyton board, Does bootloader hex configure GPIO pin's functions of PIC controller OR openBCI32bit library for arduino ide configure GPIO pin's functions of PIC controller? Also it is better if i can get source code from which this(https://github.com/OpenBCI/UDB32-MX2-DIP) bootloader hex file is generated. 
  • wjcroftwjcroft Mount Shasta, CA
    I'm sorry, you are going to have to research this yourself. Be cautious with your use of the GPIO and extra digital or analog IO.

    EEG is working at microvolt levels. So for example if you were trying to drive a stepper motor or servo, those signals could conceivably produce crosstalk with the EEG.

  • Ok sir, That's fine. Can you please give me information regarding PIC controller pin mapping? For example In OpenBCI_32bit_Library_Definitions.h file ADS chip select pin is configured for pin 8(BOARD_ADS) And That pin in PIC controller is 26. Then which file have these pin mapping of 26(PIC controller pin) -> D8 (BOARD_ADS)?  Below is code snippets which define BOARD_ADS . 

    #define BOARD_ADS    8   // ADS chip select

      
Sign In or Register to comment.