Skip to content

karu2003/sweep_gen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Screenshot

Sweep Generator on RPi

Generates sweep signal in two modes impulse and constantly. Used pygame-1.9.5, Adafruit PiTFT - 2.8" Touchscreen Display for Raspberry Pi, pimoroni - Audio DAC SHIM (Line-Out). in Display, you need to cut the grio 18.

"menu settings" are under development. maybe they will be later.

install PiTFT

https://learn.adafruit.com/adafruit-2-8-pitft-capacitive-touch

git clone https://github.com/adafruit/Raspberry-Pi-Installer-Scripts.git

cd Raspberry-Pi-Installer-Scripts/

sudo pip3 install Click adafruit-python-shell

sudo python3 adafruit-pitft.py --display=28c --rotation=90 --install-type=console

install pygame

sudo apt-get install libsdl2-2.0-0 libsdl2-gfx-1.0-0 libsdl2-image-2.0-0 libsdl2-mixer-2.0-0 libsdl2-ttf-2.0-0 python3-sdl2

sudo pip3 install pygame==1.9.5

edit in /boot/config.txt

#dtparam=audio=on

dtoverlay=hifiberry-dac

edit for user PI

sudo adduser pi tty

sudo chmod g+rw /dev/tty0

edit udev

sudo nano /lib/udev/rules.d/50-udev-default.rules

change line:

SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0620"

to:

SUBSYSTEM=="tty", KERNEL=="tty[0-9]*", GROUP="tty", MODE="0660"

Start on boot

chmod +x sweep_gen.py

sudo vi /etc/rc.local

add vor exit 0

sudo daemon /home/pi/python/sweep_gen/sweep_gen.py

Features

the left and right channels operate in a differential manner. add editable settings for sweep and sin. :)

References:

https://github.com/wolfer649/WGOT

https://dsp.stackexchange.com/questions/75282/end-of-chirp-in-phase-0/75303#75303

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages