Skip to content

Setup a Raspberry Pi as an Arbalet workstation with automated scripts

License

Notifications You must be signed in to change notification settings

arbalet-project/arbapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Arbalet Pi

The repository contains scripts to setup a Raspberry Pi as an Arbalet workstation.

Hardware wiring

The default configuration considers that you're using the SPI MOSI (GPIO 10) pin to connect your LED strip. Here is how to connect the input side of the WS2812B strip:

  • red: power supply +5V
  • green or yellow: GPIO 10 (data pin)
  • black: power supply GND

Although the Pi and the strips are not using the same high level voltage, experience shows that this works fine anyway, but any serious project should add a level shifter on the data pin. However you might experience artifacts (flashes) with this technique.

The install procedure hereunder will configure your Pi for GPIO 10. You can always modify the configuration file afterwards to use an Arduino connected to your Pi instead, or even PWM on GPIO 18 (WIP, but requires root access).

Authorized SSH keys (optional)

Before running the script, optionally add SSH keys to the file authorized_keys to be able to connect to the Arbalet Pi from your workstation without password prompt. Run the command below on your workstation to get the public key to be pasted in authorized_keys:

cat ~/.ssh/id_rsa.pub

Arbapi-fy your Raspberry Pi

  1. From your workstation perform a fresh Raspbian install on your SD card, e.g.
sudo dd bs=4M if=2016-11-25-raspbian-jessie-lite.img of=/dev/mmcblk0
  1. From your workstation, download this repository on your SD card, e.g.
wget https://github.com/arbalet-project/arbapi/archive/master.zip -O /tmp/arbapi.zip
unzip /tmp/arbapi.zip -d /media/<MY_SD_CARD_NAME>/home/pi
  1. Optionally, populate authorized_keys with your workstation's key
  2. Boot on the Raspberry Pi and login as pi with default password raspberry
  3. Make sure your Pi is connected to the Internet via Ethernet
  4. Run the root script arbapify.sh to execute the installing procedure:
cd /home/pi/arbapi-master
./arbapify.sh

Be patient, the procedure typically lasts about 20 minutes 7. Reboot your Raspberry Pi:

sudo reboot

It must reboot and activate the Arbalet application sequencer automatically 8. Default password of user pi is changed into arbalet after installing

About

Setup a Raspberry Pi as an Arbalet workstation with automated scripts

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages