Cov txheej txheem:

Walabot FX - Guitar Effect Control: 28 Kauj Ruam (nrog Duab)
Walabot FX - Guitar Effect Control: 28 Kauj Ruam (nrog Duab)

Video: Walabot FX - Guitar Effect Control: 28 Kauj Ruam (nrog Duab)

Video: Walabot FX - Guitar Effect Control: 28 Kauj Ruam (nrog Duab)
Video: 20 MOMENTS YOU WOULDN'T BELIEVE IF NOT FILMED 2024, Kaum ib hlis
Anonim
Walabot FX - Guitar Effect Control
Walabot FX - Guitar Effect Control

Tswj koj cov guitar nyiam siv yam tsis muaj dab tsi tab sis txaus guitar tso tawm!

Kauj ruam 1: Yam Koj Yuav Tsum Tau

Kho vajtse Cheebtsam

Walabot - Walabot

Raspberry Pi - Raspberry Pi 3 Qauv B

Sunfounder LCD1602

SunFounder PCA9685 16 Channel 12 Bit PWM Servo Driver rau Arduino thiab Raspberry Pi

Servo (generic) Tsis muaj qhov txuas

9V Roj Teeb Clip

4xAA tus tuav lub roj teeb

AA Roj teeb

Jumper xov hlau (muaj dav)

DPDT Latching Action Foot Switch

Korg SDD3000-PDL

Software OSs, Apps thiab Online Services

Autodesk Fusion360 -

Blynk -

Cov cuab yeej thiab lwm yam

3D Tshuab Luam Ntawv

Soldering Hlau

Kauj ruam 2: Paub daws teeb

Getting Started
Getting Started

Nws yuav zoo li cas los tswj cov suab paj nruas qhia tsis siv dab tsi tab sis txoj haujlwm ntawm koj lub guitar hauv 3D qhov chaw? Zoo, cia protoype ib yam dab tsi thiab nrhiav pom!

Kauj Ruam 3: Lub Tswv Yim Yooj Yim

Kuv xav kom muaj peev xwm tswj tau 3 cov txiaj ntsig ntsuas hauv lub sijhawm tiag tiag, Kuv xav ua qhov no siv qhov kuv tso kuv li guitar li cas. Yog li ib yam meej, Kuv yuav xav tau ob peb yam.

  • Lub sensor uas tuaj yeem pom qhov chaw 3D
  • Servos tig lub pob qhov rooj
  • Ib qho LCD zaub
  • Tus neeg tsav tsheb I2C Servo
  • Ib Raspberry Pi
  • Txhawm rau kawm Python

Kauj ruam 4: Walabot

Xav pom los ntawm phab ntsa? Paub cov khoom hauv qhov chaw 3D? Sense yog tias koj ua pa los ntawm thoob plaws chav? Zoo, koj muaj hmoo!

Walabot yog txoj hauv kev tshiab txhawm rau paub qhov chaw ib puag ncig koj siv lub zog radar qis.

Qhov no yuav yog qhov tseem ceeb rau txoj haujlwm no, kuv yuav tuaj yeem nqa lub carteasan (X-Y-Z) coodinates ntawm cov khoom hauv 3D qhov chaw, thiab daim ntawv qhia cov rau servo txoj haujlwm hloov pauv li cas lub suab paj nruag zoo li lub suab, lub sijhawm tiag tiag, yam tsis tau kov lub pedal.

Yeej.

Xav paub ntau ntxiv txog Walabot tuaj yeem pom ntawm no

Kauj ruam 5: Pib

Thawj yam ua ntej, koj yuav xav tau lub khoos phis tawj los tsav Walabot, rau qhov haujlwm no kuv tab tom siv Raspberry Pi 3 (ntawm no yog xa mus rau RPi) vim yog ua hauv WiFi thiab dav dav ntxiv oomph

Kuv yuav 16GB SD daim npav nrog NOOBS tau teeb tsa ua ntej kom ua tau yam zoo thiab yooj yim, thiab xaiv rau nruab Raspian ua kuv li Linux OS xaiv

(yog tias koj tsis paub yuav ua li cas rau nruab Raspian, thov siv sijhawm me ntsis kom nyeem me ntsis txog qhov no)

OK, thaum koj tau txais Raspian khiav ntawm koj RPi, muaj ob peb txheej txheem teeb tsa los ua kom tau txais khoom npaj rau peb tes num

Kauj Ruam 6: Teeb Kho Raspberry Pi - 1

Ua ntej tshaj kom ntseeg tau tias koj tab tom khiav qhov tseeb Kernel version thiab tshawb xyuas qhov hloov tshiab los ntawm kev qhib lub plhaub hais kom ua thiab ntaus ntawv

sudo apt-tau hloov tshiab

sudo apt-tau nruab dist-upgrade

(sudo tau ntxiv los xyuas kom koj tau txais kev tswj hwm ntiag tug xws li cov khoom yuav ua haujlwm)

Qhov no yuav siv sijhawm me ntsis los ua kom tiav, yog li mus thiab muaj lub khob zoo ntawm cov tshuaj yej.

Kauj Ruam 7: Teeb Raspberry Pi - 2

Koj yuav tsum teeb tsa Walabot SDK rau RPi. Los ntawm koj tus RPi web browser mus rau https://www.walabot.com/gettingstarted thiab rub tawm Raspberry Pi Installer Package.

Los ntawm cov lus txib plhaub:

cd cov downloads

sudo dpkg -I walabotSDK_RasbPi.deb

Kauj Ruam 8: Teeb Raspberry Pi - 3

Peb yuav tsum pib teeb tsa RPi los siv lub npav i2c.

sudo apt-tau nruab python-smbus

sudo apt-tau nruab i2c-cuab yeej

thaum qhov no ua tiav, koj yuav tsum ntxiv cov hauv qab no rau hauv cov ntaub ntawv modules

Los ntawm cov lus txib plhaub:

sudo nano /thiab /modules

ntxiv 2 cov hlua ntawm cov kab sib cais:

i2c-dev

i2c-bcm2708

Kauj Ruam 9: Teeb Raspberry Pi - 4

Lub Walabot kos qhov ncaj ncees ntawm qhov tam sim no, thiab peb tseem yuav siv GPIO los tswj cov khoom yog li peb yuav tsum teeb tsa cov no

Los ntawm cov lus txib plhaub:

sudo nano /boot /config.txt

ntxiv cov kab hauv qab no thaum kawg ntawm cov ntawv:

safe_mode_gpio = 4

max_usb_current = 1

RPi yog cov cuab yeej zoo tshaj plaws rau cov tsim khoom, tab sis nws muaj txwv nyob rau tam sim no nws tuaj yeem xa mus rau Walabot. Yog li vim li cas peb thiaj ntxiv 1Amp max tam sim no ntau dua li tus qauv ntau dua 500mA

Kauj ruam 10: Python

Vim li cas Python? zoo, raws li nws yooj yim heev rau tus lej, nrawm kom tau txais kev khiav thiab muaj ntau qhov piv txwv zoo nab nab muaj! kuv yeej tsis tau siv nws ua ntej thiab tau sai thiab ua haujlwm tsis muaj sijhawm. Tam sim no RPi tau teeb tsa rau yam peb xav tau, cov kauj ruam tom ntej yog teeb tsa Python kom nkag tau mus rau Walabot API, LCD Servo cuam tshuam

Kauj Ruam 11: Rau Walabot

Los ntawm cov lus txib plhaub

Sudo pip nruab "/usr/share/walabot/python/WalabotAPI-1.0.21.zip"

Kauj ruam 12: Rau Servo Interface

Los ntawm cov lus txib plhaub

sudo apt-tau nruab git tsim-qhov tseem ceeb nab hab sej-dev

cd ~ ib

git clone

cd Adafruit_Python_PCA9685

sudo python setup.py nruab

Vim li cas peb thiaj yuav tsum tau siv tus tsav tsheb servo? Zoo, rau RPi ob peb yam laj thawj.

1. Tam sim no kos los ntawm servo tuaj yeem siab heev, thiab tus lej ntawd loj dua qhov koj muaj ntau servos (tau kawg). Yog tias koj tab tom tsav tsheb servo directky los ntawm RPi koj ua rau muaj kev pheej hmoo ntawm tshuab nws lub zog siv

