Pages: 1 [2]   Go Down
Author Topic: Need Help With Arduino :-|  (Read 2859 times)
0 Members and 1 Guest are viewing this topic.
East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4261
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

What signal voltage range does it work with ?
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The signal is from 0.1V to 1.5(~2)V
Logged

East Anglia (UK)
Offline Offline
Faraday Member
**
Karma: 114
Posts: 4261
May all of your blinks be without delay()
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I wonder what would happen if you fed it with a PWM signal with a value between 0 and about 75 ?  The actual voltage swing would still be 0 to 5V of course but depending on how fast the circuit reacts it may still work.
Logged

Please do not send me PMs asking for help.  Post in the forum then everyone will benefit from seeing the questions and answers.

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

void Read_Rpm(const unsigned int value)
{
  tone(9, map(value,0,5700,55,423));
}


This is the code I should customize... but how?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 615
Posts: 49388
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Code:
void Read_Rpm(const unsigned int value)
{
  tone(9, map(value,0,5700,55,423));
}
What is there about that code that reads RPM?
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 615
Posts: 49388
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Can't be bothered posting code correctly, but you still want us to help you change it? I'll pass.
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Is this the kind of thing you mean?




Yes, it is finally!!! smiley I change the input potensiometer with Read_Rpm and it's ok! Thank you very much!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
Using an Arduino UNO To Control a Model Railway's Points and Signals
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Hi everyone, I haven't posted on my topic for a while.
Updates...

Currently i am working on the 'looks' of the dash and improving it.
Soon you will see the progress I have made with the led's and gauges.
I have received my Speedo/Tacho Head and have just got to get around to fitting it.
When I get some time I will post some pictures so you can see how everything has moved on.
Good luck to Adam164 with your project and I cant wait to see some pictures, Sorry If I haven't been reading but what game/simulator is your project for?

Steve
Logged

------------
Youtube: http://youtube.com/virgocomputing
Current Projects: Using an Arduino UNO To Control a Model Railway's Points and Signa

Offline Offline
Newbie
*
Karma: 0
Posts: 23
Using an Arduino UNO To Control a Model Railway's Points and Signals
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Here is my latest update:
http://www.youtube.com/watch?v=tlHZw60KkE8&feature=youtu.be
Logged

------------
Youtube: http://youtube.com/virgocomputing
Current Projects: Using an Arduino UNO To Control a Model Railway's Points and Signa

Offline Offline
Newbie
*
Karma: 0
Posts: 7
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Good luck to Adam164 with your project and I cant wait to see some pictures, Sorry If I haven't been reading but what game/simulator is your project for?

It's the same project for OMSI, like Gazz. The difference is that because I don't have the tachometer, I thought about showing the RPM (or velocity) with LEDs. I am gonna upload video as soon as possible.

Congratulations for your project!
Logged

Offline Offline
Newbie
*
Karma: 0
Posts: 23
Using an Arduino UNO To Control a Model Railway's Points and Signals
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

oK, I hope to see a video of your project soon, As of mine, I just have the buttons left to do on mine!
Logged

------------
Youtube: http://youtube.com/virgocomputing
Current Projects: Using an Arduino UNO To Control a Model Railway's Points and Signa

Pages: 1 [2]   Go Up
Jump to: