FOSS Advent Calendar - Door 8: Programming LEGO Robots with NQC
Fediverse
2
Posts
2
Posters
0
Views
-
FOSS Advent Calendar - Door 8: Programming LEGO Robots with NQC
Today we explore NQC (Not Quite C), a wonderfully nerdy and lightweight programming language for the classic LEGO Mindstorms RCX robot brick.
Inside the RCX lives a tiny 8-bit Hitachi H8/300 CPU running at about 16 MHz together with 32 KB of RAM. Even with this extremely small hardware budget, the RCX can handle multitasking, read sensors, control motors and communicate via infrared. It feels like pure retro embedded magic.
NQC lets you write C-like programs on your computer and upload them directly to the RCX. It is minimalistic, fast, easy to learn and perfect for anyone who loves old-school robotics or wants to revisit the early days of DIY programming before Raspberry Pi and Arduino existed.
Working with NQC is a wonderful reminder of how much creativity is possible with almost no resources. Watching a tiny 32 KB robot happily execute parallel tasks still feels incredibly charming today.
Pro tip: If you still have an RCX somewhere, power it up. These yellow bricks are more alive than you remember once you start programming them again.
Link: https://github.com/BrickBot/nqc
Which small robot would you build or revive with the RCX?
#FOSS #OpenSource #Linux #CLI #Terminal #NQC #Mindstorms #LEGO #RCX #Robotics #Embedded #RetroComputing #NerdContent #AdventCalendar #Adventkalender #Adventskalender #TechNerds #STEM #Programming #Fediverse #FOSSAdvent #OpenTools #Robotik #OldSchoolTech -
R AodeRelay shared this topic
-
@sheepfreak I wrote pbForth for the RCX - and other little languages.
For a FOSS environment for all modern LEGO Powered up devices check out https://pybricks.com/