Set up framework

A project log for Running Light Box

Simple electronic toy for hardware near programming.

NikolaNikola 11/29/2021 at 22:110 Comments

Actually, this project is closed, because on hackaday it is declared as a pure hardware project. All further work will be realized in the github repo (runningLightBox). But because so many of you are following now this project, I thought to write how I am programming the Raspi.

In the beginning I thought to use Visual Studio Code with the remote server, but then I decided to keep everything simple and mount the working folder form my laptop to the Raspi.

Raspi Part

sudo apt install nfs-common

sudo mkdir /var/runningLightBox

sudo nano /etc/fstab

 File looks then like this:

# <file system>     <dir>       <type>   <options>   <dump>     <pass>
<IP_OF_LAPTOP>:<LINK_TO_WORK_FOLDER>  /var/runningLightBox/  nfs      defaults    0       0

Laptop Part

sudo apt-get install nfs-kernel-server
 sudo nano /etc/exports

  File looks then like this:


NOTE: Laptop must be booted first! (I know it's logical, but ....)

Before I wrote a python script, I first tested the LEDs with the i2ctools:

i2cdetect -y 1

i2cset -y 1 0x20 0x00 0x00

i2cset -y 1 0x20 0x14 0x00

i2cset -y 1 0x20 0x14 0xFF

There is also a python script in the github repo (runningLightBox).