My 9 year old son is an avid user of the scratch programming language and we are working on a modest weather station together. We have light, humidity and temperature sensors attached to a Raspberry Pi. The Raspberry Pi is headless which really limits his options for programming the thing. Thanks to Google I wound up here and quickly configured the Raspberry Pi to work with the Web IDE.
On my son's laptop running Chrome I installed the IDE. I made the following two configuration adjustments:
Settings->General->Overwrite JavaScript with Graphical Editor->Check the Box (true)
Settings->Communications->Baud Rate->115200
As root (relax, this isn't a mission critical server) I did the following:
cd /root
git clone git://git.drogon.net/wiringPi
git clone https://github.com/espruino/Espruino.gitÂ
cd wiringPi
./build
cd ../Espruino
make
Next I installed the socat program.
apt-get install socat
Then, I determined the TTY device of my serial port
Next I opened /etc/inittab in an editor and ensured that no programs were using /dev/ttyAMAo. Now that I think of it, you may also need to edit the grub config and remove any serial console parameters passed to the kernel. I leave this as an exercise for the reader.
Next I instructed init to re-read the configuration
init q
The Espruino prompt immediately appeared on the IDE. I switched to the graphical editor and it worked too. And just like that my son can explore physical computing on a Raspberry Pi using Espruino.
Time to visit your store and order some boards. I see lots of little creations in his future.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
My 9 year old son is an avid user of the scratch programming language and we are working on a modest weather station together. We have light, humidity and temperature sensors attached to a Raspberry Pi. The Raspberry Pi is headless which really limits his options for programming the thing. Thanks to Google I wound up here and quickly configured the Raspberry Pi to work with the Web IDE.
On my son's laptop running Chrome I installed the IDE. I made the following two configuration adjustments:
Settings->General->Overwrite JavaScript with Graphical Editor->Check the Box (true)
Settings->Communications->Baud Rate->115200
As root (relax, this isn't a mission critical server) I did the following:
Next I installed the socat program.
Then, I determined the TTY device of my serial port
In my case the serial device is 'ttyAMAo'
Next I opened /etc/inittab in an editor and ensured that no programs were using /dev/ttyAMAo. Now that I think of it, you may also need to edit the grub config and remove any serial console parameters passed to the kernel. I leave this as an exercise for the reader.
Finally, I added the following to /etc/inittab
Next I instructed init to re-read the configuration
The Espruino prompt immediately appeared on the IDE. I switched to the graphical editor and it worked too. And just like that my son can explore physical computing on a Raspberry Pi using Espruino.
Time to visit your store and order some boards. I see lots of little creations in his future.