- Видео 74
- Просмотров 172 737
Brenden Adamczak
Добавлен 18 сен 2017
Just a software developer with a interest in microcontrollers and old computer. I also do a lot of react development on the side as well.
Channel update 2024 part 1 (Pi screens and Nordic watches)
Channel update 2024 part 1 (Pi screens and Nordic watches)
Просмотров: 123
Видео
Espruino modules - how they work and how to make one
Просмотров 17211 месяцев назад
Espruino modules - how they work and how to make one
Interfacing e-ink displays with microcontrollers
Просмотров 723Год назад
Interfacing e-ink displays with microcontrollers
Espruino - javascript interpreter on microcontroller
Просмотров 602Год назад
Espruino - javascript interpreter on microcontroller
Pico - USB (host) in and (device) out
Просмотров 21 тыс.Год назад
Pico - USB (host) in and (device) out
new command pico programmer plus mac tips
Просмотров 287Год назад
new command pico programmer plus mac tips
pi pico present - usb device to ps2 host [Christmas edition]
Просмотров 1,2 тыс.2 года назад
pi pico present - usb device to ps2 host [Christmas edition]
Usb Software Dev's - what you're missing with software usb capturing
Просмотров 1,1 тыс.2 года назад
Usb Software Dev's - what you're missing with software usb capturing
create fat 12 img for retro computers on the web
Просмотров 1262 года назад
create fat 12 img for retro computers on the web
raspberry pi pico - how the drag n' drop programmer works
Просмотров 1,4 тыс.2 года назад
raspberry pi pico - how the drag n' drop programmer works
Better/worse a new way to program a pico
Просмотров 2,3 тыс.2 года назад
Better/worse a new way to program a pico
Usb Software Dev's - USB Descriptors
Просмотров 6 тыс.2 года назад
Usb Software Dev's - USB Descriptors
Usb Software Dev's - plugged in to device class
Просмотров 1,6 тыс.2 года назад
Usb Software Dev's - plugged in to device class
raspberry pi pico - interfacing with ps2 keyboard with pio
Просмотров 4,3 тыс.2 года назад
raspberry pi pico - interfacing with ps2 keyboard with pio
raspberry pi pico - sending interrupt from PIO to cpu - in c
Просмотров 2,3 тыс.2 года назад
raspberry pi pico - sending interrupt from PIO to cpu - in c
Persistent data on stm32 (Virtual EEPROM)
Просмотров 4,1 тыс.2 года назад
Persistent data on stm32 (Virtual EEPROM)
direflow - react + web components in 2022
Просмотров 9052 года назад
direflow - react web components in 2022
capturing usb on linux with wireshark
Просмотров 10 тыс.2 года назад
capturing usb on linux with wireshark
Hi dear, i am working on a project of stm32. Where i configured it as cdc class device...i am able to send and receive the data, but i want it to interrupt the host first and then send the data...i am stuck at that interrupt part. Can you please help me in this.?
This is just going off my head at the moment. but have you reset the interrupt bit. So interrupts have a higher priority over the main loop. If you don't clear that bit in the NVIC it will loop in that interrupt because it has the highest priority.
@brendenadamczak9283 👋 thanks for the reply...I just figured out after couple of days...in STM32 we use USB_LL_Trasmit function....which will send the particular data at particular endpoints. For eg if ox82 then it's Interrupt IN endpoint for the host...so the host will always take this data as Interrupt and can be resolved on priority basis as well
Which pins on the pico are you using to power the cut cable for the keyboard side (host usb)? Pico is 3.3V and USB is 5V. I don't see 5V out on the pico. how does it work? thank you!
oh, actually are you using VBUS as the 5V output for host usb? thanks!
@@augustusallan3619 Exactly! The pico is not 5v, but the power into the pico is.
could you please post the parts you used? thanks!
Hi, what Xbox psu is that and how you modify It? If you have a wiring diagram Will be awesone.
can i get a board to try out and make a video ?
do you know how to program?
i have like 15 pebble steel shells/ watches. id love to get some boards to replace them to get them working again.
Well i can deficiently send you some just general pebble steel boards if you want. Since i won't be using the internals. But do you right software at all. The boards in the images are fairly fresh. So they won't do much without a good amount of software for them.
oh great, thank you good man for that
Why did you use such a small font size? How on earth am I supposed to read the text?!!!!
Because i was new to making youtube video's. When i made the video i was on a 27 inch screen monitor at full screen. So to me at that size it looked fine. haha
Great video, thank you. Suggestion: connecting VBUS of the debug probe to VBUS of the target should power both the pico target and USB device with one less connection.
Hi Bro, This is technical and very informative. Thank you for your sharing your knowledge, experience to society. I have no words for you effort and sharing video. One doubt, How to find device is Isocronous or bulk. Is it through transfertype of endpoint ? Can you show in videos ? Second doubt is recent camers coming with bulk endpoints for video and for audio iscronous endpoint. Is I am right in understanding or not ?
Your camera uses bulk? Camera's should use iscronous because it forces a certain amount of bandwidth from the host.
@@brendenadamczak9283 yes actually you are right. Previously all camera uses isocronous but now a day I see some of the cameras uses bulk. For example cisco room kit device is having hub with audio, camera and network hdmi so here camera uses bulk endpoint. Can you pls explain how host sets bandwidth , is it depends on camera endpoints ? Or packet size ? Can you do one video about how host sets bandwidth or how can we debug bandwidth related issues like video lagging or video chopping. Thank you in advance
@@lifeonagriculture3330 O BOY, that does sound interesting! But at the moment I don't have a good way of knowing this information, but it would be really helpful to know! So i'll see what i can figure out. As for bandwidth expectations. There are calls in the UAV camera spec. But i don't know how that relates to the rest of the USB spec.
@@brendenadamczak9283 Thank you
Is any doc or video about buffer management of queueing and dequeueing , Actually jn project allocate 2 to 4 buffers to copy data and dequeue it but I am not sure what is the size of buffer and how only these 2 or 4 buffers mange speed data comes from device and gives GUI. Thank you in advance
I am getting HID data instead of left over capture data, what should i do to get left over capture data?
I don't know what you mean by "Left over capture data". What are you trying to capture?
@@brendenadamczak9283 At 3:43 you can see the "left over capture data" row is selected. I am not getting that, instead the packets have "HID data" so how can I fix this?
Great stuff!
You could make an article to post on hackaday to get more attention to your projects.
I would love this! I read hackaday everday. haha
Maby when I make prototype 2. I might try this. Currently I just got my prototype for the board that goes in the watch! So, there's still a long way to go, but it's coming along. ruclips.net/user/shortsl-dQ7Yjkrbk
I could make a hackaday project page. Maby thats the next step....
Great Projects!
Thanks! What project are you more interested in and are you a software/hardware developer. :) haha
I wonder if you could configure a gamepad like a snes or genesis or ps1 non-dualshock to mimic key presses over ps/2?
i don't see why not
@@brendenadamczak9283 would make an awesome gamepad option for dos games that are limited to 4 buttons, those games can use more inputs from a keyboard than a pad like the gravis gamepad. I have a device like those that is using Arduino, it has a PS/2 keyboard passthrough and using the keyboards scroll lock key you can manually map keys to gamepad buttons. It works really well but I don't think the creator of my device is still making them. Using a pico board would be a nice cheaper, hopefully open source option.
How to flash it with micropython.
Good question. but I don't know. Don't really use micropython really.
Is this programmed in Javascript
Part of it ya. The OS is run in C and you make apps in Javascript.
Lol, I've been bashing my head against a wall and it's very obvious now from your video that I'm putting 5v into the PICO's GPIO with clock and data pins hence it's not working.. whoops.
Hi, I might need some help. I just installed a Gotek Sfr1M44 U100K into my EMU ESI 4000 Sampler, The sampler detects the (USB) Floppy drive. And the Floppy drive can browse to the Virtual-Disk-List but then no data exchange is happening between the floppy and the device. Maybe I have the pin at the wrong setting. M0 S1 S0 J8 JC JA J5 (It worked and connected the best when i put it into J8 and J5 together :/ but I still think its not quite right.) I be glad for any idea that might fix this issue. Thank you!
Hello, I would like to do it but USB /USB so that a specific key on the USB keyboard could trigger a digital port and connect a solid relay to trigger the air conditioning, can you help me with this?
So it sounds like you want to take in a usb keyboard and then spit out usb keyboard data as well. If that's the case you can look at this video. ruclips.net/video/iOD-NOzgj7o/видео.html
Very nice video on the MIDI protocol! I've been interested in transmission protocols lately and I really enjoyed this video. As an audio editing suggestion, consider using crossfades next time to prevent pops during the jump cuts. Many editing software programs, like ProTools and Ableton, add these by default, but adding additional ones can further smoothen audio transitions.
Ya i'm very happy about the visuals, but ya the audio's fairly bad. I've remember the audio was very bad, but i just stuck with it because i didn't have it in me to record it again. Also i remember i was hell bent on using all open source software and it can be ruff. I found the best way was to make the video then export the audio to audacity to do the mix and the rerender the video! Lately I'm too lazy and have no time so i just use imovie. But since this video i've bought a real mic and not the mic i used to do concerts with.
U sound like that guy who tries to make peoples recipes and has a ligma fork
After some long hours researching on the WWW "world wide web" for the origins of what you were trying to describe here. I feel like it is my role to ask you the question of "what a ligma fork is". Therefor I will do the honors of asking this. What is a quote "ligma fork" unquote? Also, who is this person who makes recipes? I imagine this person to be extremely cool because of all his ligma forks collection.
@@brendenadamczak9283 he is a youtuber called futureCanoe he makes cooking vids lol
Thank you so much - As usually: Amazing video that Google did not yet recognize. I am looking to reverse engineer Teams Devices (Jabra Headsets) communication and videos about USB and HID are very sparse out here compared to the billions of devices using is 😂 ...
Very interesting. So what do you plan to do with this information? Also note that a semi complicated device like the jabra headsets going to have multiple types of usb descriptions. One for audio and probably one for HID to control muting the audio and stuff like that.
how can i use the keyboard inputs for the pico, like pressing a key for like lighting up an led when caps lock is activated or something? like that, could be pretty useful imo
Well in the main loop you can look for a given pin and toggle it high. If its helpful i have a simpler version of this, which is just a keyboard input. ruclips.net/video/yIXa-6DRW-Y/видео.html
"I'm on windows because I hate myself" - Brenden Adamczak 2024
Seems like the only valid reason to be on windows to me. haha
Since then, I've moved on to a mini pc running Linux
Can you perhaps tell me how to tell the Linux Raspberry Pi Zero system that it should not start a login service when connecting to a USB ACM device (actually a serial USB port of a controller). I only want to access the serial device.
You can probably make a rule with udev on Linux
Hello, I have updated the library and it works better without any configuration and supports all MCUs
Can this do SD card so the input key data can be looked up in SD card and output a string to computer? Being able to make any keypad/board a helper for disabled persons. Maybe include mouse functions so a single key press can be mapped to fixed mouse locations. Could work as a OS independent macro keypad/board. Also a kind of steam deck.
I don't think you could do all of this. So you want to add a SD card like configuration file?
Will it work if I connect a mouse instead of a keyboard, will i have to make some changes on the code for that? I see the code has functions regarding mouse events as well
Pico its just awesome
true :)
I think this solution for receive data from Rs232 usb converter using wireshark
You'll be able to get Rs232 data from usb over wireshark. If you want to see it from a packet label
Thanks you sir@@brendenadamczak9283
Can you connect multiple keyboards (or other hid devices) at the same time ??
Thats a interesting question! I've never tried to connect multiple keyboards before? I've connected a mouse and a keyboard before and thats fine. You just need to specify how many Descriptions are needed in the configuration file.
Hello is it possible to make a usb midi host using Pi Pico?
Yes in theory. Once it's actually merged into the main repo i plan to do a video on it! But for some reason its not getting merged in. github.com/hathach/tinyusb/pull/1627
So if you want it now you can look at this project. github.com/rppicomidi/usb_midi_host
@@brendenadamczak9283 Thank you I'll wait for the video. C/C++ method is too complicated for me=) I might try arduino method but it's been a while since I did arduino. You think it's possible with micropython or CircuitPython?
@@UmutErhan Since the midi driver isn't in yet. You won't be able to do it in any of the way. At least i think that would be the case.
How can i implement a host usb vendor specific ?
I've never done it. But the first step would be to set the flag for vender specific. github.com/hathach/tinyusb/blob/master/examples/host/hid_controller/src/tusb_config.h#L108
It should look like a much simpler version of the keyboard host example. ruclips.net/video/yIXa-6DRW-Y/видео.html. Here are the calls github.com/hathach/tinyusb/blob/master/src/class/vendor/vendor_host.h
Just to make sure what are you trying to interface too? Are you sure its a vender specific device?
Just for other's references in the future, did you use 3.3v to power the ADS1115? And also, what value is your burden resistor? Your video is the one that helped me finally some kind of result with a similar project in Micropython. I made alterations in software, mostly removal of the MQTT related stuff (using the current value for something else) and I'm only checking one sensor on ADS1115, so I can't say that my issue I'm having currently is not something that I caused, but I was getting significantly lower current values than what my multimeter clamp was reading for a while. I determined from the handful of tests I did that results vs. actual values were consistently about around 3x smaller. So, adding an additional line to multiply the current result by 3 has gotten me closer, but still is not 100% perfect. (not expecting 100% accuracy to the meter, but when I measure a lower amp 120v circuit, I'm pretty much spot on with the meter, but measuring 35 amp 240v circuit, seems to be consistently 1 amp behind the meter after adding current = current*3. (Before adding the multiply by 3, I'd get around .44 amps on a 1.2 amp circuit, 11.7 or so on a 35 amp circuit. I ask about the burden resistor value you used, and if you used 3.3 or 5 v to power the ADS1115 just because I find mention of them in the various resources you provided, but I don't find any information for sure saying which you personally used in this project. At this point, they're the only two variables that I can find that would give me a 3x lower than expected result. Mostly for me, just trying to troubleshoot why it's low before I added that extra multiplication line. Thank you again for posting this video, and all of the resources you provided too. They've been great help! I found a ton of references to Arduino projects like this, but we were severely lacking information out there on Pi Pico W and micropython in general in relation to STC-013-000 and ADS1115 to measure current.
Hi my mobile is bricked and in fastboot/bootloader mode but no pc can detect my device as a device it says device descriptor request failed. I need ur help in configuring the issue thanks for ur valuable information.waiting for ur reply.
I'm sorry i don't think i know how to help you? I'm not entirely sure where the problem fault lies either?
Out stan ding!
i like cheese
Another awesome video ...sadly I want to pretend to be a PS/2 mouse/keyboard ...but much was learned :)
Got you covered here too! ruclips.net/video/ATGZD2AyFkc/видео.html
@@brendenadamczak9283 You Star! :)
Do you know a good introduction to the details of USB to give some context before diving in to a particular implementation like this code?
I made a video on usb ruclips.net/video/fEDp9053eZs/видео.html. also this is the first one you should probably watch. ruclips.net/video/yIXa-6DRW-Y/видео.html
...\pico-sdk\lib\tinyusb\src\portable aspberrypi\pio_usb\hcd_pio_usb.c:32:10: fatal error: pio_usb.h: No such file or directory i face such difficulty while compiling , any way to over come , kindly help if possible
So if you look inside "Pico-usb-pio" do you see anything? If not do this "git submodule init" then "git submodule update". Then you should see files in there. Hopefully it builds after that. If that was your problem thats my bad and i updated the docs. If not just message me and i'll try again :)
@@brendenadamczak9283 [driver] Build completed: 00:01:30.302 [build] Build finished with exit code 0 done , instead of using cmd , i downloaded code form git as zip and tried to compile thanks
I want to plug my PCB to Pico through the USB and enable it to communicate with my PC Software through wifi, is it possible ?
Probably? So the pico has a wifi board if that makes it easier for you? Then you potentially wouldn't need this PCB board? But to the original question yes. From you pcb you can talk to the pico over the same cable that powers it. You'll want to use the CMC class, which is basically a uart stream of data.
@@brendenadamczak9283 actually i'm using a device stm32 as USB CDC it's the same ?
@@mealshake4284 So this is how it sounds to me [STM32 PCB ] (USB Host) -> (USB Client)[Pico](WIFI) -> (WIFI) [PC]
If thats the case it should work no problem. The pico is just acting as a relay at that pont. Put a little ZMQ server on the pico and your all set to talk to your pc
@@brendenadamczak9283 exactly, my stm32 works as a device
Have been thinking about doing something similar
fairly simple and cheap. So go for it. If you do post your results. I would love to see others doing it probably way better then me
Really cool video. How do you not have more views.
I'm glad you liked it so much. As for the view count, I don't have any cats or funny faces in my thumbnail. So that's why it's so low 😂
Don't know why this didn't pop up on my feed earlier but nice! Been trying to get ADCs to work via DMA on the H7 dual core systems and this was pretty helpful
I didn't know it was even possible
😮😮 You managed to figure out how to use the TV as a monitor 😮
How does the connector connect to the board? I see the holes but they. Dont stay in there, i have no idea what im doing!
So I soldiered them in because I'm going to be doing a lot of programming. wiki.pine64.org/wiki/PineTime_Devkit_Wiring
But you can buy a programmer here.pine64.com/product/pinetime-pogopin-jig/
Nice info, thanks :)
First
How was i beat to comment first on my own video🙃