2. Sijhawm PWM (Pulse Width Modulation) uas tswj txoj haujlwm servos yog qhov tseem ceeb heev. Raws li RPi tsis siv lub sijhawm tiag tiag OS (tej zaum yuav muaj kev cuam tshuam thiab xws li) lub sijhawm tsis raug thiab tuaj yeem ua rau servos twitch tshee tshee. Tus neeg tsav tsheb tshwj xeeb tso cai rau kev tswj kom raug, tab sis tseem tso cai rau ntxiv 16 servos ntxiv, yog li qhov no yog qhov zoo rau kev nthuav dav.

Kauj Ruam 13: Rau LCD

Blynk
Blynk

qhib koj lub RPi web browser

www.sunfounder.com/learn/category/sensor-k…

rub tawm

github.com/daveyclk/SunFounder_SensorKit_…

Los ntawm cov lus txib plhaub:

sudo mkdir/usr/qhia tawm/sunfounder

Siv tus kws tshawb fawb duab, theej cov nab hab sej tawm ntawm cov ntawv zip rau hauv koj daim ntawv tshiab sunfounder

Lub LCD tau siv los qhia tus neeg siv tam sim ntawd ua dab tsi. Qhia cov txheej txheem ntawm kev teeb tsa mus rau x, y thiab z qhov tseem ceeb tau teeb tsa rau txhua qhov kev pabcuam

Kauj ruam 14: Blynk

Blynk
Blynk
Blynk
Blynk

Blynk yog qhov kev pabcuam IoT ci ntsa iab uas tso cai rau koj los tsim cov kev cai app los tswj koj cov khoom. Nws zoo li qhov kev daws teeb meem zoo tshaj plaws los muab kuv cov chaw taws teeb tswj ntawm walabot kom hu tau tiag tiag hauv qhov chaw …

Ib qho teeb meem. Blynk tam sim no tsis tau txhawb nqa ntawm Python platform, bugger. Tab sis tsis txhob ntshai! kuv muaj peev xwm nrhiav tau haujlwm zoo me ntsis nyob ib puag ncig uas tso cai rau kev tswj chaw taws teeb thiab cov khoom ntsuas ntsuas nyob deb! nws yog me ntsis hacky

thawj kauj ruam yog rub tawm Blynk app los ntawm koj lub khw app nyiam

Thib ob, sau npe rau tus as khauj

Thaum qhov ntawd ua tiav, qhib lub app thiab pib qhov haujlwm tshiab, xaiv Raspberry Pi 3 ua cov cuab yeej.

Lub app yuav faib koj tus lej nkag mus (koj yuav xav tau qhov no los tso rau hauv koj tus lej)

Thaum koj tau ua li ntawd. koj yuav tsum teeb tsa lub app raws li qhia hauv cov duab. Nov yog qhov nws yuav cuam tshuam nrog walabot.

Kauj ruam 15: Kho lub Blynk App

Kho lub Blynk App
Kho lub Blynk App
Kho lub Blynk App
Kho lub Blynk App
Kho lub Blynk App
Kho lub Blynk App

Kauj Ruam 16: Koj Siv Tau Qhov QR Code Nrog Blynk App los Clone Kuv Txoj Haujlwm kom Txuag Koj Lub Sijhawm

Koj Siv Tau Tus lej QR no Nrog Blynk App los Clone Kuv Txoj Haujlwm kom Txuag Koj Lub Sijhawm
Koj Siv Tau Tus lej QR no Nrog Blynk App los Clone Kuv Txoj Haujlwm kom Txuag Koj Lub Sijhawm

OK Tam sim no tias txhua lub app tau teeb tsa, peb tuaj yeem teeb tsa Python thiab RPi los tham nrog nws hla kev sib tham. Khawv koob

Kauj Ruam 17: Khiav Blynk Nrog Raspberry Pi thiab Siv Blynk HTTPS rau Python

Ua ntej tshaj, koj yuav tsum teeb tsa Blynk HTTPS qhwv rau Python

Los ntawm cov lus txib plhaub:

sudo git clone

sudo pip nruab blynkapi

Qhov thib ob, koj yuav tsum teeb tsa Kev Pabcuam Blynk ntawm RPi

Los ntawm cov lus txib plhaub:

git clone

cd blynk-tsev qiv ntawv/linux

ntxuav tag nrho

kom khiav cov kev pabcuam blynk

sudo./blynk --token = YourAuthToken

Txhawm rau kom Blynk Kev Pabcuam pib thaum pib koj yuav tsum hloov kho /etc/rc.local

los ntawm kev ua

sudo nano /etc/rc.local

ntxiv qhov no thaum kawg

./blynk-library/linux/blynk --token = kuv token &

(Kuv tau suav nrog kev tiv thaiv kuv /etc/rc.local cov ntaub ntawv hauv kab lus rau kev siv)

Txhawm rau sim nws ua haujlwm yooj yim

sudo /etc/rc.local pib

Qhov Kev Pabcuam Blynk yuav tsum tau ua haujlwm tam sim no

Kauj Ruam 18: Autorunning Script

Tam sim no qhov no tau teeb tsa thiab teeb tsa, thiab peb muaj cov nab npawb nab npawb npaj txhij. peb tuaj yeem teeb tsa yam khoom kom pib ua haujlwm yog li peb tuaj yeem tso cov keyboard thiab saib

Muaj ob peb yam ua

Tsim cov ntawv sau tshiab kom khiav tawm Python Program

sudo nano guitareffect.sh

ntxiv cov kab no

#!/bin/sh

nab hab sej /home/pi/GuitarEffectCLI.py

nco ntsoov txuag nws

Tom ntej no peb yuav tsum tau tso cai tsab ntawv los khiav los ntawm kev ntaus ntawv

Sudo chmod +x /home/pi/guitareffect.sh

Thiab thaum kawg, peb yuav tsum ntxiv tsab ntawv no mus rau /etc/rc.local cov ntaub ntawv uas peb tau sib tham nrog ua ntej.

Sudo nano /etc/rc.local

Ntxiv

/home/pi/guitareffect.sh &

nco ntsoov suav nrog "&" qhov no tso cai rau Python Script kom khiav hauv keeb kwm yav dhau

Yog lawm! Qhov ntawd yog txhua qhov kev teeb tsa thiab software txheeb, tom ntej no nws yog lub sijhawm los xaim cov cuab yeej

Kauj ruam 19: Kho vajtse

Image
Image
Walabot guitar effects control proto1
Walabot guitar effects control proto1

Thawj Breadboard tsab

Kauj Ruam 20: Cov Ntawv Tsim

Cov Ntawv Tsim
Cov Ntawv Tsim
Cov Ntawv Tsim
Cov Ntawv Tsim

Lub thawv ntawv tau tsim thiab muab tso rau hauv qhov txaus ntshai Fusion360

Kauj Ruam 21: Txiav txim siab tua

Guts txhaj tshuaj
Guts txhaj tshuaj
Guts txhaj tshuaj
Guts txhaj tshuaj
Guts txhaj tshuaj
Guts txhaj tshuaj

Kauj Ruam 22: Cov Rooj Sib Tham Kawg

Cov Rooj Sib Tham Kawg Kawg
Cov Rooj Sib Tham Kawg Kawg
Cov Rooj Sib Tham Kawg Kawg
Cov Rooj Sib Tham Kawg Kawg
Cov Rooj Sib Tham Kawg Kawg
Cov Rooj Sib Tham Kawg Kawg

Kauj Ruam 23: Txhim Kho Walabot rau Sawv Cev

Txhawm rau txhim kho Walabot rau sawv ntsug
Txhawm rau txhim kho Walabot rau sawv ntsug

Siv tus kheej nplaum nplaum hlau uas tuaj nrog lub walabot los kho nws qhov chaw

Kauj Ruam 24: Khoos phis tawj STL Cov Ntaub Ntawv rau 3D Luam Ntawv

Kauj Ruam 25: Schematics rau Txuas Qhov Ncaj Ncees

Kauj ruam 26: Txoj Cai

Siv cov ntawv Python txuas rau koj qhov haujlwm

los ntawm _future_ ntshuam print_functionfrom sys import platform los ntawm os system los ntawm blynkapi ntshuam Blynk ntshuam WalabotAPI ntshuam lub sijhawm ntshuam RPi. GPIO li GPIO

#teeb tsa GPIO siv Board Numbering

GPIO.setmode (GPIO. BOARD) GPIO.setup (18, GPIO. IN, rub_up_down = GPIO. PUD_UP)

#blynk daim ntawv tso cai

auth_token = "koj_auth_token_here"

# Ntshuam PCA9685 tus qauv rau kev tswj hwm servo.

ntshuam Adafruit_PCA9685

#import LCD module los ntawm qhov chaw

los ntawm imp ntsaws load_source LCD1602 = load_source ('LCD1602', '/usr/share/sunfounder/Python/LCD1602.py')

# Pib PCA9685 siv qhov chaw nyob qub (0x40).

pwm = Adafruit_PCA9685. PCA9685 ()

# blynk khoom

defaults = Blynk (auth_token, pin = "V9") start_button = Blynk (auth_token, pin = "V3") Rmax = Blynk (auth_token, pin = "V0") Rmin = Blynk (auth_token, tus pin = "V1") Rres = Blynk (auth_token, tus pin = "V2")

ThetaMax = Blynk (auth_token, tus pin = "V4")

ThetaRes = Blynk (auth_token, tus pin = "V5")

PhiMax = Blynk (auth_token, tus pin = "V6")

PhiRes = Blynk (auth_token, tus pin = "V7")

Threshold = Blynk (auth_token, tus pin = "V8")

ServoMin = Blynk (auth_token, tus pin = "V10")

ServoMax = Blynk (auth_token, tus pin = "V11")

def LCDsetup ():

LCD1602.init (0x27, 1) # init (qhev chaw nyob, lub teeb tom qab)

def numMap (x, in_min, in_max, out_min, out_max): "" "siv los ua daim phiaj qhia kev nyeem walabot rau txoj haujlwm servo" "" rov qab int ((x- in_min) * (out_max - out_min) / (in_max - in_min) + tawm_min)

# siv qhov no txhawm rau muab cov ntaub ntawv nyoos rau tus nqi uas tau muab

def myRound (x, puag = 2): rov qab int (puag * puag ncig (ntab (x)/puag)))

#rho tawm tus lej daim ntawv xa rov qab blynk txoj hlua

def numberExtract (val): val = str (val) rov qab int (lim (str.isdigit, val))

# Teeb zaus rau 60hz, zoo rau kev pabcuam.

pwm.set_pwm_freq (60)

# Kho qhov min thiab max servo pulse lengths defaults default

SERVO_MIN = 175 # Tus mem tes ntev ntawm 4096 SERVO_MAX = 575 # Max mem tes ntev tawm ntawm 4096

# walabot tus nqi qub

R_MAX = 60 R_MIN = 20 R_RES = 5

THETA_MAX = 20

THETA_RES = 5

PHI_MAX = 20

PHI_RES = 5

TSHIAB = 1

# hloov pauv rau blynk hloov pauv

rau = "[u'1 ']"

chav kawm Walabot:

def _init _ (tus kheej):

self.wlbt = WalabotAPI self.wlbt. Init () self.wlbt. SetSettingsFolder () self.isConnected = False self.isTargets = tsis tseeb

def blynkConfig (tus kheej):

load_defaults = defaults.get_val () yog str (load_defaults) == on: SERVO_MAX = ServoMax.get_val () SERVO_MAX = numberExtract (SERVO_MAX) print ("Servo Max =", SERVO_MAX)

SERVO_MIN = ServoMin.get_val ()

SERVO_MIN = numberExtract (SERVO_MIN) print ("Servo MIN =", SERVO_MIN) R_MAX = Rmax.get_val () R_MAX = numberExtract (R_MAX) print ("R max =", R_MAX)

R_MIN = Rmin.get_val ()

R_MIN = numberExtract (R_MIN) print ("R Min =", R_MIN)

R_RES = Rres.get_val ()

R_RES = numberExtract (R_RES) print ("R Res =", R_RES)

THETA_MAX = ThetaMax.get_val ()

THETA_MAX = numberExtract (THETA_MAX) print ("Theta Max =", THETA_MAX) THETA_RES = ThetaRes.get_val () THETA_RES = numberExtract (THETA_RES) print ("Theta Res =", THETA_RES)

PHI_MAX = PhiMax.get_val ()

