Skip to content

🔦 Larger gadget with batteries & commercial AnyBeam projector & stereo camera & Orange Pi 5.

Notifications You must be signed in to change notification settings

FolkComputer/gadget2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gadget2

still very WIP; instructions may be inaccurate.

Bill of materials

Tools

  • M2.5 driver

Construction

  1. Install Wi-Fi card in Orange Pi 5

  2. Solder jumper cables to the 3.5mm socket

  3. Use a soldering iron to sink the threaded inserts (1x 1/4in for bottom tripod, 4x M2.5 2.5mm for front panel, 4x M2.5 2.5mm for back panel) into the chassis / front panel

  4. Glue neoprene rubber to the inside of the chassis to keep the projector stable

  5. Attach standoffs to the Pi and battery

  6. Plug GPIO pins

  7. Remove the charger and power button cables from the battery and take off the rings. Attach the charger and power buttons to the back panel

  8. Put the battery and Pi into the chassis. Bolt the battery and Pi standoffs in

Software setup

$ sudo systemctl enable ssh && sudo systemctl start ssh

Graphics

install vulkan https://github.com/Bleach665/Mali610Vulkan

Wi-Fi

sudo apt install network-manager

/etc/netplan/50-cloud-init.yaml

network:
  version: 2
  ethernets:
    zz-all-en:
      match:
        name: "en*"
      optional: true
      dhcp4: true
    zz-all-eth:
      match:
        name: "eth*"
      optional: true
      dhcp4: true
  wifis:
    wlan0:
      dhcp4: true
      access-points:
        YOUR-WIFI-SSID:
          password: YOUR-WIFI-PASSWORD

Folk

sudo adduser folk i2c for battery check

set up folk

folk@gadget-orange:~$ sudo gpio mode 16 up
folk@gadget-orange:~$ sudo gpio read 16
1
folk@gadget-orange:~$ sudo gpio read 16
0
folk@gadget-orange:~$ sudo gpio read 16

setup.folk:

Assert $this wishes $::thisNode uses camera "/dev/video0" with width 3200 height 1200

Assert $this wishes $::thisNode uses display 0

set fd [open |[list python3 "/home/folk/UPS_Module_3S_Code/RaspberryPi/UPS Module 3S/INA219.py"] r]
fconfigure $fd -buffering line
fileevent $fd readable [list apply {{fd} {
    if {[gets $fd line] < 0} {
        if {[eof $fd]} {
            close $fd
        }
    }

    if {[regexp {Percent:\s*([0-9\.]+)%} $line -> percent]} {
        Hold battery {Claim the battery percentage is $percent}
    }
}} $fd]

exec gpio mode 16 up

When display /disp/ has width /w/ height /h/ {
    When the clock time is /t/ {
        set pressed [expr {![exec gpio read 16]}]
        set color [expr {$pressed ? "green" : "white"}]
        Wish to draw a dashed stroke with points [list [list 0 0] [list $w 0] [list $w $h] [list 0 $h] [list 0 0]] color $color width 10 dashlength 40 dashoffset [expr {fmod($t, 10)*-120}]
    }
}

When the battery percentage is /percent/ {
    Wish to draw text with text "$percent%" x 40 y 40
}

About

🔦 Larger gadget with batteries & commercial AnyBeam projector & stereo camera & Orange Pi 5.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published