Brenden Adamczak

Brenden Adamczak

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.

pinetime dev update

pinetime dev update

Developing with pinetime

Developing with pinetime

build gates - review

build gates - review

FreeCAD - walkthrough

FreeCAD - walkthrough

raspberry pi pico - usb host

raspberry pi pico - usb host

Пікірлер

  • @sehajpreetsingh6798
    @sehajpreetsingh67985 күн бұрын

    I am getting HID data instead of left over capture data, what should i do to get left over capture data?

  • @brendenadamczak9283
    @brendenadamczak92835 күн бұрын

    I don't know what you mean by "Left over capture data". What are you trying to capture?

  • @sehajpreetsingh6798
    @sehajpreetsingh67984 күн бұрын

    ​@@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?

  • @brunosuperman
    @brunosuperman8 күн бұрын

    Great stuff!

  • @brunosuperman
    @brunosuperman9 күн бұрын

    You could make an article to post on hackaday to get more attention to your projects.

  • @brendenadamczak9283
    @brendenadamczak92839 күн бұрын

    I would love this! I read hackaday everday. haha

  • @brendenadamczak9283
    @brendenadamczak92839 күн бұрын

    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. kzread.infol-dQ7Yjkrbk

  • @brendenadamczak9283
    @brendenadamczak92839 күн бұрын

    I could make a hackaday project page. Maby thats the next step....

  • @brunosuperman
    @brunosuperman9 күн бұрын

    Great Projects!

  • @brendenadamczak9283
    @brendenadamczak92839 күн бұрын

    Thanks! What project are you more interested in and are you a software/hardware developer. :) haha

  • @lilkuz2005
    @lilkuz200516 күн бұрын

    I wonder if you could configure a gamepad like a snes or genesis or ps1 non-dualshock to mimic key presses over ps/2?

  • @brendenadamczak9283
    @brendenadamczak928316 күн бұрын

    i don't see why not

  • @lilkuz2005
    @lilkuz200516 күн бұрын

    @@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.

  • @manojroy657
    @manojroy65719 күн бұрын

    How to flash it with micropython.

  • @brendenadamczak9283
    @brendenadamczak928318 күн бұрын

    Good question. but I don't know. Don't really use micropython really.

  • @TheWinnieston
    @TheWinnieston19 күн бұрын

    Is this programmed in Javascript

  • @brendenadamczak9283
    @brendenadamczak928318 күн бұрын

    Part of it ya. The OS is run in C and you make apps in Javascript.

  • @syrus3k
    @syrus3k20 күн бұрын

    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.

  • @BlueBirdsLullaby
    @BlueBirdsLullaby21 күн бұрын

    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!

  • @rodrigolealbatista8381
    @rodrigolealbatista838125 күн бұрын

    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?

  • @brendenadamczak9283
    @brendenadamczak928319 күн бұрын

    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. kzread.info/dash/bejne/m4N4j7CIqsrQZ9I.html

  • @Nskittle
    @NskittleАй бұрын

    yo thats cool and it started so dirty to

  • @brendenadamczak9283
    @brendenadamczak9283Ай бұрын

    Somebody was throwing it away and i guess for good reasons. I don't know how it got so dirty. haha

  • @nakultiruviluamala4002
    @nakultiruviluamala40022 ай бұрын

    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.

  • @brendenadamczak9283
    @brendenadamczak9283Ай бұрын

    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.

  • @AliYassinToma
    @AliYassinToma2 ай бұрын

    U sound like that guy who tries to make peoples recipes and has a ligma fork

  • @brendenadamczak9283
    @brendenadamczak92832 ай бұрын

    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.

  • @AliYassinToma
    @AliYassinToma2 ай бұрын

    @@brendenadamczak9283 he is a youtuber called futureCanoe he makes cooking vids lol

  • @norm1124
    @norm11242 ай бұрын

    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 😂 ...

  • @brendenadamczak9283
    @brendenadamczak92832 ай бұрын

    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.

  • @ClacKeyTech
    @ClacKeyTech2 ай бұрын

    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

  • @brendenadamczak9283
    @brendenadamczak92832 ай бұрын

    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. kzread.info/dash/bejne/q32Mw49vdLW9Xbw.html

  • @Crftbt
    @Crftbt2 ай бұрын

    "I'm on windows because I hate myself" - Brenden Adamczak 2024

  • @brendenadamczak9283
    @brendenadamczak92832 ай бұрын

    Seems like the only valid reason to be on windows to me. haha

  • @brendenadamczak9283
    @brendenadamczak92832 ай бұрын

    Since then, I've moved on to a mini pc running Linux

  • @clmb2225
    @clmb22253 ай бұрын

    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.

  • @parker7721
    @parker77213 ай бұрын

    You can probably make a rule with udev on Linux

  • @user-rl4ix1ws5s
    @user-rl4ix1ws5s3 ай бұрын

    Hello, I have updated the library and it works better without any configuration and supports all MCUs

  • @Quazee137
    @Quazee1373 ай бұрын

    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.

  • @brendenadamczak9283
    @brendenadamczak92833 ай бұрын

    I don't think you could do all of this. So you want to add a SD card like configuration file?

  • @jaxx-ce9cd
    @jaxx-ce9cd4 ай бұрын

    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

  • @matgaw123
    @matgaw1235 ай бұрын

    Pico its just awesome

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    true :)

  • @VivoJefindo-id4cj
    @VivoJefindo-id4cj5 ай бұрын

    I think this solution for receive data from Rs232 usb converter using wireshark

  • @brendenadamczak9283
    @brendenadamczak92834 ай бұрын

    You'll be able to get Rs232 data from usb over wireshark. If you want to see it from a packet label

  • @VivoJefindo-id4cj
    @VivoJefindo-id4cj4 ай бұрын

    Thanks you sir​@@brendenadamczak9283

  • @lahdherimohamedaziz4243
    @lahdherimohamedaziz42435 ай бұрын

    Can you connect multiple keyboards (or other hid devices) at the same time ??

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    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.

  • @UmutErhan
    @UmutErhan5 ай бұрын

    Hello is it possible to make a usb midi host using Pi Pico?

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    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

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    So if you want it now you can look at this project. github.com/rppicomidi/usb_midi_host

  • @UmutErhan
    @UmutErhan5 ай бұрын

    @@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?

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    @@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.

  • @mealshake4284
    @mealshake42845 ай бұрын

    How can i implement a host usb vendor specific ?

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    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

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    It should look like a much simpler version of the keyboard host example. kzread.info/dash/bejne/q32Mw49vdLW9Xbw.html. Here are the calls github.com/hathach/tinyusb/blob/master/src/class/vendor/vendor_host.h

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    Just to make sure what are you trying to interface too? Are you sure its a vender specific device?

  • @cadensmusic
    @cadensmusic5 ай бұрын

    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.

  • @Orion_Prime
    @Orion_Prime6 ай бұрын

    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.

  • @brendenadamczak9283
    @brendenadamczak92835 ай бұрын

    I'm sorry i don't think i know how to help you? I'm not entirely sure where the problem fault lies either?

  • @bflmpsvz870
    @bflmpsvz8706 ай бұрын

    Out stan ding!

  • @THE_CHEEESE_LORD
    @THE_CHEEESE_LORD6 ай бұрын

    i like cheese

  • @csbluechip
    @csbluechip6 ай бұрын

    Another awesome video ...sadly I want to pretend to be a PS/2 mouse/keyboard ...but much was learned :)

  • @brendenadamczak9283
    @brendenadamczak92836 ай бұрын

    Got you covered here too! kzread.info/dash/bejne/c4h7vKZrcdysm8Y.html

  • @csbluechip
    @csbluechip6 ай бұрын

    @@brendenadamczak9283 You Star! :)

  • @AndrewHelgeCox
    @AndrewHelgeCox7 ай бұрын

    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?

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    I made a video on usb kzread.info/dash/bejne/mHl40ptpZZbLitY.html. also this is the first one you should probably watch. kzread.info/dash/bejne/q32Mw49vdLW9Xbw.html

  • @sss22215
    @sss222157 ай бұрын

    ...\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

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    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 :)

  • @sss22215
    @sss222157 ай бұрын

    @@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

  • @mealshake4284
    @mealshake42847 ай бұрын

    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 ?

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    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.

  • @mealshake4284
    @mealshake42847 ай бұрын

    @@brendenadamczak9283 actually i'm using a device stm32 as USB CDC it's the same ?

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    @@mealshake4284 So this is how it sounds to me [STM32 PCB ] (USB Host) -> (USB Client)[Pico](WIFI) -> (WIFI) [PC]

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    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

  • @mealshake4284
    @mealshake42847 ай бұрын

    @@brendenadamczak9283 exactly, my stm32 works as a device

  • @christopherweeks89
    @christopherweeks897 ай бұрын

    Have been thinking about doing something similar

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    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

  • @murrij
    @murrij7 ай бұрын

    Really cool video. How do you not have more views.

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    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 😂

  • @derivativ3
    @derivativ37 ай бұрын

    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

  • @olgakudriavtseva7600
    @olgakudriavtseva76007 ай бұрын

    I didn't know it was even possible

  • @olgakudriavtseva7600
    @olgakudriavtseva76007 ай бұрын

    😮😮 You managed to figure out how to use the TV as a monitor 😮

  • @bingbangmeow2389
    @bingbangmeow23897 ай бұрын

    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!

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    So I soldiered them in because I'm going to be doing a lot of programming. wiki.pine64.org/wiki/PineTime_Devkit_Wiring

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    But you can buy a programmer here.pine64.com/product/pinetime-pogopin-jig/

  • @Bianchi77
    @Bianchi777 ай бұрын

    Nice info, thanks :)

  • @TheWinnieston
    @TheWinnieston7 ай бұрын

    First

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    How was i beat to comment first on my own video🙃

  • @Meetakal
    @Meetakal8 ай бұрын

    U go brenden 🎉well done

  • @spruce1000
    @spruce10008 ай бұрын

    Just a warning, eeprom lib from ST seems to be broken on G4. It results in bricked devices over time. Extremely difficult to debug.

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    Really! I'm guessing its hard to debug because it save to many different places over time?

  • @spruce1000
    @spruce10008 ай бұрын

    I think it needs cleanup() being called or I have an ECC error. Entire machines brick

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    @@spruce1000Thats ruff. I truly never tried to hard to figure it out because it just seemed like it was doing way more things then i needed it to be doing.

  • @raevod6361
    @raevod63618 ай бұрын

    I want the pico to act as a keyboard when hooked up to a pc and emulate keypresses.

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    So you want a usb client. There are probably many videos on that topic. But i touched on that on with this video. kzread.info/dash/bejne/m4N4j7CIqsrQZ9I.html

  • @kennyhubbell813
    @kennyhubbell8138 ай бұрын

    This is great! I have been using the Earle Philhower Arduino core since I started using the Pico. Do you have any tips on how to make use of your code and keep using the Philhower core?

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    Not entirely sure? So it goes PIO_USB_code -> tinyUSB -> arduino driver -> [use it in your code]

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    So you would have to add PIO_code and add the arduino drivers for USB host and setup all the configurations for it. In the actual arduino build. At least thats my interpretation of it. I don't know if can access the low level pio code parts once your running the arduino software.

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    But i've only ever programmed a normal arduino. So my understanding could be completely off. Its been a long time since i've tried to program one and it was just for turning on little leds and stuff like that.

  • @kennyhubbell813
    @kennyhubbell8137 ай бұрын

    @@brendenadamczak9283 I did manage to get it working, but now I'm wondering if you have any tips for connecting two USB devices to the Pico at once? Like both a mouse and keyboard. I can get them both to properly send the HID codes when connected separately, but I'm not sure how to do both simultaneously. I have attempted to create two TinyUSB host instances, each with their own pio_config with the respective D+ pin, but only the first device works in that instance.

  • @brendenadamczak9283
    @brendenadamczak92837 ай бұрын

    @@kennyhubbell813 So it sounds like your trying to connect two usb devices from two different usb connections. Is that true? So i made a devices that would take two usb devices that were connected to a usb hub. kzread.info/dash/bejne/c4h7vKZrcdysm8Y.html. Code here github.com/brendena/USB_to_PS2_pico

  • @TheWinnieston
    @TheWinnieston8 ай бұрын

    Can't believe you're running win11

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    Yep windows sucks in general. But the Linux support in it is awesome!!!!

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    Out of the 3 laptops I have it's the most efficient at the task of running Linux. I have a MacBook. But virtual box doesn't support m1 processors yet. Also it's only 8gb. I could use brew just haven't put the time to figure that out fully.

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    I also have a Chromebook. Which can run Linux perfectly. It only has 32gb of storage. Which wouldn't take long to fill up

  • @MonclouCaroline
    @MonclouCaroline8 ай бұрын

    Very helpful and educational!

  • @theyounewb
    @theyounewb8 ай бұрын

    I might have missed this but... What is the maximum poll rate the Pico can support on the the PIO-based USB port?

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    Poll rate? Is this poll rate related to a specific USB specification your trying to use. So it support USB FS, which is a 12 MHZ signal.

  • @Rudofaux
    @Rudofaux9 ай бұрын

    "these are cheap things that run into the ram" Excuse me? Are you suggesting that you can somehow plug a 24pin ATX plug into DDR4 DIMM slots?

  • @brendenadamczak9283
    @brendenadamczak92838 ай бұрын

    I think you misunderstood the term "run into". I didn't use the small 12V power power supply because it wouldn't fit. It hit the ram because of the ATX plug is so close to the ram.

  • @RealAmerica1776
    @RealAmerica17769 ай бұрын

    What broke on it that needed repaired?

  • @brendenadamczak9283
    @brendenadamczak92839 ай бұрын

    The thermal paste gets dry and you need to add new past e