PHI_MAX = numberExtract (PHI_MAX) print ("Phi Max =", PHI_MAX) PHI_RES = PhiRes.get_val () PHI_RES = numberExtract (PHI_RES) print ("Phi Res =", PHI_RES)

THRESHOLD = Threshold.get_val ()

THRESHOLD = numberExtract (THRESHOLD) print ("Threshold =", THRESHOLD)

lwm qhov: # yog tias tsis muaj dab tsi los ntawm blynk app, ntsaws qhov ua tsis tau tiav SERVO_MIN = 175 # Qhov mem tes ntev ntawm 4096 SERVO_MAX = 575 # Max mem tes ntev tawm ntawm 4096

# walabot tus nqi qub

R_MAX = 60 R_MIN = 20 R_RES = 5

THETA_MAX = 20

THETA_RES = 5

PHI_MAX = 20

PHI_RES = 5

TSHIAB = 1

def txuas (tus kheej): sim: tus kheej. (self.wlbt. FILTER_TYPE_NONE) #self.wlbt. SetDynamicImageFilter (self.wlbt. FILTER_TYPE_DERIVATIVE) self.wlbt. SetArenaTheta (-THETA_MAX, THETA_MAX, THETA_RES) SetArenaR (R_MIN, R_MAX, R_RES) self.wlbt. SetThreshold (THRESHOLD) tshwj tsis yog self.wlbt. WalabotError ua yuam kev: yog errcode! = 19: # 'WALABOT_INSTRUMENT_NOT_FOUND' nce yuam kev

def pib (tus kheej):

self.wlbt. Start ()

def calibrate (tus kheej):

self.wlbt. StartCalibration ()

def get_targets (tus kheej):

self.wlbt. Trigger () rov self.wlbt. GetSensorTargets ()

def nres (tus kheej):

self.wlbt. Stop ()

def disconnect (tus kheej):

self.wlbt. Disconnect ()

def lub ntsiab ():

chij = Tseeb tseeb = "" LCDsetup () thaum tus chij: LCD1602.write (0, 0, 'Guitar') LCD1602.write (0, 1, 'Effect Control') time.sleep (2) LCD1602.write (0, 0, 'Nias Pib rau') LCD1602.write (0, 1, 'pib') time.sleep (2) yog (str (kos) == on): chij = Tsis tseeb lwm yam: kos = start_button.get_val () # kos rau blynk pib khawm nias yog (GPIO.input (18) == 0): #check footswitch chij = Cuav

LCD1602.write (0, 0, "OK! Cia peb ua nws")

