Cov txheej txheem:

RaspiWWV - Simulated WWV Shortwave Audio Time Broadcast: 10 Steps (with Pictures)
RaspiWWV - Simulated WWV Shortwave Audio Time Broadcast: 10 Steps (with Pictures)

Video: RaspiWWV - Simulated WWV Shortwave Audio Time Broadcast: 10 Steps (with Pictures)

Video: RaspiWWV - Simulated WWV Shortwave Audio Time Broadcast: 10 Steps (with Pictures)
Video: The Coolest Radio You've Probably Never Heard Of 2024, Hlis ntuj nqeg
Anonim
Image
Image
Raspbian OS Teeb
Raspbian OS Teeb

Nco txog hnub uas koj yuav zaum mloog WWV lub sijhawm qhia ntawm koj lub xov tooj cua Shortwave (zuam, zuam, zuam… Ntawm lub suab, lub sijhawm yuav yog…)?

(Hnov nws hauv YouTube saum toj no)

Huag! Koj tsis nco txog qhov ntawd? Tam sim no koj tuaj yeem (rov) ntsib cov sijhawm ntawd thiab muaj koj tus kheej lub WWV moos, tsis muaj Xov Tooj Cua Shortwave thiab tsis xav tau kev sib txuas hauv Is Taws Nem. Tsis yog qhov uas koj ib txwm xav tau?

Qhov tseeb, qhov no yog phiaj xwm los pab qhia koj yuav ua li cas txuas lub vijtsam me me OLED, Lub Sijhawm Tiag (RTC) thiab Lub Suab Amplifier txhua rau ib qho Raspberry Pi Zero! Txhua yam nrog qhov tau txais txiaj ntsig los mloog WWV lub sijhawm "teeb liab" txhua lub sijhawm koj xav tau.

Tsis zoo li WWV tiag, lub suab hais qhia lub sijhawm nrog rau lub moos me me uas tau lees paub yuav tsuas yog qhov tseeb txog li ib thib ob ntawm kev txav mus los ib hnub siv tus qauv RTC tus nqi qis. Koj tuaj yeem txhim kho qhov no los ntawm kev siv qhov zoo dua (kim dua) RTC, lossis tsuas yog tawm hauv Raspberry Pi txuas nrog Is Taws Nem, tab sis qhov no yuav tsis hloov lub moos atomic ntawm WWV tiag. (Saib lub sijhawm tseeb khaws nrog Raspberry Pi cov ntawv, xws li

Txwv tsis pub, rau feem ntau siv, qhov tseeb yog qhov txaus. Feem ntau siv? Zoo, dua li ntog pw tsaug zog kom hnov suab ntawm WWV, Kuv tau siv lub xov tooj cua luv luv rau lub sijhawm ntsuas lub hnub qub kev soj ntsuam; siv daim kab xev kaw (nco txog cov ntawd?), Kuv yuav sau cov kev soj ntsuam huab cua, hnub qub tsis pom kev* lossis lwm yam xwm txheej uas kuv pom, nrog WWV lub sijhawm qhia nyob rau tom qab. “Mark tau!” Tom qab ntawv kaw yuav tuaj yeem sau nrog qhov pom thiab lub sij hawm nyob hauv tsev yooj yim.

Rau cov uas muaj kev nostalgia, nco ntsoov khawb lub xov tooj cua transistor qub (thiab nco qab cov?) Los siv raws li rooj plaub rau koj txoj haujlwm. Nco ntsoov tias rooj plaub yuav tsum loj txaus los teeb lub roj teeb, yog tias koj xav tau nqa mus los!

“WWV” software, sau ua sej, qhia lub sijhawm thiab ua suab nrov tsim nyog. Raspberry Pi moos thiab RTC yuav rov ua haujlwm rau Network Sijhawm Raws Cai (NTP) cov servers thaum twg nws txuas rau Is Taws Nem. (Txhua lub sijhawm nws nyob hauv thaj tsam ntawm koj li WiFi, yog tias koj siv Raspberry Zero W.)

Kauj Ruam 1: Cov Khoom Kho Vajtse

• Raspberry Pi Zero W.

• MakerFocus 0.91 Nti I2C SSD1306 OLED Zaub Module Amazon https://a.co/d/ioakKen (lossis lwm yam SSD1306 128x32 OLED zaub)

• Lub Sijhawm Tiag (RTC) module PCF8523

• I2S 3W Class D Amplifier Breakout - MAX98357A

• Tus Hais Lus Me (Kuv khaws 2 tus neeg hais lus los ntawm tus neeg hais lus PC qub)

• Breadboard, Pi Breakout cable/txuas rau breadboard, xaim

• Yeem tau: 5v 1amp roj teeb (siv los them lub xov tooj ntawm tes) Xws li Anker PowerCore 5000 Portable Charger https://www.adafruit.com/?q=PCF8523 Hloov, koj tuaj yeem siv LiPo roj teeb + 5v hloov/them nyiaj https:/ /www.adafruit.com/?q=PCF8523 https://www.adafruit.com/product/2465 Los yog 5V 2amp fais fab mov rau siv hauv tsev.

• CR1220 roj teeb rau RTC

• Case - xov tooj cua transistor qub

Kauj ruam 2: Raspbian OS Teeb

Nruab Raspbian Stretch Lite mus rau 4GB lossis loj dua daim npav SD. (cov kauj ruam hauv qab no)

  1. Yog tias koj tseem tsis tau muaj, teeb tsa Raspbian Lite version mus rau 4GB lossis loj dua daim npav microSD. Koj TSIS TXHOB xav tau GUI version, vim qhov haujlwm no tsis siv lub monitor lossis keyboard.
  2. Koj yuav tsum nkag mus rau Raspberry nyob deb ntawm SSH. Ntawm Windows, koj tuaj yeem siv PUTTY SSH lub davhlau ya nyob twg. Ntawm Mac, tsuas yog nqa cov lus txib qhib qhov rai.

Koj puas paub? Yog tias koj nruab Raspbian ntawm daim npav SD siv PC, koj tuaj yeem tsim ob daim ntawv ntawm daim npav txhawm rau teeb tsa WiFi thiab SSH nkag mus ua ntej koj khau raj ntawm Raspberry?

Txog qhov no, xav tias koj daim npav SD tam sim no tau teeb tsa ua K: ntawm koj lub PC:

1) Nruab qhov tseeb Raspbian Lite duab mus rau SD.

