![]() ![]() I am now going to create a fake array that I can test with this. This sketch transmits a short text message using the VirtualWire libraryĬonnect the Transmitter data pin to Arduino pin 12 The other question I have is if you think I would need to send both Brain.readErrors and readCSV. I didn't know what a pointer was but now that you have explained that it makes sense. That makes more sense than it returning a char. Turn off light to and await next messageĪny advice would be helpful. when the incoming messages has less digits than the This needs to be done otherwise problems will occur ![]() Fill Brainmsg array with corresponding Message with a good checksum received, dump it. Turn on a light to show received good message Gets a sensor reading 0-1023 in a char array Vw_wait_tx() // Wait until the whole message is goneĭigitalWrite(13, false) // Turn off a light after transmission Vw_send((uint8_t *)Brainmsg, strlen(Brainmsg)) I have tried testing it by creating a fake char that was formatted the same way as the brain data to see if it would send and it did not.ĭigitalWrite(13, true) // Turn on a light to show transmitting How would I send this data? Would I need to encode and decode it? This is some transmitter/receiver code I have modified to use the brain library but it does not work. The receiver is a 433Mhz RF Transmitter and Receiver Link Kit. I am having trouble coming up with a code to send that data. It is actually several comma delineated values. "signal strength, attention, meditation, delta, theta, low alpha, high alpha, low beta, high beta, low gamma, high gamma"Īs you can see, according to the writer of this code, the readCSV function gets the brain data and returns it as a char. readCSV() function returns a string (well, char*) listing the most recent brain data, in the following format: ![]() Set up the brain parser, pass it the hardware serial object you want to listen on. The original code looks like this, #include I am using a code based on the arduino brain library taken from an EEG tutorial. I am currently trying to wirelessly send data from an EEG headset to another arduino over RF. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. Archives
March 2023
Categories |