![Kevin Walters](/img/default-banner.jpg)
- Видео 115
- Просмотров 21 065
Kevin Walters
Добавлен 17 ноя 2018
Measuring servo current for position holding using an EDU PICO to compare RP2040 ADC with MCP3208
This is a look at measuring the current for a servo holding its central position against an oppressive thumb. The current can be calculated from the voltage measured across a low-side sense resistor. This is measured using both an external Microchip MCP3208 ADC on the breadboard and the internal ADC of the RP2040 on the Raspberry Pi Pico W on the Cytron EDU PICO board.
GP27 was used for this set of tests and the EDU PICO's potentiometer module on GP28 was turned anti-clockwise to the end stop to output 0V.
The measured voltage is smoothed with an RC filter (4.7k and 10uF). The 12bit ADC values (0-4095) are shown at a low update rate on the EDU PICO's small display with a crude pseudo-logari...
GP27 was used for this set of tests and the EDU PICO's potentiometer module on GP28 was turned anti-clockwise to the end stop to output 0V.
The measured voltage is smoothed with an RC filter (4.7k and 10uF). The 12bit ADC values (0-4095) are shown at a low update rate on the EDU PICO's small display with a crude pseudo-logari...
Просмотров: 21
Видео
Measuring servo current for position holding using an EDU PICO to compare RP2040 with MCP3208
Просмотров 37День назад
This is a look at measuring the current for a servo holding its central position against an oppressive thumb. The current can be calculated from the voltage measured across a low-side sense resistor. This is measured using both an external Microchip MCP3208 ADC on the breadboard and the internal ADC of the RP2040 on the Raspberry Pi Pico W on the Cytron EDU PICO board. The EDU PICO potentiomete...
Examining voltage drop for a micro servo powered by an Arduino UNO R3 using USB and 2.1mm jack
Просмотров 3814 дней назад
This is a closer look at the voltage drop and servo current following on from ruclips.net/video/fL7UPW29Low/видео.html and ruclips.net/video/tCOIdQTEGDE/видео.html The Zoyi ZT703-S is showing the voltage (in AC mode) from the Arduino UNO Rev3's 5V pin on the top in cyan and the servo current is shown below it in yellow. One vertical division is approximately 160mA. The AstroAI multimeter is sho...
Examining current vs control pulses for a servo and effect of capacitors using an Arduino UNO R3
Просмотров 4821 день назад
This is a closer look at the servo current following on from ruclips.net/video/tCOIdQTEGDE/видео.html The Zoyi ZT703-S is showing the servo control pulse on the top in cyan and the current is shown below it in yellow. One division is approximately 160mA, half of the vertical height is 640mA, the full height is 1280mA. The motor's movement can clearly seen to be synchronised with the fall of the...
Cytron Maker Nano RP2040 powering test with LEDs, MQ-3 gas sensor and servo using laptop USB2 port
Просмотров 2128 дней назад
This is a test of some typical hobbyist peripherals with a Cytron Maker Nano RP2040. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED with a 330/680 ohm resistor for current use around 4mA at 3.3V/5.0V. ...
Adafruit Feather nRF52840 Express powering test with LEDs, MQ-3 gas sensor and servo using LiPo
Просмотров 3728 дней назад
This is a powering test of some typical hobbyist peripherals with an Adafruit Feather nRF52840 Express. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded ...
Adafruit Feather nRF52840 Express powering test with LEDs, MQ-3 gas sensor and servo using USB2 port
Просмотров 3028 дней назад
This is a powering test of some typical hobbyist peripherals with an Adafruit Feather nRF52840 Express. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded ...
BBC micro:bit V2 powering test with LEDs, MQ-3 gas sensor and servo using laptop USB2 port
Просмотров 2728 дней назад
This is a powering test of some typical hobbyist peripherals with a BBC micro:bit V2. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED with a 3...
BBC micro:bit V1 powering test with LEDs, MQ-3 gas sensor and servo using laptop USB2 port
Просмотров 2628 дней назад
This is a powering test of some typical hobbyist peripherals with a BBC micro:bit V1. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED with a 3...
Raspberry Pi Pico W powering test with LEDs, MQ-3 gas sensor and servo using laptop USB2 port
Просмотров 3428 дней назад
This is a powering test of some typical hobbyist peripherals with a Raspberry Pi Pico W (RP2040-based). The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded ...
Arduino UNO R4 WiFi powering test with LEDs, MQ-3 gas sensor and servo using Rasp. Pi 15W USB-C PSU
Просмотров 1228 дней назад
This is a powering test of some typical hobbyist peripherals with an Arduino UNO Rev4 WiFi. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED wi...
Arduino UNO R4 WiFi powering test with LEDs, MQ-3 gas sensor and servo using 7.5V on 2.1mm jack
Просмотров 1728 дней назад
This is a powering test of some typical hobbyist peripherals with an Arduino UNO Rev4 WiFi. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED wi...
Arduino UNO R4 WiFi powering test with LEDs, MQ-3 gas sensor and servo using laptop USB2 port
Просмотров 1028 дней назад
This is a powering test of some typical hobbyist peripherals with an Arduino UNO Rev4 WiFi. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED wi...
Arduino UNO R3 powering test with LEDs, MQ-3 gas sensor and servo using 7.5V on 2.1mm jack
Просмотров 628 дней назад
This is a powering test of some typical hobbyist peripherals with an Arduino UNO Rev3. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED with a ...
Arduino UNO R3 powering test with LEDs, MQ-3 gas sensor and servo using laptop USB2 port
Просмотров 2228 дней назад
This is a powering test of some typical hobbyist peripherals with an Arduino UNO Rev3. The voltage and current are shown on a pair of multimeters. WARNING: some of these tests may exceed the specified or wise limits for current on the microcontroller/board or may use a voltage too low for reliable operation of the peripheral. Please see article for more detail. - 5mm unbranded green LED with a ...
Walnut name plate with flexible filament LEDs and Cytron Maker Nano RP2040 constant current circuit
Просмотров 67Месяц назад
Walnut name plate with flexible filament LEDs and Cytron Maker Nano RP2040 constant current circuit
Testing voltage drop from USB port and leads to the 5V pin on a Cytron Maker Nano RP2040
Просмотров 90Месяц назад
Testing voltage drop from USB port and leads to the 5V pin on a Cytron Maker Nano RP2040
Cytron Maker Nano RP2040 with constant current circuit driving six filament LEDs #circuitpython
Просмотров 157Месяц назад
Cytron Maker Nano RP2040 with constant current circuit driving six filament LEDs #circuitpython
Cytron Maker Nano RP2040 with constant current circuit driving filament LED with PWM #circuitpython
Просмотров 5232 месяца назад
Cytron Maker Nano RP2040 with constant current circuit driving filament LED with PWM #circuitpython
Logic Gate Simulator in MakeCode Arcade on new Kitronik ARCADE for micro:bit with Cytron EDU PICO
Просмотров 1052 месяца назад
Logic Gate Simulator in MakeCode Arcade on new Kitronik ARCADE for micro:bit with Cytron EDU PICO
Logic Gate Analyser on Cytron EDU PICO and MH-EDU-Electronics LogicBoard #CircuitPython
Просмотров 1183 месяца назад
Logic Gate Analyser on Cytron EDU PICO and MH-EDU-Electronics LogicBoard #CircuitPython
Larson Scanner on two MH-EDU-Electronics LogicBoards
Просмотров 1325 месяцев назад
Larson Scanner on two MH-EDU-Electronics LogicBoards
Oscilloscope on the oscillator on the MH-EDU-Electronics LogicBoard
Просмотров 1246 месяцев назад
Oscilloscope on the oscillator on the MH-EDU-Electronics LogicBoard
Oscillator on the MH-EDU-Electronics LogicBoard
Просмотров 1236 месяцев назад
Oscillator on the MH-EDU-Electronics LogicBoard
Full Adder on the MH-EDU-Electronics LogicBoard
Просмотров 3276 месяцев назад
Full Adder on the MH-EDU-Electronics LogicBoard
Laser Harp test using Cytron Maker Pi Pico and CircuitPython synthio #circuitpython
Просмотров 666 месяцев назад
Laser Harp test using Cytron Maker Pi Pico and CircuitPython synthio #circuitpython
EMG using Arduino UNO R4 WiFi and BioAmp EXG Pill from Upside Down Labs running ClawController
Просмотров 1527 месяцев назад
EMG using Arduino UNO R4 WiFi and BioAmp EXG Pill from Upside Down Labs running ClawController
Audio Oscilloscope using Pimoroni Galactic Unicorn with electret microphone meets Korg Volcas
Просмотров 568 месяцев назад
Audio Oscilloscope using Pimoroni Galactic Unicorn with electret microphone meets Korg Volcas
Audio Oscilloscope using Pimoroni Galactic Unicorn with electret microphone meets Yub Nub
Просмотров 688 месяцев назад
Audio Oscilloscope using Pimoroni Galactic Unicorn with electret microphone meets Yub Nub
Guitar Tuner using Pimoroni Galactic Unicorn with electret microphone with testing bass and acoustic
Просмотров 1888 месяцев назад
Guitar Tuner using Pimoroni Galactic Unicorn with electret microphone with testing bass and acoustic
The results are flawed here as GP26 is being used for the RP2040 ADC readings and the EDU PICO also has this connected to its potentiometer module. A repeat of the testing using GP27 will appear shortly...
Instructables article now published: www.instructables.com/Constant-Current-Circuit-for-Flexible-Filament-LED/
Instructables article now published: www.instructables.com/Constant-Current-Circuit-for-Flexible-Filament-LED/
How old is this?..
The video is from 20 Jul 2019 and the moon landing from 1969! This is some unfinished code for a lunar lander style game. At the time I was doing some x-y graphics using microcontrolller DACs for learn.adafruit.com/dac-oscilloscope-images
Instructables article with more detail: www.instructables.com/Logic-Gate-Simulator-on-Kitronik-ARCADE-for-Microb/
Instructables article now available www.instructables.com/Logic-Gate-Analyser-With-Cytron-EDU-PICO-or-Adafru/
Instructables article: www.instructables.com/Making-a-Small-Larson-Scanner-With-Two-LogicBoards/
Two articles on Instructables featuring this board: www.instructables.com/Making-a-Full-Adder-With-LogicBoard-From-MH-EDU-El/ and www.instructables.com/Making-an-Oscillator-With-LogicBoard-From-MH-EDU-E/
I've written an articles on Instructables with the software, notes on how to add a microphone and an explanation of how this all works: www.instructables.com/Making-a-Guitar-Tuner-and-Audio-Spectrum-Analyser-/
Whoever recommended this soulful cover to you is truly a person of refined taste and good breeding.
Hi, this code is a great little project. I have a code club upcoming and love to include this for the kids as we have a cube:bit in our activity hardware. I've had a look through the make code example, but I'm struggling to follow the workings of the setcubevolume function. is there any chance you could briefly outline what it's doing here? thank you!
Some of the code is rather complex as I got a bit focussed on producing cool looking stuff but the sound meter isn't too bad. I added an explanation to the Instructables article mentioned in the description and below. I spotted two bugs while reviewing the code, the children can have some fun fixing those :) www.instructables.com/MakeCode-Fun-on-the-4tronix-CubeBit-an-RGB-LED-Cub/
I'd be interested to know how it goes and if you have a 5x5x5 one how it looks and performs. The 4x4x4 is owned by a 4 year old now. Her favourite is the second falling mode on the rainbow code - it's surprisingly mellow.
@@kevinwalters2076 will do, we have two 3x3x3 cubes. I’m just reading through your code explainer. Any tips for tweaking the code for a 3 side cube? Thanks!
@@gridrunnersshack6337 Changing the height and size to 3 would do it. Then there's the option of fixing the two bugs mentioned in article. I just did all this and made a v1.1 available in makecode.microbit.org/_57JaqccJg7eF I no longer have a Cube:Bit to test on. I tried it out on a Kitronik Zip Halo HD (uses P8 rather than P0 to talk to pixels) and it looks like it works...
You might also be interested in github.com/kevinjwalters/makecode-examples/blob/master/microbit/cubebit/cubebit-priseccol-1.hex - that shows primary and secondary colours on the Cube:Bit and the buttons on micro:bit let you turn down the brightness to a low level where it's pleasant to have a close look at the pixels. If you have a magnifying glass you can see the individual red, green, blue LEDs, the bonding wires and controller chip.
Nice to see the Cube:Bit in action
Any chance of putting the code for this somewhere? I have a cubebit in the cupboard that's been looking for a project for ages !
I plan to write an Instructables article on this but in the meantime keep an eye on github.com/kevinjwalters/makecode-examples/tree/master/microbit/cubebit
@@kevinwalters2076 👁️
Here's the Instructables articles: www.instructables.com/MakeCode-Fun-on-the-4tronix-CubeBit-an-RGB-LED-Cub/ That includes published links to the code and some notes on whether each program works on the V1.
@@kevinwalters2076 Both I & my Cube:Bit thank you!
This was for Instructables: Battery Capacity Measurement Using Kitronik Inventor's Kit and Adafruit CLUE (www.instructables.com/Battery-Capacity-Measurement-Using-Kitronik-Invent/ )
"A strange game. The only winning move is not to play."
Hey that sounds really good ! Can i get a copy of the code by any chance ?
I think it's this one github.com/kevinjwalters/circuitpython-examples/blob/master/cpx/cpx-basic-standalone-synth.py and there's a link to Adafruit article in the description showing how to use the CPX as a MIDI controller and sound module. Code might need a few tweaks as it was written for CircuitPython 4...
my component tester ruclips.net/user/shorts5T3-xwYZZdY ruclips.net/video/3XBwpgtHRNo/видео.html&ab_channel=elektronikcierol
Instructables article out now: www.instructables.com/Publishing-Particulate-Matter-Sensor-Data-to-Adafr/
Love it!!! Voice turned out great!!!
Instructables article out now: www.instructables.com/Halloween-Spooky-Ghost-With-BBC-Microbit-on-Cytron/
Instructables article out now: www.instructables.com/Halloween-Spooky-Ghost-With-BBC-Microbit-on-Cytron/
Article now on Instructables: www.instructables.com/PIR-Movement-Alarm-With-BBC-Microbit-and-External-/
There's now a larger set of tests on ruclips.net/video/umDHGAauNhs/видео.html and an Instructables article on www.instructables.com/Make-a-Component-Tester-With-Adafruit-CLUE-and-Kit/
00:06 Nothing 00:21 Solid core conductor 00:36 1k resistor (979 ohms on multimeter) 01:02 10k resistor ** (9.89k) 01:17 47 resistor ** - 54 shown, 56 on colour bands, slightly wrong on nearest match 01:32 300 resistor - 302 shown , 330 on colour bands due to E12 matching 01:45 IN5408 silicon power diode 01:58 Germanium diode 02:13 Schottky diode 02:27 Zener diode 3.3V 02:42 Red LED ** 02:57 Orange LED ** 03:12 Yellow LED ** 03:27 Green LED ** 03:42 Blue from RGB LED ** 03:56 PN junction from a BC337 NPN transistor ** 04:11 NPN across collector emitter ** 04:26 Ceramic capacitor 100nF 04:40 Mullard "tropical fish" polyester capacitor 220nF 04:55 Electrolytic capacitor 10uF - salvaged from an old, broken PC power supply 05:09 Electrolytic capacitor 470uF ** - has very low impedance at test frequency 05:22 Small DC motor ** (9.98mH on cheap LCR tester) - inductance too low 05:54 Relay coil 230 ohm (520mH) 06:19 One primary from a 20VA mains transformer 06:35 Both primaries 06:48 Small piezo speaker 07:02 10k potentiometer Values in brackets are from independent measurements. Items marked ** are from Kitronik Inventor's Kit
Not imperfect alignment; it's italicized!
That was the happy accident on about the tenth take with nine previous disasters!
what happens if you do the following sequence: audio_out.play(testwav, loop=True) audio_out.stop() audio_out.play(testwav) crackles? Then audio_out.play(testwav) clean? or do you need to audio_out.stop() after audio_out.play(testwav) - without the ", loop=True" If so, it seems that something that loop=True does corrupts some data structure possibly on way out, or perhaps audio_out.stop() does the corruption iff loop=True was the last run, and audio_out.play(testwav) resets? Just looking for a pattern that explains the behavior (behaviour) you are seeing.
The "LED flasher" is back: ruclips.net/video/HZroEl_Y6d4/видео.html
Was the thunderstorm sound part of the wav file, or just a real storm in the background? That thunder and dripping would have me looking for a leak in the roof.
I waited about a week for rain and then it was vertical and during the daytime so didn't work for this video! I used a video in the end for the background. CircuitPython does have an audiomixer which means it could do the two together (background + fx) but it may not have been implemented when I shot that video plus there are still a few audio related bugs being ironed out. The different notes are implemented in ruclips.net/video/1BxlNVgzosY/видео.html with the audiomixer for polyphony.
Cool stuff. And now I realize I've gotta figure out something to do with the infrared features of this device, which I either didn't know or had forgotten were on there!!
Yes, the infrared send/receive is one feature the Circuit Playground Express has over the generally more advanced Circuit Playground Bluefruit. I wrote the code out of practicality as I needed a way to fire the shutter on the camera without nudging it for a stop motion animation of a jigsaw puzzle. I think there is an expensive Sony remote and there are cheap third party ones but that seemed like a waste in so many ways given I already had hardware capable of it. The IR from the CPX is surprisingly effective/powerful, there's no need to point it at the camera. I made a minor enhancement to Adafruit's library to support the Sony IR codes as they are not always an integer number of bytes.
@@kevinwalters2076 Nice. Yeah, having multi-purpose programmable devices like this is... all sorts of useful. :) (Granted, I still like dedicated hardware for some things, too... but... there's a sweetspot somewhere, or just trade-offs, or something.)
lmao warm beer detector. I dig it
Maybe an issue with output buffer? Sounds like one channel is not being written to correctly.
There's definitely a problem with the dma transfer of data to the pwm code but I'm not sure where it is and this demonstration only covers one particular trigger. I suspect there are multiple underlying issues as I have other code which can crash CircuitPython. I added tickets to the description if you're interested.
Seems like the problem only happens when you stop the audio before it is done playing.
For this case it's possible but there's a few other things that can trigger crackles and I have other code which happens to do PWM on many GPIO which will crash CircuitPython if PWM audio is playing. I added tickets to the description if you're interested.
@@kevinwalters2076 I tried playing an audio file and use PWM to drive an LED, first time it works most times, second time it always crashes. I took out the PWM LED control and the second time around it crackles like an old LP... It is very repeatable, still no word on a fix? Upgrading to 6.2.0 makes it sound worse.
RIP, Mr. Yeager. You had an amazing life.
I like it very much. where can i find the emulation library? can you be found anywhere else on the internet?
Thanks, I've got a few more bits to add, I'll put it on GitHub next week.
@@kevinwalters2076 👍
I put links to the GitHub repositories in the description. Most of it works well now. I need to do a bit more documentation but the MicroPython library docs cover most of it. I also need to work out the best way to add in the compass calibration as there's likely to be an offset which messes up compass.heading().
I put some more detail in an article on Instructables: www.instructables.com/id/Using-the-Kitronik-Inventors-Kit-With-the-Adafruit/ Another video with some more demo code: ruclips.net/video/3qBej1OPKVY/видео.html
@@kevinwalters2076 Hello Kevin, Could you add the instructions on how to copy the libraries to the CLUE drive onto the Github page ?
Great stuff Kevin!!! ON3 SHOT187
Awesome!
Is the plotting code publicly available?
Adafruit Guide with code and many other things is now published: learn.adafruit.com/clue-sensor-plotter-circuitpython
Pygamer contains DACs?
Yes, they are part of the ATSAMD51 processor chip, described by manufacturer as "Dual 12-bit, 1 MSPS Output Digital-to-Analog Converter (DAC)". There are some unresolved peculiarities with this pair of DACs but these would only be noticeable for higher rate applications, one discussion is in forums.adafruit.com/viewtopic.php?f=24&t=153707
Very cool! Is it possible to play two notes at once?
The controller code is capable of it but the Korg Volca Bass shown in the video is monophonic. There are three oscillators on the Volca Bass which can be sequenced individually but I'm not sure if they can be used individually over MIDI.
Interesting. I bought a PyGamer recently to play with and have been looking for RUclips videos about programming them. There are plenty by Adafruit people but little else besides. Just a thought, but people may find your videos more easily if you include "PyGamer" in the video title. Thanks for sharing.
I only really put this video up to add a visual example of a MakeCode Arcade bug for a bug report to Microsoft. The bug isn't specific to the PyGamer, it would apply to all Arcade hardware devices. For games in MakeCode there's a *lot* going on at forum.makecode.com/ and some of the games/applications also make it to the front page arcade.makecode.com/
Congratulations on this technical achievement! Really a great job! You should write some kind of tutorial to explain in detail the process you followed to get this result... It would be really great for the PyGamers community. ♥ Thanks for sharing :-)
Thanks. This is some very unfinished work which was related to an Adafruit Guide I wrote called *Making oscilloscope images with DACs* (link is in the full description here). I'd implemented just thrust, gravity and primitive collisions to make that video for a certain anniversary. I'm looking at MakeCode Arcade at the moment but if I get some spare time I'll finish the game.
This is fantastic!
speed it up by 2x for that more authentic "manic" feel :)
Oh heck yes! Sounds amazing. Great job!
This is the best use of the Digirule2 i've seen! Nice work :)