Skip to main content

Civilian RC Car Uses Lego NXT and Ada

Back in the last century, the US Department of Defense declared that Ada was going to be used everywhere and for everything. Books were published, schools build curriculum. Working programmers, however, filled out waivers to continue working in their languages of choice. As a result, only a little bit of safety-critical software really used Ada. However, we’ve noticed a bit of a resurgence lately. Case in point: an RC car using Ada for the brains. You can watch it tool around in the video below.

This isn’t the first time we’ve heard about Ada in the past few months. Partially, this could be because of the availability of the GNU compiler, although that’s been around since 1995, so maybe there’s another explanation. Ada’s strong typing does tend to plug holes that hackers exploit, so while we would hate to say it is hack proof, it certainly is hack resistant compared to many popular languages.

The car looks like a fun project. They started with the Lego NXT but replaced the controller. Using the HiTechnic design gives you a motion base that has Ackerman steering and a differential on the drive wheels. The original design used an IR receiver to talk to a Lego remote, but the Ada version adds a Bluetooth connection, as well.

For the replacement CPU, a $15 Discovery board puts a Cortex M4 running at 168 MHz onboard. A smattering of 3rd party modules and some parts in an Altoid tin completed the electronics portion of the car.

In case you miss all the Arduino-provided libraries, the Ada Drivers Library provides interfaces for timers, communications, and the like. Not everything the car needed was in the library, but some of the abstractions made creating and integrating the custom pieces easier.

If you have ever been interested in Ada, this is a fun project to learn from and would not be too hard to replicate. If you make things that could be unsafe — a large robot, a drone, or a control system for something that could do bad things — you ought to consider Ada as a way to cut down on the potential for mishaps.

[Maya Posch] made the case for Ada last year. You can even target the RISC-V if you like.



from Hackaday https://ift.tt/2IM0lmP

Comments

Popular posts from this blog

Bill Gates steps down from Microsoft’s board to focus on philanthropy

In an announcement on Friday, Microsoft revealed that company co-founder Bill Gates has decided to step down from his role on its Board of Directors in order to focus on his philanthropic efforts at the Bill & Melinda Gates Foundation. This is Gate’s biggest change to his role at Microsoft since stepping down as company chairman in February 2014. According … Continue reading from SlashGear https://ift.tt/2We90Gu

World Economic Forum launches Global AI Council to address governance gaps

The World Economic Forum is creating a series of councils that create policy recommendations for use of things like AI, blockchain, and precision medicine. Read More from VentureBeat http://bit.ly/2EKBjD4

A Mini USB Keyboard That Isn’t A Keyboard

A useful add-on for any computer is a plug-in macro keyboard, a little peripheral that adds those extra useful buttons to automate tasks. [ Sayantan Pal] has made one, a handy board with nine programmable keys and a USB connector, but the surprise is that at its heart lies only the ubiquitous ATmega328 that you might find in an Arduino Uno. This isn’t a USB HID keyboard, instead it uses a USB-to-serial chip and appears to the host computer as a serial device. The keys themselves are simple momentary action switches, perhaps a deluxe version could use key switches from the likes of Cherry or similar. The clever part of this build comes on the host computer, which runs some Python code using the PyAutoGui library. This allows control of the keyboard and mouse, and provides an “in” for the script to link serial and input devices. Full configurability is assured through the Python code, and while that might preclude a non-technical user from gaining its full benefit it’s fair to say that ...