2) Nrog notepad, tsim cov ntawv hu ua "ssh" thiab siv Txuag Raws li "Txhua cov ntaub ntawv" rau K: / ssh Cov ntawv tuaj yeem muaj dab tsi. Nws yog lub npe ntawv uas tseem ceeb. Yuav tsum tsis yog "ssh.txt" !!!

3) Nrog notepad, tsim cov ntaub ntawv thib ob hu ua "wpa_supplicant.conf" nrog rau hauv qab no:

ctrl_interface = DIR =/var/run/wpa_supplicant GROUP = netdevupdate_config = 1

network = {

ssid = "mySSID" psk = "mypassword" key_mgmt = WPA-PSK}

Siv Txuag Raws Li "Txhua cov ntaub ntawv" rau K: / wpa_supplicant.conf Ib zaug ntxiv, tsis txhob cia Notepad hloov nws mus rau "wpa_supplicant.conf.txt" !!

Thaum koj khau raj Raspberry thawj zaug, Raspbian yuav nrhiav cov no thiab txuas rau koj li Wifi. Tej zaum koj yuav tau saib ntawm koj tus Router rau tus IP chaw nyob, txawm li cas los xij, txij li nws tau pib ua haujlwm.

3. Ntxig daim npav microSD rau hauv Pi thiab ntsaws lub zog tam sim no. Nws yuav siv ob peb feeb los khau raj.

4. Txhawm rau nkag mus rau koj tus Raspberry Pi nyob deb, koj yuav tsum nrhiav nws tus IP chaw nyob. Koj tuaj yeem sim:

$ ssh [email protected] (Los ntawm Putty, nkag mus rau hostname [email protected]

Nco tseg: Yog tias qhov no ua tsis tau, koj yuav tsum tau saib yog tias koj lub Router yuav qhia tus IP chaw nyob ntawm koj li khoom siv hauv zos. Example: ssh [email protected]. X. X

Default password yog "raspberry"

Kauj ruam 3: Hloov kho thiab teeb tsa OS

Hloov kho thiab teeb tsa OS
Hloov kho thiab teeb tsa OS
Hloov kho thiab teeb tsa OS
Hloov kho thiab teeb tsa OS

Thaum khau raj thiab nkag mus, pib los ntawm kev hloov kho koj li Pi OS, hloov tus lej "pi", thiab qhib I2C interface:

sudo apt-tau hloov tshiab

sudo apt-tau hloov tshiab

sudo raspi-teeb tsa

Xaiv:

Hloov tus neeg siv tus password

Kev xaiv cuam tshuam -> I2C Pab kom -> Yog

Nco ntsoov tawm ntawm thaj chaw thiab Lub Sijhawm (UTC) tsis hloov pauv.

Xaiv FINISH

Nco tseg tias WWV khiav hauv UTC lub sijhawm, tsis yog hauv zos.

Koj tuaj yeem tos kom rov pib dua tom qab software nruab tom ntej.

Kauj ruam 4: RaspiWWW Software Install

cd/tsev/pisudo apt nruab -y git git clone https://github.com/rgrokett/RaspiWWV.git sudo kaw tam sim no

Ua ntej sim ua software, kaw lub hwj chim thiab ntsaws lub Pi txhawm rau txuas txuas ntxiv mus.

Pom zoo: