[ad_1]
Construct your individual human horse race arcade sport utilizing Arduino and Strava
June sixteenth, 2023
—Each arcade appears to have one specific sport that appeals to the gamblers amongst us: the horse race sport. That sport has a number of mannequin horses and other people can gamble on the end result of their race. The outcomes are both random or managed by the gamers by way of some kind of enter mechanism. In a brand new video, element14’s Lorraine Underwood explains the way to recreate that sport with an Arduino — however powered by individuals.
The sport idea is just like the horse race arcade sport, besides gamers run to affect the success of their respective racers. These racers are little 2D individuals figures as a substitute of horses. Everybody can run on their very own schedule. Then, as soon as everybody completes their run, the sport exhibits the outcomes by transferring the figures throughout the observe. This hyperlinks to Strava, which is an app for monitoring runs utilizing widespread gadgets like smartphones and smartwatches. Every participant simply has to finish a run as a part of the group that Underwood arrange for this goal.
As a result of the sport wants to drag run data from Strava’s API over the web, Underwood selected to make use of an Arduino UNO WiFi Rev2 board. It controls the motion of every determine utilizing a micro DC gearmotor with a belt. These motors got here from DFRobot and embrace encoders, that are useful for making certain the motion is actual. The sport helps 4 gamers, so Underwood added a DFRobot quad DC motor defend to the Arduino to drive the motors.
The Arduino sketch connects to the native WiFi, then pulls the space coated by every runner from the Strava API. It then scales that right down to the space of the sport observe and spins the motors till every determine reaches the corresponding distance.
You’ll be able to comply with any responses to this entry by way of the RSS 2.0 feed.
You’ll be able to go away a response, or trackback from your individual website.
[ad_2]