Schlagwort: speedometer

  • Repurposing an automatic train control unit as a car speedometer

    Repurposing an automatic train control unit as a car speedometer

    Reading Time: 2 minutes

    We’re just now getting semi-autonomous self-driving capabilities in cars, which let them adhere to posted speed limits and maintain their lanes. But trains have been doing the same thing for a long time — well before machine learning and computer vision became ubiquitous. How did they do it? With ATC (automatic train control), which Philo Gray and Tris Emmy Wilson demonstrated by repurposing an ATC unit from an MBTA Red Line train as a car speedometer.

    Trains don’t need help steering, because they’re on rails. Those rails are also the secret to ATC operation. Being conductive, the rails provide a path for communicating data. That’s actually bidirectional in a way, as railway control systems use the circuit completed by the presence of a train as a switch to determine the train’s position. At the same time, it sends data to the train through the “audio frequency track circuit.” The ATC unit reads that data and controls the train speed accordingly, while also indicating the speed limit and current speed on the gauge.

    Cars don’t have the benefit of rails for data transmission, so the Gray and Wilson recreated the functionality by using an Arduino to emulate the appropriate signal for the ATC unit to read. It has to communicate two data streams to the ATC unit: the speed limit and the vehicle’s current speed. The unit has a pretty standard-looking speedometer for the latter and uses small lights at intervals to indicate the former.

    Gray and Wilson used a laptop with OpenStreetMap and the current GPS location to find the speed limit of the road their vehicle is on. It then tells the Arduino to set the corresponding speed limit light. The speedometer functionality, surprisingly, proved to be more challenging. The original plan was to use a Bluetooth OBD2 reader to pull the information directly from the car, but the adapter was very unreliable. They then tried to estimate the speed using GPS readings, but that was also unreliable and so they returned to the OB2 adapter.

    This isn’t reliable or practical by any means, but it is very cool to see the old ATC unit working inside of a car. 

    [youtube https://www.youtube.com/watch?v=KPlC6PoRjn8?feature=oembed&w=500&h=281]

    The post Repurposing an automatic train control unit as a car speedometer appeared first on Arduino Blog.

    Website: LINK

  • Keep track of your ride with a custom bike speedometer

    Keep track of your ride with a custom bike speedometer

    Reading Time: 2 minutes

    Arduino TeamAugust 30th, 2021

    Over on element14, Katie had been wanting to go for a short bike ride after finally getting it fixed. But she encountered a problem: the previously mounted speedometer had lost its display unit, meaning the entire thing was now useless. Rather than simply buying a new one, she had the idea to put together a DIY version that relies on GPS instead of counting wheel rotations to keep track of the current speed. 

    Component-wise, only a few modules were required to build this device. First was an Arduino Nano 33 IoT that handled communication and power between the screen and GPS module. Next was a GPS3 Click Board, which contains one of Quectel’s L80 GPS modules that provides accurate tracking information in a small form factor. Finally, a small 1.3” circular LCD was chosen due to its pixel density, integrated touch controller, and ease-of-use. Everything was assembled into a custom-designed and 3D-printed housing that fits neatly over the bike’s handlebars and features an area to store a USB battery bank. 

    With the hardware finished, Katie moved onto the programming. The application starts by initializing the LCD and GPS modules over serial, where it then moves into an infinite loop that checks for new positional data. If there is something to update, the 4D Systems genieArduino display object receives this latest information and updates the screen’s graphics accordingly. 

    To read more about how the speedometer was constructed, you can visit Katie’s e14 Community post here.

    [youtube https://www.youtube.com/watch?v=JPhrczZHI30?feature=oembed&w=500&h=281]

    Website: LINK