![]() It has WiFi capability but I am using it with hardwired ethernet for reliability. I am using an FDT FD7903 Outdoor HD PTZ IP camera. I am using a generic CDS photocell for ambient light detection. I built a trip wire sensor using a generic 5V 5mW red laser and a generic CDS photocell. I am using HC-SR501 modules for PIR detection. I will use the 8266 Thing Dev for one zone sensor and I bought an additional 8266 Thing for the second zone sensor. I decided for the purposes of the contest that I would only implement 2 of the 3 zones as proof of concept (I will finish the third zone when I have more time). I won a Sparkfun 8266 Thing Dev from the idea phase of this contest. The Pi is running Omxplayer to display a live stream from the camera. I used an old 20” Samsung LCD monitor with a Raspberry Pi to implement that. I wanted to have a “live” display of the camera image in my living room for continuous monitoring. skip_frames ( time = 2000 ) # Skip some frames to debounce redLED. save ( imgname ) snapno = snapno + 1 sensor. on () print ( "code found! saving photo: " ) imgname = str ( snapno ) + "-qr.jpg" sensor. payload (), color = 127 ) # save pic & delay 2s if our QR code is detected if ( str ( code. payload ())) # draw the barcode string on the screen similar to cv2.putText img. on () snapno = 0 # barcode type lookup table barcode_type = ". skip_frames ( time = 2000 ) # Skip some frames to let the image stabilize about 4 sec redLED. LED ( 3 ) # built-in blue LED ledPin = pyb. LED ( 1 ) # built-in red LED blueLED = pyb. set_hmirror ( True ) # Mirrors the image horizontally # initialize the clock clock = time. set_vflip ( True ) # Flips the image vertically sensor. QVGA ) # Sets the resolution to 320x240 px sensor. RGB565 ) # Sets the sensor to RGB sensor. # Adapted from: # And: # by Alex Glow for Hackster.io, 2022 # for F3NR1R: # import necessary packages import sensor import time import image import pyb sensor. Here's a fit test on a failed, crumbly one, and you can see the final version mounted below the Nicla in the photo under "Vision System": I designed this mounting block in OnShape ( project link ), and while I had some slicer/printer issues at first, I got a really solid one eventually. as I found while trying to edit some of my footage! Alas! In future, I'll wind the cables around my arm and try to minimize moving the mic.) ![]() (Unfortunately, if I haven't secured the cables, those can cause noise in the recording. ![]() It holds a cardioid lavalier mic, and can be held like a regular microphone when I want to do interviews. This little 'bot is ALSO inspired by those "dead cat" wind-screening fuzzy sock things they put over microphones, and serves much the same purpose. I wrote the code in MakeCode block script, which you can grab here: Īlthough both servos have worked at different times, I couldn't get it to be reliable, so for this conference, I dialed it back to flicking just the right-side ear. The Nicla is hooked up to a right-angle Micro USB cable, which I plug into a battery pack stashed in my bag. I used this to back up the photos during Embedded Vision Summit. As it stands, the photos become readable on the board after it resets, which is handy because I can pull them onto my iPad using it as a USB flash storage device. On this prototype, it currently resets the counter each time it wakes up, so I'll need to rewrite that to prevent new photos from overwriting the older ones. Once it finds a barcode, if it matches this URL ( ), it illuminates the red LED (both the onboard LED and one I've attached to GPIO), takes a photo, and saves it to local memory with an incrementing counter. The Nicla is set up to read any barcodes in the frame, using the OpenMV IDE and compatible MicroPython code, following this code from Adrian Rosebrock: – You can find my mashed-up version in the Code section below. It also happened to be the fourth anniversary of finishing my first robot familiar, Archimedes, on the eve of Bay Area Maker Faire 2018! So, this felt pretty magical.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |