Ive been studying instrument op-amps and ways to filter signals for EMG's in class. I want to do a side project where I can hook up my output of my EMG's to a transmitter/reciever unit to turn on motors for a RC car. I have two dual channel EMG's hooked up to my left and right hand. I plan on analogRead(2 EMG Outputs) and then compare these values to determine which motors to power(i.e. turn left-right-forward-backward) and then send the signal to my transmitter,say the letter "F" for forward to then transmit it to my reciever.And my reciever would pick up "F" and I would then define "F" in my reciever code to turn on my motors to go forward.
I just recieved my transmitter/reciever unit(a cheap 5$ 455MHz) off ebay. I downloaded the Virtual Wire library but have been having problems understanding it.
Ive gone through quite a few websites trying to figure this out. For starters :
Where I obtained the code below
My question are in bold.
#include <VirtualWire.h>
void setup()
{
// Initialize the IO and ISR
vw_setup(2000); // Bits per sec
}
void loop()
{
send("Hello there");
delay(1000);
}
void send (char *message) <- So this sets our funciton send with a parameter with the char type/string. Under the variable message which is used below in our vw_send function.
{
vw_send((uint8_t *)message, strlen(message)); <-So this sends our message which has been assigned the string array "Hello There" and sets its length to the number of chars in the string itself??
vw_wait_tx(); // Wait until the whole message is gone
}
I have more question but i figured i start off simple and one at a time. Any help would be great.