Skip to content
  • Categories
  • Recent
  • Tags
  • All Topics
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Caint logo. It's just text.
  1. Home
  2. Technology
  3. Fediverse
  4. FOSS Advent Calendar - Door 8: Programming LEGO Robots with NQC

FOSS Advent Calendar - Door 8: Programming LEGO Robots with NQC

Scheduled Pinned Locked Moved Fediverse
fediverseopensourceprogramminglinuxfossterminallegoretrocomputingcliadventcalendarstemadventskalenderembeddedrobotikroboticsmindstormsadventkalenderrcxnerdcontenttechnerdsnqcoldschooltechopentoolsfossadvent
2 Posts 2 Posters 0 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • PsychoticSheepS This user is from outside of this forum
    PsychoticSheepS This user is from outside of this forum
    PsychoticSheep
    wrote last edited by
    #1
    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
    1 Reply Last reply
    1
    0
    • R AodeRelay shared this topic
    • rhempelR This user is from outside of this forum
      rhempelR This user is from outside of this forum
      rhempel
      wrote last edited by
      #2

      @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/

      #LEGO #Pybricks

      1 Reply Last reply
      1
      0

      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • All Topics
      • Popular
      • World
      • Users
      • Groups