LCD1602.write (0, 1, ``) wlbt = Walabot () wlbt.blynkConfig () wlbt.connect () LCD1602.clear () yog tsis wlbt.isConnected: LCD1602.write (0, 0, 'Tsis Txuas') lwm tus: LCD1602.write (0, 0, 'Txuas') sijhawm.sleep (2) wlbt.start () wlbt.calibrate () LCD1602.write (0, 0, 'Calibrating …' ') time.sleep (3) LCD1602.write (0, 0, 'Pib Walabot')

appcheck = start_button.app_status () chij = Muaj tseeb # rov pib dua tus chij rau lub luag haujlwm tseem ceeb

thaum tus chij: # siv los ua kom muaj txiaj ntsig hauv kev tos (muaj txiaj ntsig)

if (appcheck == True): if (str (check)! = on): if (GPIO.input (18)! = 0): #check footswitch flag = False else: check = start_button.get_val () #check rau pib khawm nias appcheck = start_button.app_status ()

lwm tus:

yog (GPIO.input (18)! = 0): #xyuas footswitch chij = Tsis tseeb

xwv = 0

yval = 0 zval = 0 nruab nrab = 2 delayTime = 0

cov hom phiaj = wlbt.get_targets ()

yog len (lub hom phiaj)> 0:

rau j hauv thaj tsam (nruab nrab):

cov hom phiaj = wlbt.get_targets ()

yog len (cov hom phiaj)> 0: print (len (cov hom phiaj)) cov hom phiaj = cov hom phiaj [0]

luam tawm (str (targets.xPosCm))

xval += int (targets.xPosCm) yval += int (targets.yPosCm) zval += int (targets.zPosCm) time.sleep (delayTime) else: print ("no target") xval = xval/nruab nrab

xval = numMap (xval, -60, 60, SERVO_MIN, SERVO_MAX)

xval = myRound (xval) if xval SERVO_MAX: xval = SERVO_MAX LCD1602.write (0, 0, 'x =' + str (xval) + '') pwm.set_pwm (0, 0, xval)

yval = yval/nruab nrab

yval = numMap (yval, -60, 60, SERVO_MIN, SERVO_MAX)

yval = myRound (yval) if yval SERVO_MAX: yval = SERVO_MAX LCD1602.write (0, 1, 'y =' + str (yval)) pwm.set_pwm (1, 0, yval)

zval = zval/nruab nrab

zval = numMap (zval, R_MIN, R_MAX, SERVO_MIN, SERVO_MAX)

zval = myRound (zval) yog zval SERVO_MAX: zval = SERVO_MAX LCD1602.write (8, 1, 'z =' + str (zval)) pwm.set_pwm (2, 0, zval)

lwm tus:

luam tawm ("tsis muaj lub hom phiaj") LCD1602.write (0, 0, "Shutting Down") LCD1602.write (0, 1, 'The Walabot') time.sleep (3) wlbt.stop () wlbt.disconnect ()

yog _name_ == '_main_':

thaum muaj tseeb: lub ntsiab ()

rau guitareffect.sh

#!/bin/sh

cd /home /pib

sudo python GuitarEffectCLI.py

Ib daim qauv ntawm RC cov ntaub ntawv hauv zos rau siv

#!/bin/sh -e # # rc.local # # Tsab ntawv no tau ua tiav ntawm qhov kawg ntawm txhua qhov kev ua haujlwm ntau ntau # Nco ntsoov tias tsab ntawv yuav "tawm 0" ntawm kev ua tiav lossis lwm yam # tus nqi ntawm kev ua yuam kev. # # Txhawm rau pab lossis lov tes taw tsab ntawv no tsuas yog hloov qhov ua tiav # khoom. # # Los ntawm lub neej ntawd tsab ntawv no tsis ua dab tsi.

# Luam tus IP chaw nyob

_IP = $ (hostname -I) || muaj tseeb yog tias ["$ _IP"]; ces printf "Kuv tus IP chaw nyob yog %s / n" "$ _IP" fi

./blynk-library/linux/blynk --token = "koj token mus ntawm no" &

pw 10 sudo /home/pi/guitareffect.sh & tawm 0

Kauj Ruam 27: Github Cov Chaw Siv Khoom Siv

Siv qhov no rau Sunfounder LCD

github.com/daveyclk/SunFounder_SensorKit_f…

Siv qhov no rau tus neeg tsav tsheb servo

github.com/daveyclk/Adafruit_Python_PCA968…

Siv qhov no rau Blynk Python HTTPS Wrapper

github.com/daveyclk/blynkapi

Kauj Ruam 28: Xaus

Image
Image
Walabot FX- Guitar Effect Control. Full Demo
Walabot FX- Guitar Effect Control. Full Demo
Xaus
Xaus
Xaus
Xaus

Zoo qhov no tau nkhaus kev kawm nkhaus, tab sis tau tsim nyog nws.

Kuv lub sij hawm yog

  • Kuv yuav tsum kawm Python..nws tawm nws ace
  • Cuam tshuam Python ntawm Raspberry Pi nrog Blynk IoT kev pabcuam. Qhov no tsis tau txais kev txhawb nqa yog li muaj qee qhov txwv rau nws txoj haujlwm. Tseem ua haujlwm zoo txawm tias!
  • Nws hloov tawm Walabot yog qhov zoo rau kev hais kwv txhiaj. Kuv siv nws ntawm Korg SDD3000, tab sis koj tuaj yeem siv cov txiaj ntsig uas koj nyiam

Mus koj tus kheej. Qhov no tsis txwv rau cov teebmeem guitar, kuv tuaj yeem siv nrog cov twj paj nruag nrog rau cov txiaj ntsig.

Raspberry Pi Contest 2017
Raspberry Pi Contest 2017
Raspberry Pi Contest 2017
Raspberry Pi Contest 2017

Khiav Tawm Hauv Raspberry Pi Contest 2017

Pom zoo: