SheepyChris / arduino-tvout

Backup from "code.google.com/p/arduino-tvout"
0 stars 0 forks source link

sensor read problem #45

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. reading my accelerometer with int timeX = pulseIn(4, HIGH);
2. converting time pulse to milli-gees with int gX = ((timeX / 10) - 500) * 8;
3. printing value onto screen with TV.print(gX);

What is the expected output? What do you see instead?
when my accelerometer is level around 0. i see crazy numbers that resemble a 
counter. it goes from around 700 - 4000 or something like that. i can send the 
data via serial to my computer no problem but once i try to print it to tv it 
doesnt work

What version of the product are you using? On what operating system?
TVoutBeta1 on windows 7 64 bit

Please provide any additional information below.
i've isolated the problem down to the actual pulseIn function...

Original issue reported on code.google.com by bomber8...@gmail.com on 20 Apr 2012 at 4:41

Attachments: