triocertified.blogg.se

International space station tracker
International space station tracker








The next point to note is that world maps don't typically have this aspect ratio. The 2.7 inch display from Waveshare has a screen resolution of 264 x 176. These need to get mapped to the XY coordinates of our ePaper Display. These range from -180 to 180 (longitude) and 90 to -90 (latitude). The location of the ISS is in latitude and longitude coordinates. The code has a couple of nuances to bear in mind. Here is the ISS Tracker in action (speeded up a bit): 15 minute markers (red rectangles) are also added, to get a sense of how fast the ISS is traveling! If all the steps above have been done correctly you should see the World Map with the current location of the International Space Station on your ePaper Display! Every 30 seconds, the current location gets updated (which the previous locations are plotted as the trajectory). Run the iss.py python script (using python3): $ python3 iss.py

international space station tracker

International space station tracker install#

Install spidev, RPi.gpio, Pillow and requests dependencies as follows: $ sudo apt-get install python3-spidev $ sudo apt-get install rpi.gpio $ sudo apt-get install python3-pil $ sudo pip3 install requestsĬd to the directory that was created with you cloned the git repository above.

international space station tracker

The code also depends on other libraries. The code expects Python 3+ - if you are using an older version of python, you will need to install python3 If SPI has been properly enabled, the /boot/config.txt entry should show up as above AND you should also see the device connected when you list the SPI devices. Should show something! (like /dev/spidev0.0 /dev/spidev0.1 above) If it doesn’t, try sudo rpi-update and reboot. Search for an entry like the following: dtparam=spi=onĪnd check that you can see the SPI device connected: $ ls /dev/spi* /dev/spidev0.0 /dev/spidev0.1 Some people have encountered issues where the SPI interface doesn't get enabled properly.ĭouble check that SPI is actually "on" in your /boot/config.txt. Step 2 - Double-check that the SPI interface is working This installs the demo code as well as the requisite Waveshare ePaper library. Install the ProtoStax ISS Tracker code from the GitHub Repository (link below) $ git clone








International space station tracker