GithubHelp home page GithubHelp logo

masikh / byte-beat-controller Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 75.83 MB

The pico setup has: two buttons with a led embedded. On push it lids up, else it pulses. Two potential meters. This program reads the status of the potential meters and buttons (plus the PWM) on core 1 On core 0, the pico handles an interrupt (RX on UART) an spits out the read data on the TX line of UART1

CMake 6.35% Python 78.98% C 14.68%

byte-beat-controller's Introduction

byte-beat-controller

cd build
cmake ..
make

python test

Edit byte-beat-json-decoder.py and set your tty for serial connection

cd python-test
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python3 byte-beat-json-decoder.py

Linux setup

sudo dpkg-reconfigure console-setup
> UTF-8 [ok]
> Guess optimal character set [ok]
> Terminus [ok]
> 16x32 (framebuffer only) [ok]
reboot

vim /boot/firmware/config.txt and add at the bottom of the file

enable_uart=1
display_rotate=2
lcd_rotate=2 # rotates the screen connected to the display port
display_hdmi_rotate=2 # rotates the screen connected to the HDMI port
display_lcd_rotate=2 # no idea what screen this applies to

vim /boot/firmware/cmdline.txt and add change the line into

zswap.enabled=1 zswap.zpool=z3fold zswap.compressor=zstd dwc_otg.lpm_enable=0 console=tty1 root=LABEL=writable rootfstype=ext4 rootwait fixrtc fbcon=rotate:2

pin layout

PICO

button 0 knob: gpio 14 (pin 19) led: gpio 17 (pin 22)
button 1 knob: gpio 15 (pin 20) led: gpio 16 (pin 21)
pot 0: gpio 26 (pin 31), 3v3 out (pin 36), ground (pin 33)
pot 1: gpio 27 (pin 32), 3v3 out (pin 36), ground (pin 33)
uart: RX: gpio 4 (pin 4), TX: gpio 5 (pin 7), ground (pin 8)
power: vsys 5.0v (pin 39), ground (pin 38)

Raspberry pi 4

power lcd: 3.3v (pin 1), 5.0v (pin 2), gpio 2 (pin 3), 5.0v (pin 4)
uart: RX: gpio 14 (pin 4), TX: gpio 15 (pin 6), ground (pin 6)
button 1: ground (pin 14), gpio 23 (pin 16)
button 1: ground (pin 20), gpio 24 (pin 18)
power: usb c connect
lcd: hdmi 1

byte-beat-controller's People

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.