Skip to content

Chasedog98/PhotonPi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 

Repository files navigation

PhotonPi V1.1.0


This is an Alpha version of PhotonPi please use at your own risk.

PhotonPi is a web server for the Anycubic Photon using a Raspberry Pi Zero W.


Flashing Image onto Pi

Requirements:

Minimum 8GB SD card if using network-based USB drive. 4GB SD card for web server interface no network-based USB drive. Raspberry Pi Zero W(not tested with other Pi's currently). Full image currently at 3.79GB.

SetUp:

  1. Format SD card as a Fat32

  2. Download the Latest Version of PhotonPi and use Etcher or Win32 to put the image on the SD card.

  3. After the image is created create a file called wpa_supplicant.conf on the root of the SD card with the following from: wpa_supplicant.md Fill out the Country, ssid, and psk(password) for connecting to WiFi. Save the file. The format is very important and can lead to not connecting to wifi if not formated correctly please click the edit button on github for the correct format.

  4. Eject SD card, insert it into the Pi, and boot up the Pi using the USB port. Booting can take a few minutes and will connect and disconnect from the computer a few times, this is the network-based USB drive from the pi. Do not try to fix the USB if windows says there is a problem!

  5. Under network connection in file explorer you should see a computer named PhotonPi, this is the place where you upload files to. Create a test file and make sure it can be seen on the network USB drive, this might take a few seconds and it should disconnect/ reconnect to the computer.

  6. Check the website by going to photonpi.local/ in Chrome. You should see the following:

image

This is a shareable camera feed for others to view. If no camera feed is present make sure flash is enabled.

  1. Go to photonpi.local/home.html this is the user interface of PhotonPi, take a look around. These pages are user changeable through HTML, Java, and PHP.

image

Connecting to the Photon:

  1. Solder a 3 pin header to UART1 located near the USB port on the board. Solder a 3 pin header to the the pi as shown below. image image
  2. Connect GND to GND, Rx to Tx, and Tx to Rx
  3. Test connections by booting up Photon with the Pi connected and see if you can send Gcode to the machine, start with Home first.

Changing Network USB size:

The default size is 512MB of Network USB Storage To increase the size do the following

  1. Open up Putty and connect to the pi by entering Photonpi.local to ssh in
  2. Login using standard pi login username and password
  3. Type in the following: sudo dd bs=1M if=/dev/zero of=/piusb.bin count=2048

The count is the space to format 2048 = 2GB 4096= 4GB etc.

  1. Format it :sudo mkdosfs /piusb.bin -F 32 -I

Editing HTML/Java/PHP

Location: /var/www/html

V1.1.0 HTML/PHP files are published under PhotonPi_V1.1.0 for reference

Video Streaming Change

If you need to change the resolution or FPS of the live stream go to the following:

/etc/rc.local

Edit the following line of code:

raspivid -t -0 -w 1080 -h 720 -awb auto -fps 20 -b 1200000 -o - |ffmpeg -loglevel quiet -i - -vcodec copy -an -f flv -metadata streamName=myStream tcp://0.0.0.0:6666&

Known Changes Coming

  • Finish Serial Terminal
  • Switch away from Flash Player due to Adobe discontinuing support in 2020(Will be a forced update)
  • Login with username and password
  • Multiple device connection

About

Open source Anycubic Photon web server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published