Skip Navigation
arduino

Arduino

  • Official starter kit or clones?

    Looking to get into Arduino for the first time. Have already searched about this topic, looking to seek some additional input, as you all seem to know what you are talking about. For reference the Elegoo clone is around half the price of the official pack. There is a Elegoo clone of the Mega board (as opposed to the Uno) which is almost as expensive as the official Uno one. Or would I be better off buying parts individually? I apologise for knowing nothing about electronics.

    3
  • Arduino chrono-thermostat

    Crossposted from: https://lemmy.ml/post/9698836

    > This setup allows Arduino to read temperature, control relay based on setpoints, display info on OLED screen, and manage date/time settings with user input through buttons. Adjust based on specific hardware/project requirements. > > Designed to replace the faulty electronic control of a blue heat radiator. > > Code and simulation at Wokwi > > Licensed under GNU GPLv3.

    0
  • Replacement controller for Atlas Vista 613 Wheelchair Lift

    This is the replacement controller I built for the wheelchair lift. The controller itself is in the middle. The four board on the left and right are a testing harness. The red and black wires are 24VDC and the green and white ones TX and GND for monitoring with a terminal program on my notebook (puTTY).

    Without the test harness it looks like this.

    !

    I was trying to squeeze a LOT into the BID box that I'm using for this project. I had to stack boards to get everything in.

    !

    The bottom most board is a standard bottom board for the BUD case. It has holes along each side for 2.54 screw terminals and pluggable screw terminals. I'm only using that board to mechanically connect the project to the BID case and for the screw terminals. I almost always use pluggable screw terminals because they're awesome. I can unplug four plugs instead of unscrewing 36 screw terminals and trying to keep the wires straight.

    There are two top boards. The one on the left carries four relays which turn the negative logic of the Darlingtons into positive logic for the lift. They send 24VDC out to the contactors that run the motors and the door lock. The other small board at the rear has two safety relays which switch power coming in through a bunch of safety switches out to the battery relay and the main contactor.

    This is what it looks like assembled into its BUD case.

    !

    This is all built around an Arduino Nano with a program that I wrote in Great Cow BASIC.

    2
  • When you let the smoke out of your very last Arduino Nano.

    I give you Frankenduino. It's an Arduino ProMini soldered onto a piece of protoboard and wired up to the Nano pinout.

    I have 10 Nanos on order but I really needed to keep the project moving.

    This ProMini has an ATMEGAS168 chip on it but that's good enough for what I'm doing.

    0
  • WYSIEYG for Mega 2560 R3 | Help someone with no free time that wants to get into this!

    Hey all,

    I've been sitting on a starter kit for a Mega 2560 R3 board and sensors for over a year. I want to get into it, so bad, but I frankly don't have the time to learn to code this with my job the way it is.

    Is there a WYSIWYG program anyone favors, especially for someone new to Linux (I'm using a Raspberry Pi 3 Model B running Raspbian and I have a Raspberry Pi 4 Model B too) and Arduino (board model Mega 2560 R3)?

    I found these options. Anyone have experience with them?

    Visuino

    Embrio

    1
  • My little ProMini power supply board.

    This little power supply board plugs into a ProMini shield stack or the ProMini Backplane boards that I designed. It's basic but it has a couple of nice features.

    !

    In this top view:

    A - Power inlet

    B - Screw terminals for offboard switch

    C - Jumper across switch screw terminals

    D - Reverse current protection diode

    E - 5V regulator

    F - 3.3V regulator

    G - 3.3V/5V on Vcc rail jumper

    The switch screw terminals let me use an external switch to turn the power supply on and off. If I'm not using an external switch I can use the adjacent jumper to tie the power supply on or I can put the jumper on and take it off to turn the power supply on and off.

    The power supply puts the supply voltage from the power connector onto the Vin rail on the ProMini Backplane board. There is a jumper on the next slot over to allow me to take Vin off that socket so that I can put the ProMini in there and not have it powered all the time.

    You can see two round pads between the white power inlet connector and the green screw terminals. This is an optional 2-pin header that sends regulated 3.3V and 5V from the power supply board down to the ProMini Backplane board to supply screw terminals to allow me to power offboard sensors or other devices easily.

    !

    You can clearly see the extra 2-pin connector in this bottom shot.

    !

    This board was designed in DS PCB before I switched to Pulsonix. I had them made by All PCB and assembled them by hand. This was a fun little project and I use these little boards quite often.

    !

    Here it is in action. The PSU board and a ProMini installed on the left ProMini Backplane board. You can see the 5V, GND, and 3V3 screw terminals to supply offboard power. I've also got two Backplane boards daisy chained together. You can also just see the 6-pin ICP port to the left of the screw terminals.

    0
  • This is how I take something from a breadboard through prototype to finished product.

    I needed some LEDs so that I could track what my data lines were doing. I started with a bunch of LEDs and resistors on a breadboard.

    From there I made up a small block of SMD LEDs and resistors on a piece of proto board.

    !

    Then I moved to an actual prototype on a dedicated protoboard.

    !

    Finally, I produced the finished product. BLINKY LIGHTS!

    !

    The friend who I work with can design a board entirely in software, we use Pulsonix, without every making a prototype, send it for manufacture, and get working boards back. Even when I build multiple prototypes I often end up with boards that need FECs to make them work.

    3
  • Pro Mini Shield Carrier

    I built these a few years ago to let me use UNO shields with Pro Minis to speed up prototyping. This was an early version. Later versions had more and more features added until I didn't need the shields anymore. That's when my Pro Mini Backplane was born.

    8
  • My new Serial starting code

    Here is my new serial starting code. It takes some time to start printing the serial after the command is set. Usually you simply add a delay, but that delay can be longer than the time your serial takes to connect, so you're waiting for nothing and when you're trying to troubleshoot that becomes frustrating. The other option is the check if the serial started with while (!Serial) { delay(10); } but then your code doesn't run without a serial connection so it just hangs if you try it off a battery or USB charger block.

    Here comes the best of both worlds!

    It checks for a serial connection every 10 ms but only for 3 seconds, then it goes on. The commented out line is to print how long it takes for your serial to show up. It was useful to determine 3s was a good number (I landed around 2100 to 2700 ms so 3000 gives me just a bit of padding while still being fairly fast when not plugged to a serial console.

    Bonus is the giant ASCII START logo I made so I can easily see where it started when scrolling back up.

    You can throw this at the top of your setup() or even better, make it a function and call it, so you only need to comment out a single line when you go testing it without a computer and save those precious 3 seconds at startup.

    Enjoy!

    C: Serial.begin(115200); unsigned long time_begin = millis(); while (!Serial && (millis() - time_begin) < 3000) { delay(10); // Serial.println(millis() - time_begin); } delay(10); Serial.println(" "); Serial.println(" :::::::: ::::::::::: ::: ::::::::: ::::::::::: "); Serial.println(" :+: :+: :+: :+: :+: :+: :+: :+: "); Serial.println(" +:+ +:+ +:+ +:+ +:+ +:+ +:+ "); Serial.println(" +#++:++#++ +#+ +#++:++#++: +#++:++#: +#+ "); Serial.println(" +#+ +#+ +#+ +#+ +#+ +#+ +#+ "); Serial.println(" #+# #+# #+# #+# #+# #+# #+# #+# "); Serial.println(" ######## ### ### ### ### ### ### "); Serial.println(" "); Serial.println(" ");

    PS: it looks like Lemmy can't handle color coded markdown... :(

    0
  • Help with WaveShare RP2040 Touch 1.28 IMU

    I'm using this really nice board, it has a RP2040, a round touchscreen and a Gyro/Acc module all in one (plus a RTC and Battery management). My issue is with the IMU, the QMI8658 is supposed to have a fusion algorithm embedded but I can't seem to get it to work. Anyone else has tried this? I'm looked at the chip documentation and tried to modify the registers via I2C but I still don't get any values for the Quaternions... I'm feeling really alone with this issue and I feel like I would have been able to get an answer back on Reddit but I want to try here first..

    4
  • Help with circuit

    I'm trying to use an LIS2MDL ic with an Arduino nano on a custom PCB designed in KiCad. I tried the Arduino example compass script for the ic and it didn't work. It just prints "Magnetometer Test" and nothing else happens

    5
  • [HAUL] just bought my first electronics parts!

    I got some bread boards and a kit full of resistors, caps, LEDs, etc. On Amazon, and 3 esp32s (dfRobot boards) from digikey. Very exciting! I already blew an LED (current limiting resistor? Never heard of her!)

    18
  • [Project - ESP8622] Over Engineered, Wifi Enabled and Screen Synced, DotA 2 LED Sign

    I had a gap in the wall from where an old monitor mount used to be attached so wanted to make something to cover it up.

    The LEDs are controlled by an ESP8622 running WLED, monitor data from the PC comes from Hyperion software. It can be set to a constant color, dozens of set themes, or match the color output of whatever is on my monitor.

    !

    !

    The microcontroller sits under the desk and receives constant power, it is the wired to a button on my desk to turn on/off power to the LEDs. !

    !

    Laser cutter action: !

    I tried to give it an aged rock/stone appearance using some textured spray paint which actually turned out pretty well. I think some of that doesn't come across well in the photos, but in person it looks good (to me anyway).

    LEDs changing color https://imgur.com/a/8CmepDk

    How to get WLED running: https://tynick.com/blog/11-03-2019/getting-started-with-wled-on-esp8266/

    More info about Hyperion https://docs.hyperion-project.org/en/user/leddevices/

    cross-posted from my post here: https://lemm.ee/post/1063150

    0
  • [Project] Flight Control Button Box for Microsoft Flight Simulator

    cross-posted from laser cutting community !lasercutting@lemm.ee : https://lemm.ee/post/896795

    > This was my first real dive into Arduino and multiple button mapping. It took a significant amount of trouble shooting and learning the software to get things to map to the computer action. > > Gif of the action > https://imgur.com/a/XI9KTeH > > ! > > ! > > Prototype 1:Started this project before I had a laser cutter and had tried to just drill through acrylic. It didn't work well, but it held my buttons during testing > ! > > Prototype 2 > Still no laser cutter but I cut out using plywood worked much better for manually cutting out the holes > ! > > Prototype 3 > Much better > ! > > !

    13
  • ProMini Shield Carrier

    This is an early version of the board that I created because I was irritated by the fact that there were no shields available for the ProMini. It includes the ability to plug in one of those cheap, Chinese breadboard power supply boards and I stuck a DS1307 real time clock under it. The ProMini goes in the center then you can plug regular UNO shields into the carrier. These things worked well but I decided to make a bunch of shields specifically for the ProMini.

    0
  • [Arduino Porn] MEGA2560 Pro Mini

    This is the big daddy of Pro Minis. I have a bunch of these in my Arduino bin and in my biggest project, the Maple Syrup machine room that I call the SapMaster.

    This board uses a micro-USB connector, ATMEGA2560, and a CH340G USB to serial chip.

    !

    This is an extremely capable chip. I pair it with an ESP32 and a dual FRAM board in the SapMaster controller.

    !

    0
  • [Arduino Porn] Arduino Pro Mini clone.

    I have a boat load of these in my Arduino bin and spread around in various projects.

    !

    This particular ProMini is based on an ATMEGA328P but I also have ATMEGA168s as well. This is a bare bones Arduino with no ICP port, no USB port, no power regulation, no nothing. This is just a 328P with a bit of supporting circuitry.

    0
  • [Arduino Porn] NANO V3

    There are a bunch of these in my Arduino bin and in one project or another. My maple syrup machine started on an UNO but ran on a NANO V3 for several years before moving to a MEGA2560 Pro Mini.

    !

    This board uses a micro-USB port, a surface mount ATMEGA328P, and a CH340G USB to serial chip.

    0
  • [Arduino Porn] A clone UNO.

    I have a few of these in my Arduino bin.

    This one has a micro-USB connector, surface mount ATMEGA328P, and a CH340G USB to serial chip.

    0
  • [Arduino Porn] Classic Genuine UNO

    I have a few of these in my Arduino bin.

    They have the classic USB-B connector, a DIP-28 ATMEGA328 chip, and a MEGA16 to so USB to serial conversion.

    !

    This board is a workhorse.

    0
  • The new Arduino UNO R4 boards are out!
    store-usa.arduino.cc Arduino UNO R4

    Explore the full range of official Arduino products including Boards, Modules, Shields and Kits, for all ability levels and use cases.

    The UNO R4 WiFi model will use an ESP32 chip for built-in WiFi and Bluetooth, and includes a 12x8 LED matrix along with some other new features. The boards now support up to a 24V power input.

    3
  • Arduino ProMini Shields (more images in text)

    I was working on a number of projects that used the ProMini as the microcontroller. I was irritated by the lack of shields specifically for the ProMini.

    First, I designed a board that I called my ProMini Sheid Carrier which had a power supply, an RTC, some LEDS, a place to plug in one of those cheap, Chinese breadboard power supplies, and connectors for a regular UNO style shield.

    [!image](https://i.imgur.com/VBuomz7.jpg)

    (Click the pictures for a higher resolution version.)

    What I really wanted, though, was shields designed specifically for the ProMini.

    So...I designed them.

    In the cover photo are (from left to right):

    DS1307 Real Time Clock with Battery Backup DS3231 High Precision Real Time Clock with Battery Backup Dual FRAM (or other memory with the same pinout) Buzzer RS232 Transistor Driver Port D Screw Terminals Port B & C Screw Terminals I2C 1 Wire LCD with Contrast (ETTeam Connector) Blinky Lights

    At first I made them stackable, like UNO shields...

    [!image](https://i.imgur.com/z9AxSo0.jpg)

    but that looked stupid.

    So I designed a ProMini Backplane board that would carry them.

    [!image](https://i.imgur.com/0XOno11.jpg)

    The backplane includes 6 slots. The boards can go in any slot but the PSU slot has a couple of extra pins to bring down regulated 5V and 3.3V for the screw terminals and jumpers to select which regulated voltage goes to the Vcc line. The ProMini slot next to the PSU slot has a jumper to disconnect Vraw from the ProMini so it can be powered by the regulated supply voltage of your choice. The board also includes a 6-pin ICP slot and they can be daisy-chained together to add slots.

    I had a lot of fun designing all of these boards and putting them together.

    I put together these kits for my kids. They include one of each board, a breadboard, a USBasp, a programming cable, some Dupont wires, a 1602 LCD and LCD cable, and a little homemade button pad and strip of 8 LEDs with resistors.

    [!image](https://i.imgur.com/9JvbJoH.jpg)

    0
  • ESP8266 Based Weather and Charging Station

    ESP8266 and a 2.4 inch touch screen. The button turns on and off the LED backlight on the screen.

    Inside the base is a charging station that powers the weather display, 2x USB C and the galaxy 4 watch base.

    The base is made of layers of plywood cut out on my laser cutter.

    Weather station code by Daniel Eichhorn https://github.com/ThingPulse/esp8266-weather-station-color

    ! !

    Weather info is grabbed from Openweathermap, you can sign up for their free API key

    Source code https://github.com/ThingPulse/esp8266-weather-station-color/blob/master/esp8266-weather-station-color.ino

    I was using adafruit hardware so used their guide/libraries https://learn.adafruit.com/wifi-weather-station-with-tft-display

    I had to remove some of their touchscreen calibration code since it seemed to be causing things to get hung up in a loop when turned on.

    I also had to adjust the rotation 180degrees so the ESP attached to the back of the screen was at the bottom instead of the top to fit it in the enclosure.

    I use pin 5 to toggle the LED backlight.

    0
  • Can we talk about solderless breadboards? (More pictures in text.)

    Most of the projects I design start out on solderless breadboards. The one in the bottom of this picture is a ROM switcher and reset circuit for a Commodore 64 that I'm working on. This circuit will fit inside the footprint of a 27256 ROM chip in a 2364 to 27256 ROM adapter.

    Other projects are larger like this early prototype of my maple syrup machine room controller, the SapMaster...

    [!image](https://i.imgur.com/WC0KFoM.jpg)

    or this...something...that I was doing with an ESP32 and a Raspberry Pi Zero W.

    [!image](https://i.imgur.com/WjrJmEB.jpg)

    Over the years I've collected a number of solderless breadboards. Some I bought myself and others came with kits that I bought. A number of them came from Hacker Boxes when I had a subscription before the pandemic. I had the delivered to a UPS store in Ogdensburg, NY and drove over and picked them up once a month. Hacker Boxes are cool. Definitely check them out.

    Some of the solderless breadboards in my BREADBOARD drawer were cheap, Chinese knock-off breadboards. They had...issues...

    [!image](https://i.imgur.com/C3DkIhU.jpg)

    not to mention the fact that the contacts were SUPER cheap. They often didn't line up well with the holes and prevented pins from being plugged in. Dupont wires and header strips were a BIG challenge and when plugging in a header strip the contacts often stretched and didn't spring back properly.

    I finally decided that it was time to replace all my cheap breadboards with better ones.

    The cheap ones can be bought on AliExpress for CAD$2. The better ones cost in the neighborhood of CAD$10. I spent some time doing research and talking to friends in the electronics business and settled on Global Specialties (pictured above.) Just about any of the brands available from Digikey or Mouser will be the same quality.

    The contacts are nickel plated phosphor bronze and are rated for 1.5A at 36V.

    I've switched my prototypes over to the new breadboards and am very happy with how the feel.

    0
  • Resources for Noobs

    Help point a noobie in some interesting directions.

    I've got the basic Arduino starter kit and some other breadboard components at this time. Eventually I'd like to learn more about PLC control systems. I'm happy to dive into other interesting areas as well.

    Any recommendations for sites, books, Youtube channels or even related subject matter that'd be useful to get acquainted with would be much appreciated.

    1
  • HOW TO: Hardware debounced tact switch for solderless breadboards.

    cross-posted from: https://lemmy.ca/post/703695

    Yesterday I posted a picture of a little tact switch that I installed on a piece of protoboard with a hardware debounce circuit on the bottom. I love those little things and thought I would share a how to for making them.

    The first thing you need is the little piece of PCB. I had a bunch of these Altoids Tin protoboards made up a few years ago.

    !image

    Full

    I break them down into smaller pieces,

    !image

    Full

    then I break those down to the size that I need,

    !image

    Full

    then I sand the edges to make them pretty (and also to make them small enough to sit beside each other if I need more than one.

    !image

    Full

    Note that the board consists of four columns of 3 connected pads and four columns of 2 connected pins.

    Next, I assemble (almost) all of the components that I'm going to need. These are (top to bottom, left to right) 1 uF 0804 capacitors, 1 K 0804 resistors, and 10 K 0804 resistors, the little sanded piece of PCB, three r-pin pieces of header strip (I like to use one red, one blue, and one black but you can use all black or any other color you want), and a 5 mm x 5 mm tact switch (I like the ones with the 7 mm shaft as shown because I can put a cap on them but any old tact switch will do.) Missing from this picture is a

    !image

    Full

    First, we're going to install the debounce components on the bottom of the board. With the columns of 2 at the top and the columns of 3 at the bottom you're going to bridge the gap on the second column with the little jumper wire and the third column with the 10 K resistor. Next you're going to bridge the top end (at the 2-pin column side) of the little wire and the 10 K resistor with the 1 uF capacitor. Finally, you're going to bridge the bottom of the right two 2-pin columns from the pint where the 1 uF capacitor and 10 K resistor meet to the bottom of the last column leaving the hole unobstructed. It will look like this:

    !image

    Full

    !image

    Full

    The next part is tricky. You have to push some of the pins on the header strips through. On the black one and the red one (or two of the black ones) you're going to push three of the pins through from the long side. On the blue one you're going to push through one of the pins from the long side as shown.

    !image

    Full

    Now, push the header strips into a breadboard as shown. The pins that you pushed through do not go into the breadboard, they stick up into the air. It's important that the pins that you didn't push through on the red and black strips line up with the one that you did push through on the blue strip as shown.

    !image

    Full

    Next, put the PCB over the pins as shown. The soldered components should be on the bottom of the board facing the breadboard. Make sure that the point where the capacitor and two resistors meet is in line with the three special pins on the header strips. If thy don't you can turn all of the header strips around and try again.

    !image

    Full

    Next, clip the pins you pushed through, the ones stick up into the air, off flush with the PCB.

    !image

    Full

    Now, push the ends of the short pins you didn't push through and cut off down flush with the surface of the PCB.

    !image

    Full

    Check one more time that the three special pins and the point where the three components meet are lined up then solder the pins marked with an X.

    !image

    Full

    Now, grab your tact switch. Note that the legs have bumps in them to help hold them in the holes while you solder them.

    !image

    Full

    Use a pair of smooth jawed plyers to squeeze the legs straight then bend two pins out at 90 degree angles as shown.

    !image

    Full

    Trim off the ends of the pins you bent.

    !image

    Full

    Insert the tack switch into the PCB as shown. The bent pins will be over the two pins in the blue row that you didn't solder above. You will need to bend the bent pins out a bit to make them reach the middle of the pads.

    !image

    Full

    Now, solder all four pins pushing down on the body of the switch to make sure it's tight to the PCB and lined up square to the board.

    Once you've soldered the switch in place flip it over and make sure that there is a good connection between the end of the 1 K resistor and the pin of the switch. Add a bit of solder if you need to.

    !image

    Full

    Now you can plug the switch into your breadboard and add a Dupont wire or jumper wire to the pin of your MCU.

    !image

    Full

    Note that the red header strip and blue header strip match up with the red and blue rails on the breadboard. This switch can only be installed on this side of the breadboard to get a debounced going low switch. The construction of a switch for the other side of the breadboard is exactly the same but you switch the position of the red and blue header strips.

    This is what one of these little switches looks like in a project. This is a prototype for a ROM switching and RESET circuit I'm going to build into a 23xx to 27256 ROM adapter for the Commodore 64.

    !image

    Full

    0
  • The bottom board in the industrial controller I posted yesterday.

    This is the bottom board that I designed to fit into the BUD DMB-4774 DIN rail mounted PLC case. It carries the MEGA2560 Pro Mini board (on the left) and the ESP32 board (on the right.) All of the controller code runs on the MEGA2560 (more than 4,000 lines of BascomAVR which I'm converting to Great Cow BASIC right now because the guy who wrote BascomAVR is a dick and GCB is far more feature rich) and the ESP32 does all the WiFi over the MQTT protocol (more than 800 lines of Sketch.) There's also a dual FRAM card standing on edge below the ESP32 which I use to store logs.

    The green connectors are 9-place pluggable 5.08 mm screw terminals that let me unplug a whole block instead of undoing a bunch of screws (VERY handy.) The 20-pin box header on the left edge connects to the top board which does the HMI stuff.

    The labels on the connectors are things like:

    BFS - Bottom Float Switch (in the releaser) TFS - Top Float Switch VS - Vacuum Solenoid AS - Air Solenoid LVL - Releaser Level (an IR laser TOF sensor) PVT - Pump Side Vacuum Transducer CVT - Collection Side Vacuum Transducer VP - Vacuum Pump

    That's the first block. The other blocks have similar meanings.

    0
  • This is an Arduino.

    This is the machine that runs my maple syrup machine room. The PLC (the large grey box on the left in the second section from the top) runs a MEGA2560 Pro Mini with an ESP32 as a WiFi modem. There are more than 4,000 lines of BascomAVR running on the MEGA2560 and around 800 lines of Sketch on the ESP32.

    The top section is power distribution. The middle section is supposed to be PLC only but my 24V power supply and distribution leaked into the right hand end opposite the PLC. The bottom three sections from left to right are analog input, digital input, and digital output.

    This thing runs a vacuum pump (a MasterCool 90066A), a transfer pump (a small Iwaki), an RO pump, and two solenoid valves (to be replaced with motorized ball valves this summer.) It takes inputs from a bunch of float switches, two vacuum transducers, a pressure transducer, three high precision digital thermometers, and two last time of flight sensors. This thing runs the entire process from the trees through collection and storage through the RO into secondary storage and out a tap to be boiled in the evaporator.

    The PLC uses a pair of custom boards that I designed to fit in the BUD case they're installed in. I'll post pictures of the inside shortly.

    6
1 Active user