Video není dostupné.
Omlouváme se.

#231

Sdílet
Vložit
  • čas přidán 14. 08. 2024
  • As you know, microcontroller boards have many pins, and wiring them to other components or keeping track of the different wires sometimes is not easy. Today I show you how I do it. Most of the tricks work for all microprocessor boards like the Arduino, the ESP8266 or the ESP32. And with a unique feature of the ESP32, we can optimize a little more.
    In this video, we will cover the following tips and tricks:
    1. Use colors
    2. Connect ground first
    3. Pre-fabricated wires
    4. Use empty Dupont shells
    5. Use the right pin order
    6. Not enough Ground or VCC connections on our development boards
    7. Super Glue can help sometimes
    8. Crimping you own wires
    Empty shells assortment: bit.ly/2DD3RQC
    or: s.click.aliexpr...
    Hakko Tweezers: amzn.to/2QkrG1b
    Single colored jumper wires (Link from a subscriber): bit.ly/2y6W7Au
    Wire holder (fusion360): a360.co/2Np0g8B
    Silicone wires: bit.ly/2PiMINB
    Supporting Material and Blog Page: www.sensorsiot.org
    Github: www.github.com...
    My Patreon Page: / andreasspiess
    My Bitcoin address: 19FSmqbBzb5zsYB1d8Bq4KbxVmezToDNTV
    If you want to support the channel, please use the links below to start your shopping. No additional charges for you, but I get a commission (of your purchases the next 24 hours) to buy new stuff for the channel
    For Banggood bit.ly/2jAQEf4
    For AliExpress: bit.ly/2B0yTLL
    For ebay.com: ebay.to/2DuYXBp
    www.facebook.c...
    / spiessa
    www.instructab...
    Please do not try to Email me or invite me on LinkedIn. These communication channels are reserved for my primary job
    Equipment in my lab: www.sensorsiot....

