Here at The Machine Shop, we pride ourselves in providing products and services to assist students, makers, tinkerers, experimenters, developers, hobbyists and prototypers in bringing their imagination and creativity to life. Whatever mad ideas you have, we are here to help you throughout the whole process. In our world, nothing is impossible.
Thank you sir for explaining the button system . I was getting confusing why my Adriano showing 0 and 1 random variables in my serial monitor. Even though my pin was not connected. Its because it take random disturbance as 1 . Maybe air resistance. Thank you sir 🙏
Thanks for this very useful video. I am trying to capture my car's steering wheel buttons resistance value for each button and I didn't understand the use of another resistor in between to actually get correct readings.
When you are trying to read resistance you are actually reading voltage with a fixed current. Since R = V/I, so when you fix the current and the resistance changes, so should the voltage and you can read that into the Arduino
@@TheMachineShopUK Indeed, to give you the full story: on my car service manual it is written that there are basically two cables (SW and SWG) and that the voltage should vary between 1V to 4V depending on which button was pressed. I first connected SW to an analog pin and SWG to the GND pin on my ESP32. I could get readings and when I would press on buttons I could see the difference between readings, but the values were very random and chaotic at times, it would have been very hard to distinguish which button I would have pressed. Looking on the internet I found a thread on arduino forums where they added a 10komhs in between, I did the same and got very distinguishable values. Only thing was that I didn't really get why using a resistor was necessary and effective, and then I found your video that made me understand why I needed one. I have a tech background so I'm really a noob when it comes to electronics :)
This has been very helpful to me as I was struggling to understand how to get a "simple" analog level out of my Arduino. I understand the notion of an RC time constant. But as many comments here ask, can you please provide some insight as to how to choose the RC Values? I assume it would be related to the PWM frequency, but also to how quickly the analog out is turned on and off. For example, I am interested in operating an individual electromagnet in a motor (not the motor itself) and might need to switch the electromagnet on and of at a rate of 48 KHz. I know enough electronics to know the R and C values will affect this performance but don't understand how to select those values or what the trade-offs will be.
Technically no, since python or micropython in this case, is interpreted where as C is compiled, so the pico has to do more work when interpreting micropython which means each instruction takes longer, slowing down the whole program
I have been piddling with small stuff like what comes in a beginners kit this past year so im pretty dumb to coding and old. Im building a rc buggy and since im a fabricator by trade thats the simple part. Im determined to learn coding, or enough to at least do this project. Its been a struggle learning since most tutorials skip over the most basic info that would be helpful for someone thats for the most part never touches a computrer other than emails and social media. For 2 hours ive searched for info like what you covered. Refreshing. You earned a sub here. Thanks
I dont find anything called usbmodem.... only 3 things with the cu. or tty. prefix: JBLLIVEPROTWS-OTA1, JBLCharge4-SPPDev ,and Bluetooth-Incoming-Port WTH? and they dont change when I plug the pico in. Any ideas? Thanks for the vid!
Awesome, found the video while looking for digital inputs and really enjoyed. Looking forward to follow all the playlist as soon as i finish another intro course
@@TheMachineShopUK Honestly i would like to understand better how inputs really work. I don't know if it is a noob or complex topic and didn't get my time to google it but for example i don't know if i can slap a digital input in the middle of a pre-made circuit more or less like a digital multimeter or i have to consider it like, idk, a very big resistor connected to GND(?)
@@TheMachineShopUK also the problem was that my mac wouldn’t pick up the raspberry pi pico and I have doubles and triples checked the wires and they are the right wires and they are plugged in. I follow your steps exactly the same until the point when we went into the terminal it was different then mine then yours
Literally... amazing... Absolutely perfect, clear and concise. I know a bit of C# so love having the decently complex IDE.... my god python is a simple and clear language :O
Hi, ive bought an pico H. One question, when i write the program and run flas etc.. my led wont blink on the pico. although i see soft reboot etc. no errors. any clues?
I know it's too late for answer, but it may help others. I just bought Pi Pico W, followed this tutorial, and the led doesn't blink (everything else went good). The problem was - on pi pico W we should now write led = Pin("LED", Pin.OUT) instead of 25. On pico W, internal led is not on 25 pin anymore. I guess for pico H (does pico H exist?) you may have same problem. Pin 25 is not an internal led anymore, just write "LED" instead of 25.
Hello thanks for the awesome video. My device is COM3. I have followed everything but don't know why getting no module name machine error. Can you please help me with this? It is not working for me. Any help would be great.
Another request as a viewer, is it possible for you to make a video on raw sensor data like accelometer data plotting using pico? Because I believe there is not enough support for plotting raw sensor data using pico. So, I would love to see some experiments.
Hello, another thing I didn't notice properly that, it is running and giving no error. However, no print message is displayed in micropython. Any idea how to fix it?