Hirdetés
- Drasztikus változást mutat a Sony mobilja az első képeken
- Hatalmas telepet és fizikai ventilátort kaptak az új Oppo-k
- Tizenegyes! A VAR helyett a CAD buktatta le a Google profi játékosát
- Gyorsabb processzort igen, memóriát alig kapott a Xiaomi új HD tévéokosítója
- Ennyit szűkít az X300 Ultra a telepen Európában
- Samsung Galaxy S26 Ultra - fontossági sorrend
- Drasztikus változást mutat a Sony mobilja az első képeken
- Apple iPhone SE (2020) - életképes alternatíva
- Xiaomi 17 Ultra - jó az optikája
- Szívós, szép és kitartó az új OnePlus óra
- One mobilszolgáltatások
- Google Pixel topik
- Huawei Watch Fit 3 - zöldalma
- VoLTE/VoWiFi
- Így lehet kiszúrni, ha kamu AirPods fülest akarnak eladni neked
Új hozzászólás Aktív témák
-
papaja-xbox
tag
Üdv lenne egy olyan kérdésem hogy szeretnék építeni egy robotott az elektronika megvan csak a program hiányzik . Adtak egy példált hozzá de nem akar lefutni mi a progbléma? A pdf tartalmát kimásoltam (angol)
A real-world example
Francis Rogers of Sun City West, Arizona wrote me to describe an application he’d like
to build with the Stamp. He has a PC with barcode software that can read membership
cards for his S.C.W. Metals Club. The barcode software generates a code through the PC
serial port when it’s presented with a valid card. Mr. Rogers would like the Stamp to read
this code and energize a relay to unlatch a door.
This fits perfectly with the theme of this month’s column. Figure 6.3 is the schematic.
I’ve made some assumptions about Mr. Rogers’ barcode software: that it can be set to
output at 2400 baud, and that all valid cards output some common code for the Stamp to
recognize.
Thanks to the serial-input (Serin) command’s built-in “qualifier” feature, the entire
program takes just a few lines of Stamp code:loop:
low 7 ' Pin 7 low to latch door (relay open)
serin 0,N2400,("OK") ' Watch serial input until "OK" rec'd.
high 7 ' Pin 7 high to unlatch door (relay closed).
pause 5000 ' Wait 5 seconds. Latch door and resume
goto loop ' Watching serial input.Of course, Mr. Rogers will have to substitute the actual password for “OK” in the
program above.
That’s it for this month. Next time, we’ll look at a nifty IC that lets the Stamp transmit
and receive DTMF tones (telephone touch tones). In addition to obvious telephone
applications, DTMF can be used as a form of low-speed, high-reliability data transfer.
Stay tuned!The Nuts and Volts of BASIC Stamps (Volume 1) • Page 57
Új hozzászólás Aktív témák
- Luck Dragon: MárkaLánc
- Fűnyíró topik
- Samsung Galaxy S26 Ultra - fontossági sorrend
- Drasztikus változást mutat a Sony mobilja az első képeken
- LEGO klub
- Apple iPhone SE (2020) - életképes alternatíva
- Mini PC
- Szünetmentes tápegységek (UPS)
- Luck Dragon: Asszociációs játék. :)
- Építő/felújító topik
- További aktív témák...
- MiIphone 13 Mini 128Gb-gyönyörű-100% akku
- G.Skill Aegis DDR4 16GB CL16 3200MHz Gaming Series
- Magyar menüs Saeco Picobaristo OTC tejtartállyal
- ASUS ROG Zephyrus GA503QM / Ryzen 7 5800HS / 32GB RAM / 1TB SSD / RTX 3060 / 15,6 WQHD 165Hz
- Samsung Galaxy S25 Ultra 256GB, Kártyafüggetlen, 1 Év Garanciával
- Panasonic Toughbook CF-XZ6-1,12",QHD,2 az 1-ben, i5-7300U,8GB RAM,256GB SSD,WIN11
- Eladó/BONTATLAN Lenovo LOQ i7-13650HX 16GB 512GB RTX 4060 8GB
- AKCIÓ! Nintendo Switch OLED 64GB játékkonzol garanciával hibátlan működéssel
- Apple iPhone 17 Pro 256GB Deep Blue Újszerű állapot 100% akku (51 ciklus)
- 27% - LG UltraGear 27GS75Q-B Monitor! 2560x1440 / 200Hz / 1ms / G-Sync / G-Sync / FreeSync
Állásajánlatok
Cég: Laptopműhely Bt.
Város: Budapest