Komentáře • 369

  • @BaronVonBiffo
    @BaronVonBiffo Před 5 lety +88

    I use grey for vcc. And grey for ground. And grey for tx and rx. Oh, and grey for pwm signals.
    Being colour-blind means no need to remember complicated colour schemes. :)

    • @alexlehtinen9732
      @alexlehtinen9732 Před 5 lety +10

      I think you could make decent money selling off the grey cables that other's might call red and black...

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +14

      I know color blindness because I worked in the photofinishing industry and we always had to test males before hiring. There it clearly was a disadvantage.

    • @aronhighgrove4100
      @aronhighgrove4100 Před 5 lety +6

      That's why the word color blindness is really a bad choice, even if common. In most cases people only have a color vision deficiency related to standard color vision.
      That means some shades (for example in red-green color vision deficiency) can be less well distinguished, yet it does not mean they would not see red or green at all, just certain shades look similar or like different colors.
      In some cases it means that those "color blind" people actually see more colors in other domains, for example yellow, compared to standard vision.
      So to make a good user experience, ideally high contrast and bright colors are used, then this is not a disadvantage at all. The real disadvantage is that the majority will favor colors they can see well, which doesn't necessarily mean it is what other people see well.
      When you optimize for color vision deficiency, it helps everyone though, since you usually choose easy to distinguish color among a wide scale of possible color vision variations, and avoid using too many colors (which is bad design).
      Unfortunately though, colors are not optimized for this as often as it should be. This would avoid a lot of problems.

    • @mickcoomer9714
      @mickcoomer9714 Před 3 lety +1

      Colour blind, you must be an electrician.

  • @kissingfrogs
    @kissingfrogs Před 5 lety +32

    Some great tips. I like the "connectors always facing in" tip as it also makes it easier to probe the pin. Also great to hear someone else verbalise my frustrations like the lack of red and black duponts and a lack choice of longer cables, I often need pre-made 1m in length duponts.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +9

      There are a few links in other comments where we get black or red wires. For longer connections, I use Ethernet cable. It has 8 wires and is dirt cheap. And it is even shielded.

  • @DEtchells
    @DEtchells Před 3 lety +5

    What a super-useful video! The idea of using empty connector shells made me smack my head. It’s so obviously a good idea, but I had never thought of it. Thank you!

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      You are welcome! I use empty shells all the time...

  • @sethrd999
    @sethrd999 Před 5 lety +9

    I have literally just gone through this myself whilst moving a project from the breadboard to perf/strip board. This area is so understated and as you so rightly point out can save you time with unnecessary debugging.
    Great tips / description as always and well outlined. I do agree we need more VCC / GnD wires :D.
    Keep up the great video's.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Other viewers found links to single colored Dupont wires. So this problem is solved!

  • @emremutlu44
    @emremutlu44 Před 5 lety +10

    4:30 I use *tape* to combine single DuPont wires. Just plug them in a line of male/female pins and turn a tape around the whole bundle. It will look like a new connector. Also, I like to put a label on it before turning the tape around it. You can write pin correspondents. That does the job nicely.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +5

      This is also a good way. I also started like that. But when I discovered these cheap empty shells I found them more convenient.

  • @jerrybarnish5304
    @jerrybarnish5304 Před 3 lety +2

    Useful tips Andreas. As always, it is fun to listen to your narration. My wife really likes your pointer.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      The pointer is a copy of the one my wife used when she was a teacher.

  • @jparky1972
    @jparky1972 Před 5 lety +2

    Very clever advice with the dupont connectors.
    So obvious when pointed out to you.
    Thank you. ☺

  • @VincentFischer
    @VincentFischer Před 5 lety +28

    if you want to make your cables idiot proof, I always sacrifice one connection and fill it with hotglue and on the other end cut a pin to make it impossible to plug it in the wrong way. Of course it can't be the middle one or else you gained nothing ;). Also works great with multiple rows of pins with only one sacrificed connection

    • @VincentFischer
      @VincentFischer Před 5 lety

      of course not recommendet if you plug directly in your microcontroller board or into something important

    • @VincentFischer
      @VincentFischer Před 5 lety +1

      @Undefined Lastname We are talking 2.5mm pitch pin connectors here. JST-XH could be used to connect to dupont stuff but the notches can't be used if you dont have the right female side of JST-XH and you probably have to desolder the original pin headers first on your boards/modules/sensors to get JST-XH on there. Not very convinient

    • @VincentFischer
      @VincentFischer Před 5 lety

      @Undefined Lastname I don't think you are doing anything wrong. If you are on a level where you can quickly spin your low volume pcbs, that is the proper way! But for my use cases atleast, it's most of the time a bit overkill, I mostly use perf board or hobby grade modules that have 2.5mm pitch pin headers on them..
      I just love to not have to use my brain to connect things or to explain to not-tech-savy people that want to use the thing i made what color does what. Granted, there are better connector types for repeated plugging,unplugging. Also dupont wire are most of the times made from the cheapest plastic insulation that break after flexing the wire a bit. My comment was just a suggestion if you don't have other stuff at hand then dupont connectors. Usually I don't have the patience to wait the 2months until my aliexpress shipments arrive here, so I end up just using this method most of the time.
      I work with all kind of sensors that get relocated often, so I have to constantly change wire connections. Also I work with not so powerful microcontrollers that don't have the flexibility to reassign pin functions and capabilities. I am a programmer and the electrical side of things noticeably slow me down if I have to constantly think about what goes where in my development flow

  • @zetaconvex1987
    @zetaconvex1987 Před 4 lety +1

    I like the idea of always orienting the connectors a certain way.
    A trick I used once was in regards to how to correctly orient a home-made "shield" onto a board. Use female headers, but keep a gap on unused pins. Then, on the shield, use discarded insulation from wires to sheath the corresponding unused male pins. That way, your shield will only fit on your "motherboard" in one way. It has the added benefit that if the wiring is complicated on the motherboard, you can feed wires through the gaps in the female headers rather than have to route wires from other devices all the way around the female headers.

  • @johnjoyce
    @johnjoyce Před 5 lety +1

    The same exact idea might not work for everybody, but they should inspire people anyway. Very good practical considerations. Thank you

  • @Ghust2
    @Ghust2 Před 4 lety +12

    Thanks for the "create multiple ground" trick! I've been soldering multiple wires together, but that isn't practical at all ;)

  • @la6mp
    @la6mp Před 5 lety +5

    Aliexpress sells bundles with colored Dupont wires. This has solvet most og my red/black problems.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Thank you for your suggestion. Many viewers pointed me to these products. Already ordered :-)

  • @shuttlepodone1707
    @shuttlepodone1707 Před 2 lety +1

    I don't know how I missed this years ago. I would have saved hours. Excellent tips!

  • @DevelopWithDan
    @DevelopWithDan Před 5 lety +2

    Reversing the pin headers for multiple grounds or vcc is BRILLIANT and I can't believe I never thought of that. Thank you so much!

  • @PhilippMeierGermany
    @PhilippMeierGermany Před 5 lety +21

    Aliexpres lists black- or red-only dupont wires, e.g. "Male To Male Red Black 26AWG 20CM Dupont Wire Cable Connector" :)

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +3

      Thanks for the tip. I only knew the male version.

  • @j3gum
    @j3gum Před 5 lety +11

    I like to use sacrificial USB cables between boards. They're flexible, strong, have beefy VCC and GND wires, plus have at least a couple of data lines. Perfect for I2C, and Neopixel type LEDs.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +4

      Good idea. Sometimes I use CAT 5 Ethernet cables for the same purpose.

  • @KeithOlson
    @KeithOlson Před 4 lety +1

    8. To make absolutely sure that you won't plug headers in incorrectly, use shells that are 2 pins longer than the header, then fill one position on each end with hot glue/etc. There will now be no way to misalign the pins.
    9. If you have a laser printer, you can easily use a spreadsheet to print out a label that lists the function of each pin of a connector (or an IC). Once cut to size, spread some CA glue or clear nail polish on the connector/IC, then place the label and let it set. The paper will soak up the glue/nail polish, so it is a good idea to put another coat on top. (I use this for through-hole IC's, and there is enough room on top for the chip *and* pin ID's.)
    Hope this helps!

  • @RudyAmid
    @RudyAmid Před 2 lety +1

    Nice tricks for a klutzy electronics newbie like me. Thank you!

  • @g3i0r
    @g3i0r Před 5 lety +59

    10:12 "nearly a professional look" -- well, except for the font choice :P

  • @ristomatti
    @ristomatti Před 5 lety +18

    Here in Finland women tend to start using the mens toilets when the 1:1 ratio starts causing too long queues. This is silently accepted but would not work the other way around. That aside, hopefully some manufacturer will see the competitive advantage and starts producing wire bundles with more practical color ratios.

    • @esenel92
      @esenel92 Před 5 lety

      I usually just get red and black dupont wires (that aren't bundled) from aliexpress.
      generally it's about 6-7 euro's for 200 X 20CM cables, and have no issues finding enough red and black cables. some sellers sell other colors per color as well..

    • @markludwig5805
      @markludwig5805 Před 5 lety +7

      Only problem with women using the men's room is they don't put the seat up when done.....

    • @ahaveland
      @ahaveland Před 5 lety +2

      Mark, not a problem if you also sit down to pee. No chance of missing and it's quieter too.

    • @meggrobi
      @meggrobi Před 5 lety +1

      In Australia men can water a tree,

    • @richardbloemenkamp8532
      @richardbloemenkamp8532 Před 5 lety

      I agree that some more toilets for women than for men would be reasonable, but I also believe that some women could spend a little less time in the toilet. How often does it happen that people complain about having to wait a long time until it is their turn and they seem to have all the time in the world while others are waiting. And yes my child usually comes with me and not with my wife.

  • @Reto7219
    @Reto7219 Před 3 lety

    Zum Glück habe ich dieses Video geschaut bevor ich mit dem Verdrahten angefangen habe. Vielen Dank!

  • @Ruudrad
    @Ruudrad Před 5 lety +1

    What I find a perfect way to "wire" Arduino Rasberrry etc, is the good old wire wrap technique. With a cheap pen, that can as well the strip wires you need you can make upto 4 connections per dupont (male) pin. You can also wire wrap components like LED's, resistors, capacitors and even transistors. Finally, if you plug in a pin header with the "small pins", that you normally solder into the PCB pointing "up", you can wrap wires around that and quickly build circuits. Remember, in the old days we built whole motherboards using this technique, using PCB's with many integrated circuits on it. Try that with "dupont connectors"!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      I worked for digital equipment and remember wire wrapping... But it seems to be a forgotten technology. If I remember right we needed a proper tool, like a drill with a motor.

    • @Ruudrad
      @Ruudrad Před 5 lety +1

      Yes, with a wire "wrap gun" was the pro way to do it. I now however use a cheap pen-like tool for 12 CHF from Ali (wire wrap strip unwrap tool), that can strip and wrap 30AWG wire. They also have 30AWG wire, where they bundle 100m wire in 8 colors, that will keep you connecting for ages (800 meters,,,). I trust you can find it, if not I can provide links. The wrap works perfectly on small discrete components and dupont male headers. I eg. connected a hwclock to a rasperry Pi bus in a minute, without soldering in this case.
      I used it for connecting wires to raspberry PI, but the most challenging was connecting 150 RGB leds (each with 4 pins) to an arduino, to "cheer up" a small Dalek gadget on my dr Who Pinbal (yes, the real pinball from 1995 Bally), For that I used 4 I2C IC's each capable of doing 128 outputs in a 16x8 matrix. That means lighting up 450 LEDS (150 RGB) using only 2 wires (I2C) to the Arduino. When I connected the LEDS using dupont and soldering, I had many "fails", as the Dalek was moving. After using wire rap, all problems were gone.
      The Dalek is shown here: czcams.com/video/EgqaPZw0QHw/video.html
      The wordclock here: czcams.com/video/XTHH30S8Aao/video.html
      In my opinion, the wire wrap technique is a "forgotten" option, that has great potential for the hobbyist, but that is just "me". It works much more reliable than "experimenting boards", you can also connect discrete individual components (and even DIL IC's) quickly and reliably (and non destructive). I look forward to you opinion, might be fun doing some video footage about wire wrap, if you agree; you have more followers than I will ever have ;-)
      By the way, are you in the Züri region? That is where I live.
      Cheers ruud

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Nice projects, especially the word clock with the "mechanical" twist. Very innovative!
      Concerning wire wrap, I ordered now such a tool and a bit of wire to experiment. I agree this is a "forgotten" technology and maybe I even will do a small video about it.
      I live in Lausen, near Basel.

    • @Ruudrad
      @Ruudrad Před 5 lety +1

      As for the "forgotten" technology, indeed! but from my experience, the wires are not really aware of it and still behave in a well connected manner... ;-)
      Thank for the compliments, the wordclock was mostly 3D printed and now I'm building clock 4 and 5, for some of my kid's upcoming birthdays. It was also good to see that you can easily drive upto 16 servo's with one timer IC (PCA9685 ) I2C connected to the Pi. And if you have enough I2C space free: 64 of these IC's fit on one bus. Would be fun to see 64x16 servo's controlled! Would need an unrealistic amount of power though.
      I live in Dübendorf, near Zürich. I pass Lausen on my way to NL every few weeks I guess.
      Look forward to the potential of the video, would be proud to have inspired you for this ;-)
      I'm pretty sure I saw the technique once revisited in a Make magazine (the german one) . I was already applying it then.

  • @tmbiggs5343
    @tmbiggs5343 Před 5 lety +3

    The crimper video was the video that started my following you.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      That is a long time ago. Glad you are still around!

    • @sethrd999
      @sethrd999 Před 5 lety

      That crimper video is gold, as many new comers go the cheap route with very poor results as shown. I purchased that one not long after watching the video myself.

  • @emilsitka7590
    @emilsitka7590 Před 5 lety +2

    Dear Andreas,
    You rock!
    Thanks for all you do.

  • @MeinElektronikHobby
    @MeinElektronikHobby Před 5 lety

    ... danke Andreas für diese ausführlichen Tips und Tricks. Auch ich versuche in ähnlicher Art zu arbeiten - klappt nicht immer, wird aber immer besser. Thanks Andreas for these detailed tips and tricks. I also try to work in a similar way - it doesn't always work, but it gets better and better.

  • @AdityaMehendale
    @AdityaMehendale Před 5 lety +1

    You can use 3 pins from the 6-pin programming-header on an Arduino nano (Gnd, MOSI, 5V) to connect to a led-pixel strip; use "expansion-shield/breakout adapter" with Arduino Nanos to get neat Vcc/Gnd/Signal pin-triplets.

  • @jamesotisjr2322
    @jamesotisjr2322 Před 4 lety +1

    Consider using the resistor color code: Red is 2, I use that for 12 VDC, just like automotive wiring. Orange is 3, for 3.3 VDC. Green for 5 VDC. Blue for 6 VDC.
    I always use Yellow for serial RX and the color code for the serial TX port in use. GrAy for SDA and purpLe for SCL
    I solder the module end to a header. hot glue the connection for strain relief.

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety +1

      You are very organized! Much better than me.

  • @GnuReligion
    @GnuReligion Před 5 lety +2

    I like using double-row IDC keyed ribbon connectors when 6+ wires are required. It is easy to salvage standard old IDE cable spaced at 1/20" for this. Best to have one of those ribbon-connector crimping tools.
    Belt-buckle 4-wire DuPont housings can be good for USB, I2C, and Serial connections.
    Round female wire-connectors are wonderful for mounting components on all kinds of perfboard projects.
    If drawing real amperage, then PCB mounted spade tongues can be useful.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Thank you for your tips! I did not know these Belt-buckle 4-wire DuPont housings.

    • @GnuReligion
      @GnuReligion Před 5 lety

      Andreas Spiess
      www.aliexpress.com/item/50-Set-MX2-54-Dupont-Connector-4-Pin-with-Belt-Buckle-Single-Row-2-54mm-Right/32792160070.html
      Well, I like learning about all the new tech by watching your channel!
      There seem to be an infinite number of connectors. Would use JST style more often, but find them difficult to crimp.

  • @meggrobi
    @meggrobi Před 5 lety +1

    As usual, helpful and crystal clear

  • @HansVledder
    @HansVledder Před 5 lety +1

    Very useful tips Andreas, It'll save me quiet some work. Thanks for that!

  • @lasersbee
    @lasersbee Před 5 lety

    I live in North America and for the past 40 years I've used Red or Orange for Positive DC and Black or Green for ground.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Maybe I should have mentioned that it is not so important which colors you use. More important is, that you stick to your scheme. I can imagine that the color codes in different countries are different.

  • @ng3147
    @ng3147 Před 6 měsíci

    Danke lieber Andreas!

  • @N7801Z
    @N7801Z Před 5 lety

    This information is immensely valuable. Thanks so much.

  • @StephaneHollande
    @StephaneHollande Před 5 lety +1

    Always great ideas Andreas ! as usual.. Thank you.

  • @halcrawford
    @halcrawford Před 2 lety

    Thanks a lot for this Andreas

  • @bgable7707
    @bgable7707 Před 3 lety

    I wish CZcams had a way to give a 2nd "Thumbs Up" . I find myself referencing many of your video's, over and over. Maybe the YT stats show this. BTW the IWS-2820M is working great for me to crimp the terminators per video "#282 Crimpers: IWISS IWS-2820M against Engineer PA-09?"

  • @vng
    @vng Před 5 lety +1

    I like to use universal PCBs. Solder on the headers, solder on wires to connect the correct pins together, and then just slot in the dev boards. But that is a lot more work compared to simply using cables.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Soldering is always a good solution for permanent connections. I prefer this way if I know that the "product" will be deployed.

  • @DocMicha
    @DocMicha Před 5 lety +4

    I use also superglue for single connectors in a row. Therefore it is less effort, because once connected correctly, you can carefully glue the single connectors together. And I hate crimping small connectors, even with a good crimping tool so I like to solder pre-manufactured wires together rather than crimping. ;-).

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +3

      I also used super glue in the beginning. But I was not so successful, I always had 50% glue on my fingers :-( This is why I love empty shells.

    • @DocMicha
      @DocMicha Před 5 lety +2

      That's the downside of the method, but a wet razor with a little shaving foam can help to get rid of the glue, but be careful not to cut your self, but if you cut, you could use super glue ;-). In this sense I should also go better to empty shells.

    • @electron-1979
      @electron-1979 Před 5 lety +2

      @@DocMicha
      I use sand paper to get the glue off my fingers

    • @DocMicha
      @DocMicha Před 5 lety +2

      Oh that gives a nice smooth fingertip, without any fingerprints.

  • @superdau
    @superdau Před 5 lety +1

    If you want *connectors that almost look injection molded, put hot glue on a piece of baking paper* (works best if the paper itself is on a cooling surface like a sheet of metal or heat sink). Then push the pinheader/sockets with the soldered wires into the glue. You should have about as much glue that the connector is "half filled" (so 1-2mm high for dupont style connector). Repeat the same on the other side. The most important thing: wait for the glue to cool before you try to remove the paper. Then the baking paper will not stick to the glue. Trim the glue that was squashed out to the side with side cutters and voila you got an almost factory made looking connector, especially when using black hot glue.
    As for the colors: I always use green for clock signals. I imagine a chinese person saying green which ends up being "gleen" (no offence) which starts the same as "clock". Blue is always data (because of the "a" in german "blau" and "Daten"). This way I pretty much always can immediately find and I2C bus. I always leave those two wires stuck together, because in very rare cases a single blue wire means negative voltage. Similarly for a serial connection. Orange is RX (from the µC's point of view), because both have an "r" in them, and yellow is TX (because of the toilet problem and because it is joined with orange).

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Thanks for the tip about the backing paper. I am sure this will help me elsewhere. And I had a laugh about your mnemonics!

  • @pdrg
    @pdrg Před 5 lety +1

    Really sensible tips. Good video.

  • @warlockd
    @warlockd Před 5 lety +1

    Not against dupont connectors, they are sometimes a bit tall for the boxes I have. After having to buy some MicroFit connectors been using them on finished projects. They are just a bit expensive but you can get them in headers, sockets, right/left angles etc..
    PS - Also use JST or locking dupots, those are cheap off ebay too.
    PSS - Oh, and when I was starting out I just bought those combo connector packs. DON'T. I ended up using all my 1/2/3/4 socket duponts but still have like 40+ of the other sockets in the bin. Just find the part numbers of the connectors you use, go to mouser/digikey and just buy them in bulk there. This works well with screw too:P

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      You are right. Dupont connectors are not a good choice in many aspects. But since Arduino times it seems to be the standard for Maker boards. They are cheap and versatile. If I can decide I also use different connectors.

  • @youpattube1
    @youpattube1 Před 2 lety

    Here in florida, the building code does require additional toilets in the women's bathroom. the specifications are in a section called Potty Parity.

    • @AndreasSpiess
      @AndreasSpiess  Před 2 lety

      You seem to be very practical there! I learned to fly in Florida, btw.

  • @HunTomiBp
    @HunTomiBp Před 3 lety

    Thanks for video!
    Tamás, from Stockholm

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Binge watching ;-) Thank you. I like that somebody uses my content.

  • @JayrMagave
    @JayrMagave Před 5 lety

    Always useful. Thanks for sharing.

  • @SixWildKids
    @SixWildKids Před 3 lety

    Pololu sells cables with Dupont ends and lets you choose colors. Buy bags of red/black. All sorts of lengths.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      Thank you. In the meantime I also found a source. Now I am happy.

  • @Graham_Wideman
    @Graham_Wideman Před 5 lety +1

    8:19 "Arduinos can only use a few pins for PWM". This is true for the hardware PWM use for Arduino analogWrite. However, another application of PWM signals is the Servo library, which doesn't use the same hardware PWM, and supports output on any digital output.

  • @50Hz
    @50Hz Před 5 lety +1

    I love your videos, hopefully after some time I can put out together content as good as yours.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      At least you started. Good. Now you have to keep up!

    • @50Hz
      @50Hz Před 5 lety +1

      Andreas Spiess I take my hat off to you publishing so much great content, you must be very dedicated.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Yes!

  • @cyberfez
    @cyberfez Před 3 lety

    fantastic tips. any tips on runing long lengths of wiring through a projects ? tips on how to keep cables safe, clips to hold them in place. running tracks etc?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      I am a wireless guy. So most of my longer wires are mains cables and I do not have a good system for them. In the lab I have an intermediate shelf that they are not on the floor (for easy cleaning).

  • @glennedgar5057
    @glennedgar5057 Před 5 lety

    Solved a major problem I had. Thanks

  • @springwoodcottage4248
    @springwoodcottage4248 Před 5 lety

    Super useful & interesting! Thank you for sharing!

  • @dannyangus5243
    @dannyangus5243 Před 5 lety

    Some great tips there Andreas, ty.

  • @expataviator7107
    @expataviator7107 Před 3 lety

    Really excellent thank you

  • @mickcoomer9714
    @mickcoomer9714 Před 3 lety +1

    If only the colour codes were that simple. Most of my electronics is on my kit car which is based on a Merc. On a Merc live/power is black, but I grew up with the Lucas colour system where red is power and black is earth. Variations on blue is for for lights, yellow and green is for indicators and white is ignition protected. I stay with the Lucas system for my wiring cos I understand it.
    I also print little things to hold the wires together while using UV glue to bond them into a ribbon.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +2

      I recently learned that some manufacturers use black as plus. Not a good idea, I think. I also will stick the the "conventional" code. I have printable heat-shrink tubes which are also handy for that purpose.

    • @mickcoomer9714
      @mickcoomer9714 Před 3 lety +1

      @@AndreasSpiess. Printable heat shrink? Tell me more.

  • @Lew114
    @Lew114 Před rokem

    Great tips! One thing that many of my failed projects have in common is wiring that looks like a rats nest.

  • @Autotrope
    @Autotrope Před 3 lety +1

    Dfrobot makes packs of them with heaps more red and black than other colours. But, they are not joined in a ribbon but loose. It is probably the only way since rainbow ribbon cable tends to spread the cable colours evenly.

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety +1

      You are right. In the meantime I found them too (with the help of my viewers)...

  • @HSRMF
    @HSRMF Před 5 lety +1

    i like these gloves :)
    thank you for sharing your knowledge with us ...

  • @adrianwilliams763
    @adrianwilliams763 Před 4 lety

    Some great tips. Thanks Andreas

  • @OverUnity7734
    @OverUnity7734 Před 5 lety +3

    In emergency situations when I only have one color wire to use, I tie a knot in each end of a wire to mark it as positive.

    • @NiHaoMike64
      @NiHaoMike64 Před 5 lety +3

      Colored heat shrink is also good to keep around.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Both good ideas! Thank you.

  • @WacKEDmaN
    @WacKEDmaN Před 5 lety +1

    Thanks Mr Spiess, some good info there..i like using dupont wires for my builds aswell, but ive found that they are not always the best..the male ends are slightly too small for the female headers, and dont always get a solid connection... i currently have a STM32 bluepill connected to an arduino 8-bit parallel TFT sheild and if i move it slightly it will loose connection, requiring a reboot of the mcu to get things working again... same issue with an arduino, a 8 character 7 segment LED display that uses SPI and an I2C RTC..all connected via dupont wires.. if i move either the display or the RTC, the display stops updating and requires the arduino be rebooted to get it working again..
    All this coz the dupont cables dont fit snuggly into the adruinos female pins...and even breadboards... i can crimp the ends of female dupont wires so the male end doesnt slip out as easy, but its impossable to do on arduino headers or a breadboard..
    TL;DR male ends of dupont wires need to be a mm thicker!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +2

      The unstable connections were one reason for me to change to empty shells.

  • @GabrielKleinCH
    @GabrielKleinCH Před 4 lety

    I personally use a black and red indelible pen to mark the wires.

  • @dleivam
    @dleivam Před 5 lety

    Thanks again for your useful videos

  • @stevenlightfoot6479
    @stevenlightfoot6479 Před 8 měsíci

    Thanks, this is good.

  • @odieodieetmarco3477
    @odieodieetmarco3477 Před 3 lety +1

    thanks, where do you get this black hot glue (at 10'44")? is it different from the transparent one?

    • @AndreasSpiess
      @AndreasSpiess  Před 3 lety

      I assume only the color is different. I think I got it from Aliexpress

  • @xmine08
    @xmine08 Před 3 lety

    "Nearly a professional look" Proceeds to use MS Comic Sans

  • @samuelschwager
    @samuelschwager Před 5 lety +1

    Habe grade vor ein paar Tagen eine Crimp-Zange bekommen und Polklemmen für meine Labornetzteile gebaut. Brother Labelmaker ist noch auf der Wunschliste ;)

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Du wirst den Brother lieben! Viel einfacher, die Labels am Computer zu schreiben...

    • @samuelschwager
      @samuelschwager Před 5 lety

      @@AndreasSpiess Je nach Modell leider nicht ganz günstig. Aber nach dem Januarloch hab ich dann wieder Budget dafür ;)

  • @ranger81de
    @ranger81de Před 5 lety

    Very useful tricks, thanks!

  • @rondlh20
    @rondlh20 Před 5 lety +1

    Brown is used for the live wire in 240V AC applications in Europe, so I would never use brown for ground.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      You are right. In my lab, however, I do not have many open 220 volt wires, never with Dupont connectors and much thicker. So in my case the chance I mix them is very small.

  • @buddyscottie2184
    @buddyscottie2184 Před 5 lety

    very informative and helpful!! thanks

  • @shazam6274
    @shazam6274 Před 5 lety +1

    Learn to solder! Then you can have any color and any length wire to a plug in header, as in tip # 6. Put a small amount of hot melt glue on the wire-connector solder joints, then cover with heat shrink which has internal hot melt. This can be made faster than crimping pins and assembling the connector. Now you will have a strong, waterproof, strain-relieved cable / connector almost as good as a factory made injection molded one.

  • @KunalGautam
    @KunalGautam Před 5 lety

    Nice and informative video. In local store here, they sell same color dupont cable, but choice of color are limited. I've seen black, brown, white, red only.

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Thank you! Viewers pointed me also to sources where we can buy them online.

  • @y0utubeu5ername
    @y0utubeu5ername Před 4 lety

    Great video, very useful. I wish I'd found ths earlier. Thanks for posting. Subbed.

  • @berndreiner7159
    @berndreiner7159 Před 5 lety +1

    PERFEKT VON ANFANG BIS ZUM SCHLUSS 👌👌👌👌
    Dürfte ich dich fragen warum du dich so gut damit auskennst?? Zumindest was oder hast du beruflich gearbeitet?? 🤗🤗
    Grüsse aus österreich

  • @accountdeactivated5486
    @accountdeactivated5486 Před 5 lety +1

    These prefabricated Dupont Jumper Cables often have a resistance of several Ohms... They are fine for data but not that good for anything which draws a bit more current

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      You are right. The technology is not very good. But it is the standard for Arduino boards. This is why I use them.

  • @FuZZbaLLbee
    @FuZZbaLLbee Před 5 lety +1

    At what point do you go from loose cables to these connectors to soldering the wires directly on the board?
    Or even use something like a attiny (for the simpler programs) on a vero board or custom PCB?

  • @yudhahamdiarzi5553
    @yudhahamdiarzi5553 Před 5 lety

    Thanks for the tips and trick :D

  • @danmers
    @danmers Před 5 lety

    Great tips. Thanks

  • @Graham_Wideman
    @Graham_Wideman Před 5 lety +1

    The reason you always get the same set of colors in ribbon cables is because the colors follow standard EIA color numbering:
    1 = brown, 2 = red... 0 = black. Since these colors are used to number the wires so you can identify them, you cannot expect cables with multiple of particular colors within each set, like say black or red, that you might prefer if you're going to split them apart. en.wikipedia.org/wiki/Electronic_color_code

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Thanks for the link. And with the help of my viewers, I also found sources for single color batches. So I am happy!

  • @michaelrudek1545
    @michaelrudek1545 Před 5 lety

    Just a note to the colors.
    Standard 3-wire Sensor cables in the german (europe) industry have the colors brown,black and blue.
    Brown is (+),
    blue is (-)
    and black is output no1.
    I´m using this cables often, cause i´m electrician in a german company ;) So i wouldn´t use brown or black as minus.
    But this is in my field....

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Maybe this scheme comes from 220 volt colors?

    • @oakinger
      @oakinger Před 4 lety

      not only in Germany it seems automation-insights.blog/2012/03/13/back-to-the-basics-how-do-i-wire-my-3-wire-sensors/

  • @DennisMurphey
    @DennisMurphey Před 2 lety

    Can we use dupont shells to attach wires to a angular male header board to reduce assembly height?

  • @prckmi1008
    @prckmi1008 Před 2 lety

    I use pieces of plastic corrugated board to keep wires separate.

  • @taruix603x5
    @taruix603x5 Před 5 lety

    what a great videos!!!! Thanks!!!

  • @alanknight2204
    @alanknight2204 Před 5 lety +1

    Hi In my breadboard storage box I have painted ( spray paint ) some dupont shells so that I know if the lead is M-M , F-F or M-F . I am now thinking that more colours would tell me
    the length .
    More wire colours would be great but I am to lazy to make my own right now .
    Alan

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      As you see I have them mixed and have to search if I need one. Your concept is more professional!

  • @waltergodsoe5526
    @waltergodsoe5526 Před rokem

    And thank you.

  • @mcflapper7591
    @mcflapper7591 Před 5 lety

    +1 for mentioning and acknowledging the "public toilet" problem.

  • @andreyl2705
    @andreyl2705 Před rokem

    Thank you, Andreas. very useful information. Which wire(AWG) do you recommend for arduino and esp projects?

    • @AndreasSpiess
      @AndreasSpiess  Před rokem

      I use 30AWG for general data connections and Dupont wires. If I need more power, I use wires from 22AWG downwards, depending on the current needed

    • @andreyl2705
      @andreyl2705 Před rokem

      @@AndreasSpiess Thank you)

  • @gacherumburu9958
    @gacherumburu9958 Před 4 lety

    Good info. Thanks.

  • @xHeadxShotxx
    @xHeadxShotxx Před 2 lety

    I'm trying to prototype right now, is it possible to just insert the male jumper wire into the arduino's respective pins and go from there? Or do I need to use an empty shell so I can connect the wires?

  • @daskasspatzle2396
    @daskasspatzle2396 Před 5 lety +1

    We seem to do nearly the same... Except for labeling the cables, as i don't have a label maker. Do they really keep the single shells together without any further adhesive?
    Thanks for this tricks ;-)

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      I never stick single pins together, I always use shells. There it sticks good.

    • @kitecattestecke2303
      @kitecattestecke2303 Před 4 lety +1

      @@AndreasSpiess hotglue does the trick with high force

  • @marcosmaziero
    @marcosmaziero Před 5 lety

    Thank you very much!!

  • @bra1nsen
    @bra1nsen Před 2 lety

    I use a raspberry pi 4: 3.3v and ground
    now could i splitt with a y-adapter - to power an led on the one hand and on in the other a sensor like the bme280? the voltage should stay constant, because its parallel or?

    • @AndreasSpiess
      @AndreasSpiess  Před 2 lety

      You can use the 3.3 volt pin to power a sensor or a small LED. But not much more.

  • @abobobo943
    @abobobo943 Před 5 lety

    Vert interesting. Thann you.

  • @abhinavgolwalkar
    @abhinavgolwalkar Před 5 lety +1

    Very informative. I have a question on Tip#6 with ise case of Raspberry pi.
    If I extent vcc pin(5 or 3.3) is there any impact on current supply for that single extended pin? The max current limit???

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      The 5 volt is fed by USB. So you have these limits. And the 3.3 volt rail is fed by a small converter. I would not expect a lot of usable current on this rail, but I do not know how much.

    • @abhinavgolwalkar
      @abhinavgolwalkar Před 5 lety +1

      Andreas Spiess Alright. I am working in a project that includes a rotary encoder 5 volt, a 5 v OLED display, and a neo pixel led. I have only 2 nos 5v pin so if I extent one of them to run 2 things , then my pi will not face and trouble and would not fry. Is that correct and safe?

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      I would say yes, it is ok. But pay attention with 5 volt devices. The Rpi is killed by 5. volt on any pin (which can happen if your 5v device has an output pin). Better use 3.3 volt devices on the Rpi.

  • @danharold3087
    @danharold3087 Před 5 lety +2

    I like hookup wire holder at 1:08

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety +1

      Thank you. Self-printed ;-)

    • @andreandrade1997
      @andreandrade1997 Před 5 lety

      Dear Andreas, do you have the files available for printing?

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Here is a Fusion360 link: a360.co/2Np0g8B

    • @Rob-uf9yp
      @Rob-uf9yp Před 5 lety

      Thanks for the link to the wire holder. I am going to print it.

    • @RTmadnesstoo
      @RTmadnesstoo Před 5 lety

      @@AndreasSpiess What sizes of wire on the spools? I need to order an assortment but haven't decided what size to get.

  • @EnergeticWaves
    @EnergeticWaves Před 5 lety

    I use green for ground also.

  • @danny117hd
    @danny117hd Před 4 lety

    Nice vid. My tip is use the bool.
    Bool x=0;.
    digitalWrite(,mpin,,x);
    Delay...
    X=!x;
    digitalWrite (mpin,x);
    Delay...
    The auto correct is messing the code....

  • @electronic7979
    @electronic7979 Před 5 lety

    Useful video

  • @greekgroover3165
    @greekgroover3165 Před 5 lety

    In respect to trick #6 at 10:41 would you care explaining how proper grounding (star ground) or even working with analog and digital ground works? I had a lot of issues with noise when trying to connect an arduino, a dfplayer with a pam8403 amp. thanks!

    • @AndreasSpiess
      @AndreasSpiess  Před 5 lety

      Grounding is a large topic and I am not a specialist. Maybe you find better information elsewhere.

  • @allyourcode
    @allyourcode Před 4 lety

    Interesting. I'm from the USA, and I would call your third choice for ground that you show "yellow". I wonder if this is a weird color translation issue? Or maybe one (or both) of us is color blind?? Your second choice for VCC I would call "yellow" (just a different shade).

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety +1

      I am tested against color blindness because I used to develop stuff for the photofinishing industry ;-)

    • @majdnemkocka
      @majdnemkocka Před 2 lety

      "Brown" is just dark orange and orange is just a reddish yellow. :) I think it might be a cultural thing: some "American" yellows (School Bus Yellow, Crayola's Bright Yellow) are vivid, golden, reddish colours, I would almost call them orange. In Europe, "yellow" is a lighter shade usually (like Crayola's Lemon or printers' Process Yellow).

  • @jesperbjrn150
    @jesperbjrn150 Před 4 lety

    Maybe this have come up before but I risk asking again hoping for an answer. On a ESP32 DOIT V1 board I have experinced that the ADC's have been interrupted when started WiFi.begin; When running the sketch on serial monitor only with no WiFi connection it runs a analogRead on GPOI2 fine. But when starting WiFi and adding the code to html then pin2 (and others) fail or shows the full scale of the analog value on the browser. I tried different pins and found that GPIO34 worked but I need more variables for inputs and outputs what have I overseen???

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety

      One ADC is used for WiFi and BT. github.com/espressif/arduino-esp32/issues/102

    • @jesperbjrn150
      @jesperbjrn150 Před 4 lety

      @@AndreasSpiess Thank you very much. Looks like only the ADC1's can be used as analogRead when WiFi is enabled. Have a OneWire on GPIO4 and that continues to work fine even with WiFi enabled.

  • @allcrafter3747
    @allcrafter3747 Před 4 lety

    Du kannst solche rote, bzw. schwarzen Kabel bei Reichelt bestellen. Jeweils im 10er Set. Versand ist aber immer 6 Euro. Deshalb viel auf einmal bestellen, dann lohnts sich.

    • @AndreasSpiess
      @AndreasSpiess  Před 4 lety

      Unterdessen hab ich welche. Und sie werden täglich gebraucht...