Do I Need I2C Resistors?
9:48
3 ай бұрын
Assembling Your YoshiPi
35:41
5 ай бұрын
Пікірлер
@codingstyle9480
@codingstyle9480 4 күн бұрын
Hi, I would like to know what kind of ADC you are using? It seems from the code, without writing any special driver for it, you can just use the standard analog port interfacing statements from Meadow library or am I missing something?
@yoshimaker-iot
@yoshimaker-iot 4 күн бұрын
The YoshiPi uses an MCP3004 (raspberry pi has no built-in ADC), but since all of these are using Meadow libraries, it can use any ADC that implements the IAnaloginputPort interface. So you could pick anything from Meadow Foundation, or if there was a separate ADC you wanted that doesn't yet have a driver, you could add it and implement the interface
@codingstyle9480
@codingstyle9480 4 күн бұрын
@@yoshimaker-iot Thank you.
@codingstyle9480
@codingstyle9480 4 күн бұрын
Thanks for this marvelous video. Just one thing though. When interfacing Raspberry pi, just where do we need the Ft232 UART board? Only during debugging? After we deploy the source code to the raspi, will we not need it?
@yoshimaker-iot
@yoshimaker-iot 4 күн бұрын
The FT232 is only needed to add an I2C bus to a Windows machine. Raspberry Pi has I/O built-in so you don't need an FT232 there
@codingstyle9480
@codingstyle9480 4 күн бұрын
@@yoshimaker-iot Thanks a lot.
@codingstyle9480
@codingstyle9480 7 күн бұрын
Hi. Thanks again. What if we are using a sensor working on I2C but does not have a class ready in the Meadow library. Is there any way of programming them with Meadow library? Best regards.
@yoshimaker-iot
@yoshimaker-iot 7 күн бұрын
If you have a sensor that there isn't already a driver for, you can absolutely create a new one. All of the Meadow drivers are open source and provide a good starting point and examples of how many (>200) existing chips work. github.com/WildernessLabs/Meadow.Foundation
@codingstyle9480
@codingstyle9480 11 күн бұрын
Hi, Thanks for the video. Can we use the same programming elements from the Meadows library to program a standalone Raspberry pi that I connect to a suitable screen for display without having YoshiPi? Thanks.
@yoshimaker-iot
@yoshimaker-iot 11 күн бұрын
Absolutely! You have choices for screens. You can use an SPI display like the YoshiPi does or you can use a standard monitor. With a monitor you can use something like Micro layout and the SkiaDisplay for basic drawing, or use something like Avalonia for a full UI rendering engine
@codingstyle9480
@codingstyle9480 10 күн бұрын
@@yoshimaker-iot Thanks a lot.
@damnimcooltom1
@damnimcooltom1 13 күн бұрын
And I've been using wires this whole time, like a hump!
@JohnGregory-u3j
@JohnGregory-u3j 13 күн бұрын
9
@QUSAIMOHAMMED-d6s
@QUSAIMOHAMMED-d6s 17 күн бұрын
GD
@wellingtonroa9298
@wellingtonroa9298 20 күн бұрын
Excelente 🎉❤
@applicitaaccount1258
@applicitaaccount1258 22 күн бұрын
Hey Chris, I was thinking about the logic for stopping bounce between cooling heating. Rather than measuring time between heating or cooling events how about monitoring temp at idle. Eg if you've just gone from cooling to idle and you see the temp rising at idle then suppress the heating event as you see that heat is not required at his time, the same goes for a falling temp at idle, but suppress cooling event. Great stream, looking forward to the next one 👍
@yoshimaker-iot
@yoshimaker-iot 22 күн бұрын
The challenge there is that you sometimes have thermal inertia, but sometimes shutting off the air circulation causes the temp to go the opposite direction. It's a hard problem with a single set point (which is why, in the past, I've always used a separate heating and cooling set point)
@yoshimaker-iot
@yoshimaker-iot 22 күн бұрын
You could use a "trend at idle" but you'd have to define some period over which to check and prevent any state change inside that check.
@yoshimaker-iot
@yoshimaker-iot 22 күн бұрын
Another approach is to use the "outside" temp. If it's above the space temp, you need to cool, if it's below, you need to heat
@applicitaaccount1258
@applicitaaccount1258 21 күн бұрын
@@yoshimaker-iot - This sounds like what I was trying to describe - thanks Chris!
@applicitaaccount1258
@applicitaaccount1258 21 күн бұрын
@@yoshimaker-iot - so in this configuration you would have two sources of temperature inside (room temp) and outside ambient temp ?
@colinturner5035
@colinturner5035 28 күн бұрын
Enjoying the series, loads of crossover with meadow F7. Looking forward to seeing how to cope with a display and touch screen on a device with one set of SPI hardware like the F7.
@holdingW0
@holdingW0 28 күн бұрын
Glad i was recommended this. Thanks for making this series!
@DrScientistSounds
@DrScientistSounds Ай бұрын
Thanks very much for the tip about jumpering the pressure switch, that brought my furnace back to life just now.. much appreciated! I had measured it with a dmm and it seemed good, open at first, then would close, I'd hear the click, but I guess it was still broken/faulty internally. Thanks again!
@cissemy
@cissemy Ай бұрын
Thanks Is it possible to program a drone with c# ?
@yoshimaker-iot
@yoshimaker-iot Ай бұрын
A great question, and I'd say it depends on a few factors. I assume you mean an air drone? For a fixed wing, I think it would be just fine. For a rotary wing, it could definitely deal with a lot of the controls, I'm just not sure the PID loop for the servos would be ideal for managed code. Imagine doing high-g maneuvers getting a GC during a turn. Even if it paused for 500ms, that could cause some serious problems.
@hosseinsobhanifar7051
@hosseinsobhanifar7051 Ай бұрын
thank u so much sorry, how can we write?
@yoshimaker-iot
@yoshimaker-iot Ай бұрын
the Client classes have methods like WriteHoldingRegister and WriteCoil that you can use.
@davidperetz5759
@davidperetz5759 Ай бұрын
Such an excellent video. TY.
@raptorjesus959
@raptorjesus959 Ай бұрын
Great video!
@gregebert5544
@gregebert5544 3 ай бұрын
+1 for scoping the I2C bus. One of the annoying things about I2C is that you cant terminate at the characteristic impedance of the line, because it's too low for the driver. So, if the drivers have edges that are too sharp, you will see reflections. I've run a 2-foot long chain of 4 or 5 devices on twisted-pair wire (Z roughly 100 ohms), with no problems, and terminating at 2.2K. As they say, your mileage may vary.
@yoshimaker-iot
@yoshimaker-iot 3 ай бұрын
2 foot isn't horrible. It when you get out to a meter that things get fun! : 😂
@CXensation
@CXensation 3 ай бұрын
Me thinks you should read the documentation carefully on the IIC devices you are using. From my work with Arduino circuits I've not yet run into recomendations on pull-up/down resistors. It's an inter-IC network, supposed to work with short signal wiring distances, preferably within the same PCB. It looks like you have defective IC's or not driving them correctly. Or your breadboard is NOT suitable for your circuit setup ... ! Take your time & effort to use prefab PCB's and do any mods to these underway during your initial proto build.
@yoshimaker-iot
@yoshimaker-iot 2 ай бұрын
I2C bus lines are high at idle. Pull ups are required somewhere on the bus in all cases. Most vendors have design notes available for how to calculate the resistance but many/most PCBs that have I2C components from places like Adafruit and Spakfun have pull-ups already on board, often 10k. Some cheap boards don't have them, and if you're designing a PCB, you need to add them
@jammin023
@jammin023 3 ай бұрын
Sometimes I2C modules have pullups onboard. It's convenient, especially if you're only using the one module, but it can be a trap for young players who don't realise that not all modules have them and they're very necessary. 4.7K might look quite curved on the scope, but for standard speed I2C it's usually fine. For high speed you might need a lower value.
@rjordans
@rjordans 3 ай бұрын
When measuring with your scope make sure to use probes with 10x attenuation. These have 1/10th of the capacity added to the line you're checking and that can have a significant effect on the rise-time you see. Most probes come with some info on their performance and capacitance, check it and weep. My cheap 100MHz probes add 170pF capacitance in their 1x mode for example.
@Leonard.L.Church
@Leonard.L.Church 3 ай бұрын
So many possibilities
@Rdec-x6o
@Rdec-x6o 3 ай бұрын
Who the hell said ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ ㅤ
@BigSmoke33233
@BigSmoke33233 3 ай бұрын
Craaaaaaaaaaaazy
@sammyyang7751
@sammyyang7751 3 ай бұрын
May i ask where do uou buy the motor, would you mind to share the link please?
@yoshimaker-iot
@yoshimaker-iot 3 ай бұрын
I bought this one online from www.northamericahvac.com
@popalockkenny
@popalockkenny 3 ай бұрын
Perfect explanation. Very detailed. Thank you for all the little pointers on what to look for. Really appreciate it.
@yoshimaker-iot
@yoshimaker-iot 3 ай бұрын
Glad it was helpful!
@tyrian869
@tyrian869 4 ай бұрын
Dang it I should have realized this was not going to work for me, I can't sweep 0-5v with 3.3 the lowest I was able to to go was like 2.3v with a 1.5v analog voltage from MC I'm pulling my hair out now this is so stupid they make 3.3 and 5v versions I have all these dam components and no luck whatsoever
@yoshimaker-iot
@yoshimaker-iot 4 ай бұрын
So you're trying to convert an analog 0-3.3 to an analog 0-5?
@tyrian869
@tyrian869 4 ай бұрын
@@yoshimaker-iot Might as well, I don't see why it would make anymore sense to use a digital pin? I'm trying to ultimately fade a 12v led with pnp or npn transistor somthing that should be so simple. yet the new arduino nano esp32 only does 3.3 instead of 5v on its I.O which is do dumb! but that's just half of it, I'm trying to be able to fade the led allowing the Arduino to control 0-12v for fading effects, Understand the 12v is a separate power supply
@yoshimaker-iot
@yoshimaker-iot 4 ай бұрын
@@tyrian869 Typically you'd fade an LED with a PWM and adjust the duty cycle, not the voltage. So use a PWM to switch the higher 12V and then set the duty cycle at say 50% to get 50% brightness.
@tyrian869
@tyrian869 4 ай бұрын
@@yoshimaker-iot Oh maybe that's a misunderstanding on my behalf. So analog output can't be anything in between 0 and 3.3v which is ultimately saturating the Field on the mosfet? I am not opposed of using pwm but I still don't understand why I'd use one over the other
@tyrian869
@tyrian869 4 ай бұрын
I ended up ordering a brushed motor controller which should also work as an LED driver that I can use in conjunction with a logic level shifter in case this driver which is advertised 3.3 to 5 volt logic doesn't support 3.3 volt logic because that's a misunderstanding in and of itself
@tyrian869
@tyrian869 4 ай бұрын
Can we still control the voltage range like 0-5v on the output with 3.3v?
@tyrian869
@tyrian869 4 ай бұрын
I have a question, if I were to wire two (NPN and PNP) like you, does the load that i'm needing to drive only get pulled from the PNP? as my PNP can handle more source current then my NPN can for the load I'm trying to control.
@raydaoedsjah717
@raydaoedsjah717 4 ай бұрын
Thank you for this video! It was relevent to my applcation perfectly. I'm a mechanic by trade so I am handy, but nothing about AC units. This is making it easy!
@nafisahmed6247
@nafisahmed6247 4 ай бұрын
some benchmarks would be interesting to see the performance of c# where you can receive messages every 20ms, and the frames are decoded/unpacked according automotive can messages which are defined in a dbc file. DBC are made using a free software called CANdb++ from the automotive software giant called Vector. so from the PC side the frames need to be packed and the embedded device needs to decode and show it.
@yoshimaker-iot
@yoshimaker-iot 4 ай бұрын
Definitely a good idea
@KhalilEstell
@KhalilEstell 4 ай бұрын
Great and very informative video. I've been doing a lot of work CAN recently so this came up. I don't plan to use C# for my IoT work, but for those that do, I think your video is a great one. Cheers and hopefully you get more viewers. 😄
@JoseHernandez-pd5qw
@JoseHernandez-pd5qw 4 ай бұрын
C sharp? That looks like C-4
@AkosLukacs42
@AkosLukacs42 5 ай бұрын
Doesn't the meadow have adc with continuous sampling and / or DMA support? Some micros have pretty advanced adc capabilities.
@yoshimaker-iot
@yoshimaker-iot 5 ай бұрын
Yes, the Meadow STM32F7 does have DMA for the ADC. But it turned out that doing the FFT math, driving a UI, and providing a network exfil for the data just was more than the STM32 could handle.
@AkosLukacs42
@AkosLukacs42 5 ай бұрын
​@@yoshimaker-iotI see. Would have been cool to see the meadow board doing all that.
@pgtmr2713
@pgtmr2713 5 ай бұрын
I use 5A buck converters for Pi4s set them for 5.2v for running overclocked. I use 12v power tool batteries. Music streaming boombox running Android with a touchscreen where the tape deck door was.
@drwoot
@drwoot 5 ай бұрын
I’ve never touched an electronics project in my life, but I watched every second of this. It’s a fascinating topic and you’re a very clear and engaging teacher! I’m looking forward to watching more of your videos!
@yoshimaker-iot
@yoshimaker-iot 5 ай бұрын
Glad you enjoyed it!
@adrian_codes
@adrian_codes 5 ай бұрын
This is new my favorite KZbin channel
@dazealex
@dazealex 5 ай бұрын
This was fun to watch and learn. Haven't seen anyone do a conversion for R values. Keep it up! Subbed.
@kyleallred984
@kyleallred984 5 ай бұрын
Nice and thourgh.
@Geekgaucho
@Geekgaucho 5 ай бұрын
This is a great! But I don’t like C# 😂 assuming I could use another language?
@yoshimaker-iot
@yoshimaker-iot 5 ай бұрын
Absolutely. The hardware doesn't know or care what language you're using and it will work with anything. We're just focusing on providing C# libraries and samples initially. I'd love to see the community create libraries for other languages that make using the hardware just as easy - if I had bandwidth I'd probably do a Python library that has the same look and feel.
@Geekgaucho
@Geekgaucho 5 ай бұрын
@@yoshimaker-iot I am in! 🤣
@adrian_codes
@adrian_codes 5 ай бұрын
I'm so excited about the board - thx for making this!
@kowalskifrog
@kowalskifrog 5 ай бұрын
Very cool idea! This might be useful in my local makerspace for teaching basic iot classes. The hyperlink in the video description isn't clickable.
@yoshimaker-iot
@yoshimaker-iot 5 ай бұрын
I'd love to, but I can't make links clickable until I have 1k subscribers
@kowalskifrog
@kowalskifrog 5 ай бұрын
@@yoshimaker-iot Pain. Wishing you luck to 1k!
@69developer
@69developer 5 ай бұрын
Good seeing your channel growing and great content. Like the Mikroe addon. One quick improvement is make your website address in the description, clickable.
@yoshimaker-iot
@yoshimaker-iot 5 ай бұрын
Yeah, just waiting to get to the 1k subscriber milestone to enable links
@larrywashburn9435
@larrywashburn9435 5 ай бұрын
How can I get this shipped to Japan?
@yoshimaker-iot
@yoshimaker-iot 5 ай бұрын
We're investigating how to do this though our web store. We'll send you an email when we have it figured out.
@larrywashburn9435
@larrywashburn9435 5 ай бұрын
What is the resolution of the A2D channels 12 bit or 16 bit?
@yoshimaker-iot
@yoshimaker-iot 5 ай бұрын
The ADC is handled by an MCP3004, which is a 4-channel, 10-bit ADC: www.microchip.com/en-us/product/MCP3004
@yjweaver5108
@yjweaver5108 5 ай бұрын
Good idea
@j7a1k1e
@j7a1k1e 5 ай бұрын
I don't know what a Yoshipi is. This was a weird recommendation from KZbin. Good work though.
@Super-Duper_Space_Goat
@Super-Duper_Space_Goat 5 ай бұрын
Such a brilliant resource!
@XoloJay
@XoloJay 6 ай бұрын
I see too much code belies the fact that even UTC clocks can change while your code is running, be it a network time sync event or from this nifty little device. It was suggested to me to use Environment.TickCoun64 to measure time between events and to detect if the underlying System Clock has been adjusted for IOT devices. Not sure if this is still the best way.
@Crashman1012
@Crashman1012 6 ай бұрын
This was in my recommended and I’m glad I watched it. I mainly do frontend web work for my day job, but I love tinkering with hardware and my team uses C# on the backend. Great video!
@yoshimaker-iot
@yoshimaker-iot 6 ай бұрын
You're right in my target group of developers, so maybe the algorithm is figuring me out
@mayanktiwari5957
@mayanktiwari5957 6 ай бұрын
Hello, want to know How we can use modbus to control Lichuan Servo Motor
@yoshimaker-iot
@yoshimaker-iot 6 ай бұрын
I'm not familiar with the Lichuan motors, but it looks like they all require a drive. the drive manual I pulled down was in Chinese, which I can't read. Basically you need to determine the modbus register map for the motor, and write data to those registers.
@TheKitsuneDen
@TheKitsuneDen 6 ай бұрын
Yoshi, I -was- going to HVACR 😞 school but my epilepsy took over me. I have replaced the capacitor in my unit (it's a Rheem full HVAC), that finally started to buzz that didn't exactly sound like yours, but when I tried to spin the wheel it would only go for tiny amount (it's still in the whole furnace) I can only guess that it's the motor dead or somewhere on the circuit board dead- any suggestions? Please, and thank you. -Foxlink
@yoshimaker-iot
@yoshimaker-iot 6 ай бұрын
If you push the fan and it doesn't spin easily and for several rotations, then the bearing is bad and the motor needs to be replaced or repaired.
@TheKitsuneDen
@TheKitsuneDen 6 ай бұрын
@@yoshimaker-iot Thank you, I'm just going to have to wait to get the money to get it. I had been looking the prices for the motor replacement and even the circuit board just in case. I'm new at the whole profession- and I doubt I'm going to be making it a career, just helps to know what to fix easier than paying thousands... Again, thank you every much. -Foxlink