![]() Kcl1s wrote:Bill just gave you the timing portion of the code. ![]() This report would have more information with 'startBeam' was not declared in this scope SS_stopwatch_timer_BB:17: error: 'calculate' was not declared in this scope SS_stopwatch_timer_BB:17: error: expected primary-expression before '/' token SS_stopwatch_timer_BB:14: error: 'endBeam' was not declared in this scope SS_stopwatch_timer_BB:11: error: 'startBeam' was not declared in this scope Users/Pretson5000/Documents/Arduino/SS_stopwatch_timer_BB/SS_stopwatch_timer_BB.ino: In function 'void loop()': "Arduino: 1.8.5 (Mac OS X), Board: "Arduino/Genuino Uno" Should I just check with forums for more precise info on how to input proper code into specific areas? Thanks! many are using featherlit or raspberry pi, which i don't have the money to afford just yet. I've also looked around through the pages of forum on talking about "speed-traps" or the "millis function", and I don't get any information specific to the arduino uno. It only told me about what it is used for. Does this mean I need to set up the code a bit differently? I looked at the millis () function tutorial on the webpage though, it didn't really help me understand where to input specific wording of code, into the specific section of the actual code itself. I put in the basic code to my arduino, went to verify it and am getting the message below. Long elapsedTimeMS = endTimeMS - startTimeMS / calculate the elapsed time While(digitalRead(endBeam) = HIGH) // wait for endĮndTimeMS = millis() // record the end time StartTimeMS = millis() // record the start time While(digitalRead(startBeam) = HIGH) // wait for start Thanks in advance for your help and or guidance! ack-361455 Though, that link shows basically what i'm doing, i just have the uno, instead of the raspberry and am using humans instead of RC cars. ![]() I was thinking based off a RC car raspberry pi setup that is online here. Just trying to now transfer specific stopwatch and milli code into arduino along with tripping the sensors properly. I have already run a timer code on my 4bit 7segment display and have all components working there. I have the IR break beam sensors set up already, and am currently working on hooking the IR break-beam sensors up to the breadboard. It will display the time on the LED 4bit 7segment I have setup. Was wondering if anyone had experimented or knows stopwatch timer code, mili, I believe it's called, to program into the Arduino Uno? My goal is use IR break beam sensor to trip the stopwatch timer to start, then, at the end, another set of IR break beam sensors are tripped to stop the stopwatch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |