Python on Pi

Recently, I have added a sensor shield (Sense Hat) to an Raspberry Pi3 that has an 8×8 array of neoPixel LEDs.  As a simple challenge, I wanted a python script to display the real time quotes of a stock, using the scrolling API that came with the shield.

Sense Hat & RPi3

This time I used a distributed development environment, and I think I will never go back to doing development on the Pi unless forced to do so.  I used Microsoft Visual Code to develop the python script, and then Filezilla to transfer the source to the pi.  After loading python updates, I then use ssh to run the script and the display is output on the shield.

The mechanical configuration consists of the Sense Hat simply plugging into the RPi, and the sandwich attached to a space frame made from aluminum robotics extrusions.  The RPi is attached to the space frame using the ultra strong hooks and loops bonding system by 3M.  Note that the system looks ‘upside down’.  This was intentional since it minimizes cables coming out of odd places, and improves the looks.

Steps:

  • SSH 10.0.0.xx -l pi /yes / password.  Fill in xx with the actual network address of the pi on your local LAN.
  • python py927.py.  This command executes the most current version on the pi.  This file also prints out the same data as being displayed on the serial console, if you choose to further debug the program.
This entry was posted in Commonplace, Hobbies, How To, Raspberry Pi and tagged , , . Bookmark the permalink.

Comments are closed.