Duncan C
  • Member for 7 years, 7 months
  • Last seen this week
Running Arduino mega on 5V power supply
Accepted answer
2 votes

Here's what I did for my project: I used a high current regulated 5V supply. I took a USB cable with the square connector that goes into the Arduino and cut it in half. I attached the red and black ...

View answer
How can I share one power supply between an arduino and servos?
2 votes

You need to figure out your total current requirements. Don't guess, figure it out. What is the peak current draw of the servos? of the other components? Add everything up. If the total is within 20% ...

View answer
Memory for inputs?
0 votes

The basic guidance when writing Arduino applications is to do a small amount of work on every pass through the loop function, then do a little bit more on the next pass. Check all your inputs, execute ...

View answer
How to wire and control a 16mm button with 2 legs using arduino?
Accepted answer
1 votes

A pushbutton is a pushbutton. It is a momentary switch. Since it has flexible wires, and needs a place to mount, you should probably wire it using a breadboard. That pushbutton looks like a panel ...

View answer
4 Pelteir Plate Water Bottle wired to Arduino Uno
1 votes

In a word, no. Laptop or desktop computer usually have USB ports, which put out like 10 watts of power for a "high current" USB port. That is not enough to do much heating or cooling. You ...

View answer
Ok to Connect 2.9V Stepper to 3.3V pin?
Accepted answer
3 votes

Motors draw a LOT of current compared to CMOS circuits. The 3.3V output on most Arduinos can only provide a very small amount of current. The Arduino Uno, for example, says it only provides a max of ...

View answer
Is there a 3.3V and 12V 18650 circuit?
3 votes

I would suggest using a 12V controller, and then adding a 3.3V switching regulator using the 12V supply. That would be 2 off-the shelf components and you're done.

View answer
Weird char on a 20X4 LCD
Accepted answer
2 votes

Your code to calculate the length of your Strings does not make sense. The String type is an object type. The addresses of your String objects will not match the length of the charcters in those ...

View answer
arduino mega buzzer output
2 votes

Any time you have the same sequence of code repeated over and over with slight variations, that is a "code smell" (an indication that you may be using the wrong approach.) You should use ...

View answer
I am making heated socks with adjustments by Nano and want to extend batterty life?
1 votes

With an electrical heating element powerful enough to warm your feet, the power to the heating element is hundreds or thousands of times greater than the power to your Arduino. Anything you do to ...

View answer
Connecting the cathode of a diode to the output of a multiplexer
Accepted answer
0 votes

The code you have posted should loop through the 8 possible MUX in/out pins (Y0...Y7) connecting one at a time to pin 3. Assuming your Y0 through Y7 are each connected to a pin on your "do ...

View answer
How can I execute two functions at the same time?
1 votes

The short answer is no. Delay causes your Arduino to stop dead in its tracks, and do NOTHING else until the specified time has passed. (You can still service interrupt service routines, but ignore ...

View answer
Turn on relay for amount of time by continuous input
1 votes

I would suggest having a buzzerPlaying state, an oldInput state, and a buzzerOffTime (unsigned long millis when you should turn the buzzer off. Ignore input if buzzerPlaying == true and just check the ...

View answer
Voltage from batteries in series operating on 3 ATTiny, 3 Buttons, and 3 Piezo buzzers
Accepted answer
1 votes

If you connect the AtTiny chips in parallel, they will all receive the full voltage from your battery. If you exceed the current output of your battery the voltage will droop. If the AtTiny chips need ...

View answer
If condition for switch not working as expected
1 votes

It's hard to tell which pins of the switch do what. Since you have your inputs set up as INPUT (instead of INPUT_PULLUP) you should have a resistor (10k Ω, say) tying those pins to ground. Then the ...

View answer
7 segment 4 digit not showing numbers 2,3 and 0
5 votes

It looks like you have the center segment and the top left vertical segment reversed. For the image you show, if you switched the on/off states of those 2 segments, you'd see 1230. I don't know if the ...

View answer
How can I operate the leds and neopixel strips together (at the same time)?
2 votes

This comes up ALL THE TIME. Don't use delay. Do a Google search on "arduino blinkwithoutdelay" and read one of the various write-ups on the subject. Here's a writeup that looks pretty good: ...

View answer
How can I control blinking of LED while in timer function?
0 votes

If read-counter is already incremented once a millisecond, use that to time your LED flashes: void wait_function() { timer_init(); bool LED_State = LOW while(read_counter()<30000) { //30 ...

View answer
Switch loops with SPDT switch
Accepted answer
1 votes

There is no need for a SPDT switch. A SPST works just as well. If you have a SPDT switch with 3 positions (pole 1 closed, open, pole 2 closed) you can use it to activate one pin or the other, or ...

View answer
detecting signal coming from another motion sensor that triggers camera's shutter
Accepted answer
0 votes

Almost all camera shutter cables are simple switches. They are an open circuit until you want to press the shutter, and then the switch closes. There is no voltage out of the shutter release, and so ...

View answer
Arduino fade to color change
0 votes

That code is a bit of a mess. It has some code that will never execute, as well as very confusing structure. If it were me I would throw away that code and start over with code that does some other ...

View answer
Question about button circuit
Accepted answer
0 votes

Sure. Take a multimeter and measure the resistance between the left-most pin and each of the other pins with all the different combinations of button pairs pressed. Write down the results. Then build ...

View answer
Connect 12V 38A battery to SIM800C GSM Module
0 votes

I looked up the SIM800C GSM Module, and it seems it requires a Lithium Ion or Lithium polymer battery, and has a built-in charging circuit in it. (It sounds like it uses the battery to manage peak ...

View answer
Connect RGB LED board to Arduino?
1 votes

Given that the pin is labeled VDD, it's likely that the LEDs are common anode. (You'd hook the VDD pin to a positive voltage, and then connect the other pins to ground in order to light them.) You ...

View answer
Connect 5V relay to ESP32 WROVER B board
0 votes

These "digital relay" modules are available in 3.3V and 5V versions. Simply buy one of the 3V models. Here is one, for example: https://www.dfrobot.com/product-1572.html

View answer
Turning on and off two set of LEDs with two tactile buttons
1 votes

Your code is rather hard to follow. Your code to read a button press doesn't make much sense: buttonPoll = digitalRead(button); //Detect the state of the button if (buttonPoll == 1) { ...

View answer
Dimming this ~30V led with PWM, what do I need?
2 votes

If you buy a 30V current-limiting power supply set to limit the current to 1.5A, you should be able to use it to power your LED light through a high power logic level MOSFET. You could control the ...

View answer
I'm looking for a way to emulate addressable LED strip using LED diodes in a custom arrangement
Accepted answer
2 votes

You can buy individually addressable LEDs like the ones in LED strips. If you are fairly new to electronics I would not try to build your own serial LED controller.

View answer
Is it possible to have long wire connections from an NodeMCU to a servo motor or button?
0 votes

A push button won't be a problem. That is a very simple change in resistance from open circuit to a few ohms. You just need a low enough resistance to force the voltage coming through weak internal ...

View answer
Powering a system using batteries
1 votes

Consider using a 12V sealed cell lead-acid battery. Those are fairly cheap and easy to find in a wide variety of capacities, and chargers are also simple and easy to find. A car battery would power ...

View answer
1
2 3 4 5
12