• About
  • Contact
  • SensorTagIoT
  • TextKnit
  • Acoustic Locatisation
  • Bombardier
  • Spooky Keyboard
  • Scratch Extensions
  • Ultrasonic Sonar
  • Laser Layout
  • Fusion 360 add in (spur gear)
  • My First Paying Client
  • Clock
  • FPGA
  • Braille Creator
  • Voronoi 3d Fusion 360 Addin
  • CaveKingdom
  • StrangeOrbitz
  • About
  • Contact
  • SensorTagIoT
  • TextKnit
  • Acoustic Locatisation
  • Bombardier
  • Spooky Keyboard
  • Scratch Extensions
  • Ultrasonic Sonar
  • Laser Layout
  • Fusion 360 add in (spur gear)
  • My First Paying Client
  • Clock
  • FPGA
  • Braille Creator
  • Voronoi 3d Fusion 360 Addin
  • CaveKingdom
  • StrangeOrbitz

Use Scratch to Control Robot

Scratch Extension on Windows IO

This was an interesting project, something I had been eyeing off for a couple of months. I was mostly interested in how easy or hard it was to do. As it turns out, pretty easy and you can do some interesting things. One of the blocks gives you a ultrasonic distance measurement.

Here it is on Hackster IO.

Update: 21/02/1026

I recently upgraded a client to used ScratchX. Unknown to me, this is the recommended way to integrate hardware. This turned out to be a case of pass the parcel, but actually involved very little code. The steps are:
1) Created the ScratchX extension as per http://scratchx.org/
2) Create a Chrome extension as a background javascript that uses messaging to communicate with the above ScratchX extension. This Chrome extension then uses "native messaging" to communicate with a classic windows command line app.
3) Create a classic command line app that interfaces to your device.

Possibly the biggest issue here is the distribution of this command line app. It needs to be a command line app and until "Project C" (Project Centennial) comes out, is is needs to be a msi as you need to modify the registry. From a end user perspective, installing random MSIs is a bit risky. Ideally they should be signed etc, but that is actually quite expensive.
Powered by Create your own unique website with customizable templates.