Menu
![]() put your setup code here, to run once: Int echoPin=11 //Sensor Echo pin connected to Arduino pin 11įloat pingTime //time for ping to travel from sensor to target and returnįloat targetDistance //Distance to Target in inchesįloat speedOfSound=776.5 //Speed of sound in miles per hour when temp is 77 degrees. What could be causing this?Īrduino code: int trigPin=13 //Sensor Trig pin connected to Arduino pin 13 ![]() However when I run it in python it has all sorts of random new lines and \r's thrown in there. ![]() When I run my code in the serial monitor it looks just fine. ![]() ![]() I'm having a hard time getting the distance measurements over to python. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |