Hello!
I'm new in Arduino world, so I hope you can help me. First of all my native language is spanish, so sorry for my english.
I have a little project for my university, it's a RPM counter.
The RPM counter has to be inalambric (I think that I might use 433 Mhz RF module).
The main idea is use one Arduino to pick the data and send it by RF to another Arduino and see the measure in a LCD 16x2 display.
I need a little bit of help with programming.
Someone can theach me how do I send the data from the first Arduino to the second one and see it in the LCD display?
By far the simplest way is with two Bluetooth modules in "wire-replacement" mode.
Hi JesusRPH,
Beyond the data transfer between devices, do you know how to measure the RPMs and how to display the data on the display?
How many RPMs are we talking about? Also - what sensor are you thinking of using?
I've used XBee radios (very easy) and 433 MHz radio (also easy). I don't have any experience with Bluetooth, but I think it's also easy to use.
Pat.
Here is some code that I modified from some public domain examples.
part one ... capturing the RPM and send the frequency data to the other Arduino
#define InputPin 12
int high_time;
int low_time;
float time_period;
float frequency;
long unsigned int RPM;
void setup()
{
pinMode(InputPin,INPUT_PULLUP);
}
void loop()
{
high_time=pulseIn(input,HIGH);
low_time=pulseIn(input,LOW);
time_period=high_time+low_time;
time_period=time_period/1000;
frequency=1000/time_period;
RPM = frequency * 60;
sendDataToOtherArduino();
}
void sendDataToOtherArduino()
{
// put code in here to send the data held in the RPM variable
}
part Two ... receiving the frequency data and send it to the LCD
#include <LiquidCrystal.h>
LiquidCrystal lcd(7, 6, 5, 4, 3, 2);
long unsigned int RPM;
void setup()
{
lcd.begin(16, 2);
lcd.clear();
lcd.setCursor(0,0);
lcd.print("Rev Counter");
}
void loop()
{
RPM = ReadIncomingData();
lcd.setCursor(0,1);
lcd.print(RPM);
lcd.print(" RPM");
}
long unsigned int ReadIncomingData()
{
// put code in here to read the incoming radio packet and convert it into data to display
}
Now all you have to do is decide what radios you are going to be using and write the code to send and receive a packet with the RPM data in it.
Let us know the radios and we can get that code for you too.
Hope this helps.
Cheers Pete.