Default Avatar

hitheshaum

hitheshaum

About

Username
hitheshaum
Joined
Visits
34
Last Active
Roles
Member

Comments

  • @JakeStew Thanks for explaining me what a ring buffer is. I guess you are over-worried. Lets just say we need to perform a 256 point FFT. We will have to create two arrays int data[256], data_copy[256]; The ISR updates the data and when it completed…
  • @biomurph Well, my goal in using interrupts is to make it possible to use OpenBCI board standalone. So I would like to have some onboard data storage. Actually it only makes more sense now to use the SD card.  @JakeStew I don't understand what you…
  • The interrupt based code is now available on my github (https://github.com/Hitheshaum/OBCI_Interrupt). It does exactly the same thing as the previous code does but now it uses interrupts instead of polling so that now you have the entire loop() at y…
  • @JakeStew Yes. There might be a problem when microcontroller is not ready for new data and it is interrupted. But this can be solved by simply storing the data and using it when ever the microcontroller is ready. This will need a bit more memory tha…
  • there is a pin ADS_DRDY attached to ADS chip that will go low whenever the data is ready. We just have to program an interrupt on falling edge of that particular pin.
  • Yes. Exactly. It will allow me to write time consuming algorithms to run smoothly on the board. I wanted to run FFT and if the data keeps coming at 250Hz, I will have less than 4ms to FFT the data, which is very less. If I use interrupts and if I wa…
  • Yes. I resolved it. Also I managed to program a working code using interrupts. I am still testing it and i will post it on my github once I fully tested it. If someone need the code early, message me.