- 175
- 4 837 945
Playful Technology
United Kingdom
Registrace 10. 11. 2017
Tinkering with technology and making playful experiences - games, toys, and puzzles to entertain, surprise and delight.
How to use USB HID Devices as Arduino Inputs - Keyboards, Mice, Magstripe/Barcode readers, and more!
In this video, I'll describe how to use an Arduino (or ESP8266 / ESP32 / other microprocessor) as a USB Host, allowing you to use any USB HID device such as a keyboard, mouse, trackball, joystick, gamepad, barcode scanner, or magstripe reader as an input.
This provides many opportunities for novel input mechanisms beyond the typical switches and pushputtons associated with Arduino projects, and I'll demonstrate one such example - using a barcode scanner as a "decoder" that displays messages encoded in QR codes or barcodes found in an escape room :)
To customise this project for other devices, you need to define the appropriate logic in the report parser function that processes input from the device, based on the USB HID standard published here:
usb.org/sites/default/files/hut1_21.pdf
Timings
00:00:00 - 00:00:38 Introduction and Demonstration
00:00:39 - 00:02:10 USB Host Shield
00:02:11 - 00:03:35 Barcode scanner
00:03:36 - 00:08:03 Data and Power Interface
00:08:04 - 00:28:52 Arduino Code
00:28:53 - 00:31:46 Wrapup
To download the resources used in this project (as well as all the other escape room tutorials in this channel), please check out my patreon at www.patreon.com/playfultech
This provides many opportunities for novel input mechanisms beyond the typical switches and pushputtons associated with Arduino projects, and I'll demonstrate one such example - using a barcode scanner as a "decoder" that displays messages encoded in QR codes or barcodes found in an escape room :)
To customise this project for other devices, you need to define the appropriate logic in the report parser function that processes input from the device, based on the USB HID standard published here:
usb.org/sites/default/files/hut1_21.pdf
Timings
00:00:00 - 00:00:38 Introduction and Demonstration
00:00:39 - 00:02:10 USB Host Shield
00:02:11 - 00:03:35 Barcode scanner
00:03:36 - 00:08:03 Data and Power Interface
00:08:04 - 00:28:52 Arduino Code
00:28:53 - 00:31:46 Wrapup
To download the resources used in this project (as well as all the other escape room tutorials in this channel), please check out my patreon at www.patreon.com/playfultech
zhlédnutí: 3 727
Video
Wireless Inductive LEDs
zhlédnutí 3,9KPřed 14 dny
Everything is made better with LEDs, right? They make things sparkly, and can be a useful visual feedback mechanism. Some time ago, I investigated an RFID tag that had a built-in LED which was lit when the tag was read - energised by the electromagnetic field as it was brought close to the RFID reader, as found in Skylanders "Lightcore" figures. However, I found that approach was somewhat flawe...
"SafeCracker" Escape Room Puzzle Tutorial
zhlédnutí 2,2KPřed měsícem
Learn how to create an escape room puzzle in which players need to crack the code to open an electronic safe. It uses a small solid steel safe (available at www.amazon.co.uk/gp/product/B07KZZX6ZN ), which has been modified by the addition of an ESP32, some programmable LEDs, a 7-segment display, a rotary encoder, and a piezo transducer. Players must rotate the rotary encoder, alternating clockw...
"Puzzling Paintings" Escape Room Puzzle Tutorial
zhlédnutí 2,4KPřed 2 měsíci
This is a tutorial for an escape room puzzle in which players must rotate paintings on a wall to depict the correct subjects. When all the images are rotated to the correct orientation (as determined by a magnet embedded in the side edge of the frame, detected by a magnetic sensor in the back board), an Arduino activates a relay to release a maglock. Timings 00:00:00 - 00:01:27 Introduction and...
Create Optical Illusions using Artificial Intelligence!
zhlédnutí 1,4KPřed 2 měsíci
In this video I'll explain how to use generative A.I. to create optical illusion images (also known as ambigrams, or anamorphic images), which can be made to resemble different subjects depending on how they are viewed. All software is freely-available and can be run via a Python script on your own desktop PC - no licence or server subscription required! I'll be using Stability AI's Deepfloyd I...
Timed Buttons Escape Room Puzzle Tutorial
zhlédnutí 2,1KPřed 3 měsíci
This is a tutorial for an escape room puzzle using illuminated arcade buttons (the same ones I used at czcams.com/video/AjAF7ceiurw/video.html and czcams.com/video/S2eK29do-z0/video.html). The objective is simple - to make all the buttons light up at the same time - which releases a maglock and opens the door. However, when there are more buttons than there are players, and those buttons are po...
DIY Arduino Quiz Buzzer System
zhlédnutí 2,9KPřed 3 měsíci
This is a video tutorial explaining how to create an #arduino multiplayer interactive quiz buzzer system, as used in TV gameshows, pub quizzes, etc. Code available for download from github.com/playfultechnology/arduino-quizbuzzer
Understanding ARCADE BUTTONS
zhlédnutí 2,7KPřed 3 měsíci
Arcade buttons are robust, durable inputs suitable for a wide-range of electronics projects - not only videogames and arcade machines, but interactive museum and gallery exhibits, public art installations, escape room props... and many more! They are not expensive, and they're easy to obtain from online suppliers or can be reclaimed from old scrap machines. In this "deep-dive" tutorial video I'...
Build Your Own Knife Throwing Escape Room Carnival Game
zhlédnutí 2,5KPřed 3 měsíci
This video tutorial explains how to build your own "knife-throwing" escape room puzzle, inspired by impalement arts tricks performed in the circus or carnival. The wooden board has a number of slotted holes, arranged to narrowly miss the outline of a lucky target. When players insert knives into the correct slots, they block a beam of infrared light which is detected by a sensor, a sound effect...
Creating a 3D printed electronic sensor mount using OpenSCAD
zhlédnutí 2,1KPřed 4 měsíci
In this video tutorial, I'll explain how I use free, open-souce 3D modelling software called OpenSCAD to design a custom mount for an electronic beam-break sensor. The design places the transmitter and receiver units facing each other, either side of a slot in a faceplate. When an object is inserted into the slot, the beam is obscured, which causes the output signal from the receiver to change ...
Escape Room Puzzle Tutorial - The "Fortune Teller's Crystal Ball"
zhlédnutí 3,9KPřed 5 měsíci
In this video tutorial, I'll explain how to create a "Fortune Teller's Crystal Ball" escape room puzzle that uses the built-in touch input of an ESP32 microprocessor to detect when players place their hands on certain tarot cards. As they touch the cards, a crystal ball illuminates, using a MOSFET to gradually increase the current through a 12V LED lamp, and a sound effect plays through a seria...
Escape Room Puzzle Tutorial - "Make The Flowers Grow"
zhlédnutí 3KPřed 6 měsíci
In this video tutorial, I'll explain how I created an escape room puzzle using an Arduino UNO to set the correct lighting conditions to make three flowers grow :) The Arduino reads the value from three sliding linear potentiometers, which it translates into an RGB value. That value is sent via a DMX shield to set the colour of a stage light. If the colour matches the colour of petals on one of ...
Playful Tech - MY ESP32 (Diss Track)
zhlédnutí 1,7KPřed 6 měsíci
My Christmas present from my sons was a remix of some old Playful Technology video footage from this channel into my very own diss track. It was made with such effort and love that it seemed a shame not to share it further, so, here it is.... enjoy, and I wish you a very Merry Christmas (and please tell your mum I miss her)! xxx Intro: Hi, I'm Alastair (repeat) Verse 1: I hope that you like my ...
Build an Automated Fairground Shooting Gallery
zhlédnutí 2,7KPřed 7 měsíci
In this video, I'll explain how I built a Target Gallery Shooting Range, as you might find at a carnival funfair. Unlike those stalls, which are typically manned by an attendant, this one is designed to automatically release a prize when all the targets have been knocked down. You can use nerf guns, ping pong balls, elastic band guns, or many other projectiles to hit the targets, which means yo...
Build your own "X-Ray Scanner"!
zhlédnutí 4,6KPřed 8 měsíci
This is a video tutorial explaining how to create an "X-Ray Scanner" electronic prop for an escape room. Players place items into a large slot, and the monitor above displays an image showing their internal contents! It uses a R200 UHF RFID reader to detect the item that has been inserted into the scanner. Unlike common MFCR522, PN532, or PN5180-based readers, this is a EPC Gen2 reader which us...
Make a remote-control haunted flashlight!
zhlédnutí 3,6KPřed 9 měsíci
Make a remote-control haunted flashlight!
GPIO Inputs and Outputs - an intermediate guide for Arduino and ESP projects
zhlédnutí 3,9KPřed 10 měsíci
GPIO Inputs and Outputs - an intermediate guide for Arduino and ESP projects
Audio modules for electronics project
zhlédnutí 43KPřed 11 měsíci
Audio modules for electronics project
Creating Dynamic Character Interactions for Escape Rooms
zhlédnutí 4,7KPřed rokem
Creating Dynamic Character Interactions for Escape Rooms
"Crown Jewels" Escape Room Puzzle Tutorial using Multiple Colour Sensors
zhlédnutí 4,1KPřed rokem
"Crown Jewels" Escape Room Puzzle Tutorial using Multiple Colour Sensors
Inductive Sensors for Escape Room puzzles
zhlédnutí 3,9KPřed rokem
Inductive Sensors for Escape Room puzzles
"Split Audio" Escape Room Puzzle Tutorial
zhlédnutí 6KPřed rokem
"Split Audio" Escape Room Puzzle Tutorial
How to make an ESP32 Escape Room Pirate Wheel Puzzle
zhlédnutí 4,9KPřed rokem
How to make an ESP32 Escape Room Pirate Wheel Puzzle
Learn to Make Your Own Rising Pedestal Escape Room Prop
zhlédnutí 8KPřed rokem
Learn to Make Your Own Rising Pedestal Escape Room Prop
I trained an AI to decode Morse code messages on an ESP32!
zhlédnutí 8KPřed rokem
I trained an AI to decode Morse code messages on an ESP32!
Node-REDscape : 100% Free, Open-Source Escape Room Control Software
zhlédnutí 16KPřed rokem
Node-REDscape : 100% Free, Open-Source Escape Room Control Software
Escape Room Tech Puzzle Tutorial - "Valves And Gauges"
zhlédnutí 9KPřed rokem
Escape Room Tech Puzzle Tutorial - "Valves And Gauges"
Make HEAVY DUTY analog inputs for Arduino / ESP32 / RaspPi projects using.... plumbing valves?!
zhlédnutí 13KPřed rokem
Make HEAVY DUTY analog inputs for Arduino / ESP32 / RaspPi projects using.... plumbing valves?!
Floppy Disk Console Escape Room Puzzle Tutorial with ESP32 and RFID
zhlédnutí 6KPřed rokem
Floppy Disk Console Escape Room Puzzle Tutorial with ESP32 and RFID
Arduino GIGA R1 has builtin USB host functionality and two USB ports so you can connect USB directly without additional hardware :)
That is so clever, I clicked on this video wondering what sensor would you use and led + ldr is so brillant!
Any changes to the AR Tool landscape since this video was made? For example, Flutter , ARLoopa, or Flet/ARCore ? I'd like to make an Android application that can find components from a circuit board! Just use your camera and it will overlay a marker on the component... however, not sure if there is a minimum marker size , and if it can be overlayed with such high precision. For example, if you have a sheet of paper with a grid of squares, say 50x50.. if A4 is said/entered, could AR use a fiducial on the paper to calculate how far into the grid it needs to place a marker (scaling it based on the the angle and how close the camera is to the sheet).
I found that existing morse code decoder applications (CW Skimmer, CWGet , morsecode scphillips translator, etc) aren't very accurate.. this approach seems much more reliable!
Hi ! Thank you for this great video Do you think it would be possible to do the same by just adding a mic and a speaker instead of using the ones on the phone ?
Great explanation, thanks. If you use the Arduino power plug, doesn't that provide external power for the USB device as well?
Looking at that large coil I want to make a game where things need to go through that hoop and they will light up when traversing. Haven't figure out what to do with this effect yet
I thought running the Nano on 12v causes issues if you have other devices connected, which use 5v.
As always a great presentation with excellent explanations, im now thinking how to use this in an escape room scenario, the barcode scanner specifically to provide hints or clues. My pc mouse and keyboard are wireless with a bluetooth dongle, could a wireless barcode reader also be used without too much fuss ??
Awesome explanation, and why what library and includes to be used and why. Knowing why can empower us to do the right thing.
i've been doing the opposite recently - creating USB HID devices (specifically joysticks!) using Atmel AVR processors and V-USB :)
A Teensy 4 has USB HID built in for mice, keyboards, joystick, MIDI etc.
The newer esp32's have them also (the s3 for example)
2:54 Nice little pet on the top left corner of the screen )
Bug in the code.
I'm currently building a room with some DnD properties, and I think I'm going to 3d print some dice with clear filament, stop mid-print and embed these in the centre of the die. Then they have to throw them through the loop to see which die relates to which colour
Starting now...
When you talk about when the LEDs light up vs when the RFID tag is recognised, what about an arduino or similar that can read the RFID tag and only power up the coil when the correct item is placed on? It wouldn't have the cool proximity-fading-in effect, but it would still work as feedback. Also if you still wanted the fade-in, you could ramp up the power when the RFID is detected.
Sound like this could be used to measure a distance ?
But the 6 analog pins (A0 - A5) on the Arduino can only be used as input pins not output. How are you using the A0 pin to turn the relay on or off?
A0 to A5 can be used as output pins absolutely fine - just intitialise them as pinMode(Ax, OUTPUT); and then digitalWrite(Ax, HIGH); just as with any other pin.
Great video, Thank You! Please do some tutorials on BOSL2, looks VERY useful!
As a tip for those looking to power these by battery/solar, the built in voltage regulator is terribly inefficient, even when its not being used it draws precious power.
Very nice! It would be extremely interesting if you could do the same project but on a larger scale. Let's say a shelf 1 meter long and 20 cm wide, and each glass that would stand on the shelf being illuminated by a led. What electronic parts would be needed? Thanks for sharing! All the best!
you can install a smartphone vibration motor on the knob and use encoder with allot more step but with no physical detent, so you can do all the haptic feedback in software
Good Idea until you get a Gen Z in the Escape and all that's going through they're minds is "WTF is that?".
How much power does it use?
Wow ~ just found your channel, you are now top of my play list ~ excellent presentation, thank you. AndyT(Somerset)
Awh, thanks Andy - that's really kind of you to say!
Seems a bit weak and over complicated :D Lectenna can be cut for specific frequency. Mtech Industries resonator has range of several meters.
fun nice
Atomic14 channel has a great video about how to make those 👍
I don't know how the library code works, but I can imagine that mixing up interrupt priorities can really mess with the accuracy of your measurements (?)
Funnily enough I ordered some of these earlier today and this video just came up on my CZcams suggestions 😂 Hopefully in a few days I'll get to have a play with them!
Cool feedback application! My one idea is to use multiple sizes with a wand / divining rod and you could even use it as a meter that "grows" or "charges up" in strength as you get closer (5mm works further away, then 4mm as you get closer)
Just ordered a huge batch of these from your Patreon Link! Thx
When I first learned that these existed, my first reaction was to run to Amazon and Etsy only to be disappointed that apparently nobody was selling resin-cast dice with them embedded inside. Hide the coil in a dice tray and I think you'd have a pretty neat setup for your tabletop sessions.
Omg I was thinking I had no use for these, but this is perfect.
Okay, I've committed to this - I've got LEDs, resin, inks, mica, molds and various accessories on the way. I'm going to make this. I can let you know when I have something working if you want. It's going to be experimental and I have no idea how fair the dice will be, but I'm going to figure it out.
How many turns in thr coil?
Would you reveal the name of the driver board ? It is a great idea. I will create a puzzle with that i think 👍 thanks for your great videos
I'll make another video specifically about how you can create your own driver board, but for now: imgur.com/a/s9QzJ3J
Woww, it's cool! Does anybody know what the name of the driver is? I would like to buy it separately (as cheap as possible :D), and make custom coils so the leds only light up at a small place. Also, turning the coil on and off via a mosfet would be pretty cool, as it could become an even more interactive prop
imgur.com/a/s9QzJ3J
Disney imagineers had made a 3-coil setup with full bridge rectification so that regardless of the orientation the LED would light up
Nice! There's a couple of snazzier circuit modifications I've considered: e.g. you could have several LEDs coming off the same inductor coil, each with a different value capacitor acting as band pass filters. Then, if you adjusted the oscillation frequency of the transmitter coil, you could selectively light up, say, RGB LEDs independently.
Or, you could put different capacitor values on each LED to activate them sequentially in a chase sequence.
@@PlayfulTechnology Bootleg delay timers
I had jars of sprinkles that are scattered around the room that you need to collect and place on a shelf. I couldn't figure out a reason why you would need to put them in order. Then I discovered these lights. I superglued a ring of these inside each jar. Unless you look really close, you don't even notice them, but when you put them on the shelf, they "magically" light up a color. It's a really cool effect, especially since this particular room is geared towards families.
Oh, that's a lovely implementation!
First 🔥🔥🔥
Thanks for sharing this video ... could you please share the code with the circuit diagram .
Not sure if you'll see this, but I keep running into an issue where it says I need to select a USB type either 'MTP Disk (Experimental)' or 'Serial + MTP Disk (Experimental)' not sure what I should do about that. Do I have the wrong version of MTP_Teensy or something?
Use the latter.
@@MS-vv9bi Ok how do I choose? what do I need to add or change in the code?
Sir, Can you share your code ?
Thank you for this amazing tutorial! I am observing some issues with the recorded WAV-files. For no reasons sometimes parts of the WAV files seem to speed up to almost double speed. It is for a few seconds (let's say 2-10 sec), then it is working normal again. I can verify that it is no transmission error, the files on the SD card are corrupted in this way. it seems like there is some loss in the speed up parts. Is this likely to be caused by the low memory cache? maybe I have to rise it to double size? 120? I would really appreciate any help and ideas on that.
More BOSL2 tutorials please :)
Outstanding video. Nice to get recommendations from someone who knows what they are doing. Particularly liked the power wiring for the DF. Is the size of the smoothing/filtering cap critical (assuming the voltage can be handled of course)?
Please circuit diagram please
Sir please provide circuit diagram please Please
Hi sir i am from India i want to know . About Wirering of the circuit please tell me
Aggghhhh! Where were you last Halloween? Seriously, had NO idea you could do the touch sensors this way. Thank you so much for the explanation and walkthrough. Haven’t found anything else like this and always learn a ton w. your videos!
I recently got afew of the blue 8 track flash drive boards, came with 8 MP3 files on them however when I add my own MP3 files only 1 will play, and only from the I01/RX tab on the board, I get nothing from the 102, 103, 104 etc tabs. These all work & play the included test MP3's. What am I doing wrong?
Ok Now have it playing the 4 sound files I want, controlled by 4 latching on-off switches, Only issue now is if I flip a switch it plays the sound file twice, then stops. Don't know why it plays each one twice...