New answers tagged

0 votes

Can I cascade two different shift register?

Yes, daisy chaining shift registers that way is commonly done and one of the reasons that they are such popular. If this device gets bigger, you might have to add a buffer to the clock line and the ...
Marcus Müller's user avatar
1 vote

ADC interrupt flag in ATmega2560

The register address you write and read do not need to be related. It is not a generic data storage register where you always read back what you wrote. For example UART data register will send out ...
Justme's user avatar
  • 148k
0 votes

ADC interrupt flag in ATmega2560

You miss that those are special function registers. They aren't RAM cells. They aren't wired the same way as RAM cells. In this case, the internal D4 line is connected to the CLEAR input of the ADIF ...
Janka's user avatar
  • 14.3k
1 vote
Accepted

How would I decide on the best LED intensity for TCS3200 sensor

Basics Cool project! You should know about potentiometers So, if you should really go with resistors, you'd honestly just buy an adjustable resistor, a so-called potentiometer (the ones meant for &...
Marcus Müller's user avatar
0 votes

Arduino pro mini 3.3v where are the digital pins 0 and 1

According to the Schematic, PD0 is connected to the RXI net, and PD1 is connected to the TXO net: This is no different from the larger Arduino UNO where "Digital Pin" 0 and 1 are shared ...
Tom Carpenter's user avatar
1 vote

Why Serial output data not showing using CH9102F?

Upon analysis and evaluation of this issue, I found on the driver settings the following option that must be disabled, Disable ModemHandShake, for serial output to ...
Miguel Tomás's user avatar
1 vote

ATmega32U4 not appearing on Windows

You bought the U4RC variant. It has the HWBE fuse unprogrammed so the HWB pin cannot be used to enter USB bootloader. It will also use the internal RC oscillator instead of the external crystal.
Justme's user avatar
  • 148k
0 votes

Using an LT1357CN8 to amplify the signal of a 1.5 MHz frequency generator

It finally worked, thanks to the tip of @qrk. Eventhough I used the + and - pole of the laboratory power supply, this didn't create a positive and negative voltage. So I used two batteries in series, ...
ForzenikHD's user avatar
0 votes

Powering Arduino with external regulated 5V

AFAICT just feeding 5 volts into the +5V pin should be fine. I've done it before and haven't blown anything up yet. The caveat is that if two power supplies are connected at the same time, and have ...
dragoncoder047's user avatar
2 votes
Accepted

Programmer is not responding error

According to the linked forum thread, the board in question is actually an Arduino UNO R4 WiFi, which is not an AVR board, so the wrong board is selected. According to the guide at https://docs....
user85471's user avatar
  • 306
2 votes

What ESC matches criteria?

Just looking at the photo, I see three wires for the 3-phase motor (A, B, C), three for the PWM signal input (receiver) and two for the battery (+ and -). There are no Hall sensor inputs on this ESC; ...
Spehro Pefhany's user avatar
1 vote

What is the disadvantage of using a boost converter?

In addition to other answers... All switching power supplies are a concern for EMC. Significant care needs to be taken to avoid your PCB or other components becoming a radio broadcasting at the ...
Graham's user avatar
  • 6,150
5 votes

What is the disadvantage of using a boost converter?

For a voltage multiplier, the output voltage depends on the input voltage and losses.$$V_{out}=K{ }V_{in}-V_{\text{losses}}$$ For a boost converter, the output voltage is independent from the input ...
RussellH's user avatar
  • 15k
3 votes

What is the disadvantage of using a boost converter?

You can indeed use something like a DC-DC converter to obtain an appropriate voltage for some element, from a source of inappropriate voltage, but there are power and current considerations, which I'...
Simon Fitch's user avatar
  • 35.1k
7 votes
Accepted

What is the disadvantage of using a boost converter?

A boost converter can increase the output voltage however this is at the cost of needing more supply current. Ignoring losses Vin x Iin = Vout x Iout. So if you where say increasing 5V to 10V your ...
RoyC's user avatar
  • 10k
0 votes

Should two potentiometers be powered by same source or separate?

Irrelevant in this situation. All your components' tolerances/variances plus the output characteristics of your level measuring electrodes are so widely different that you will need separate functions ...
vir's user avatar
  • 18.4k
0 votes

HX711 loadcell amplifier with builtin mcu communication problem

The other answer said just: same problem,solder jumpers j3 and j4,remove soip8 mcu and work ok.... Based upon the information in the question and looking at the traces visible on the HX711 module a ...
Chester Gillon's user avatar
0 votes
Accepted

Using 7pin OLED 128x64 with iic

Connections D0 is the clock line and D1 is the data line, which is true for both SPI and I2C. Connections to the Arduino Uno (using hardware SPI): D0 => SCK D1 => MOSI CS => any IO pin DC =&...
Greenonline's user avatar
  • 2,109
3 votes

Thermistor misreading

Several issues: Hardware: ensure that the thermistor is connected as shown, nothing else is loading down the node, or other sources of interference, there is a bypass capacitor near the pin to supply ...
Tim Williams's user avatar
  • 33.9k
4 votes

Thermistor misreading

You have Vs = 5V, for starters. That would be correct for an Arduino with ADC using Vcc=5V as reference. The actual Espressif chip's ADC input has a range of about 0 to 1.1V (uncalibrated internal ...
Spehro Pefhany's user avatar
1 vote

Using 7pin OLED 128x64 with iic

As it says on the PCB, R3 and R4 need to be fitted (which they are) to allow 4-wire SPI operation. For I2C you’d need to change the resistor configuration. The markings on the top surface of the PCB ...
Frog's user avatar
  • 7,287
1 vote

Using an LT1357CN8 to amplify the signal of a 1.5 MHz frequency generator

the output of the AD9833 is only 0.6 V, which is far below the sought after 30 V for the transducers. That means you need a gain of 50. However, the gain-bandwidth-product of the LT1357CN8 is only 25 ...
Andy aka's user avatar
  • 457k
2 votes

How to use one USB-C port between 2x ESP32-S3 - Switched by toggle switch?

Have you considered using a cheap USB hub IC (like this one)? The USB bus is hub based and will mean that both downstream MCUs will be available to the host simultaneously on different addresses. No ...
AidenDawn's user avatar
1 vote
Accepted

Digital Potentiometer Not Responding in Custom PWM Circuit with Arduino

Thank you to everyone who took the time to provide insights and advice on my issue with the digital potentiometer in my circuit design. I'm pleased to report that I've resolved the problem—it turned ...
Sergio Piccione's user avatar
2 votes
Accepted

Arduino RPM Calculator Weird behavior

You have an 5V MCU. It expects a 5V signal. It won't see a 3V signal properly, and you are not allowed to give it more than 5V or you will damage the MCU with overvoltage. You also haven't connected ...
Justme's user avatar
  • 148k
2 votes

How does this debounce circuit (from Arduino Portenta Edge Control) works?

If the input is low for a long time for the RC circui to settle, then inverter output is high. So when the actual input goes high, the AND gate goes high, but soon the RC circuit settles and inverter ...
Justme's user avatar
  • 148k
4 votes
Accepted

How does this debounce circuit (from Arduino Portenta Edge Control) works?

This circuit is not switch de-bouncer. This is actually a pulse generator intended to generate a short pulse based on the IRQ_C_CH2's input low to high transition irrespective of how long that ...
MOSFET's user avatar
  • 3,040
2 votes

How does this debounce circuit (from Arduino Portenta Edge Control) works?

It's an edge detector. When the input goes high, the output of the AND gate will go high and stay high until C35 charges enough to make the inverter's output go low. The Schmitt trigger is there to ...
vir's user avatar
  • 18.4k
0 votes

Dimming for high power led

An IRF540 has a threshold voltage which ranges from 2.0 V to 4.0 V. If your Arduino Uno drives the gate to 5 V, and the threshold is 4.0 V, the MOSFET will conduct, but will still have considerable ...
Math Keeps Me Busy's user avatar
0 votes

Dimming for high power led

Your Arduino doesn't provide enough juice to properly switch the MOSFET. You either need a gate driver for the transistor. Or you can make your own with some cheap, non-critical parts. Try this: ...
MOSFET's user avatar
  • 3,040
2 votes
Accepted

Dimming for high power led

You can't dim a constant-current LED driver in this way as the driver will simply increase its output voltage when the MOSFET disconnects the LED, thereby sending the FET into avalanche breakdown, ...
Jonathan S.'s user avatar
  • 18.7k
2 votes
Accepted

Transistor as a switch with square wave input

This circuit may serve your purposes simulate this circuit – Schematic created using CircuitLab If the CNTRL input is below 4.3 V, the LED will be on. If the CNTRL input is above 4.3 V, the LED ...
Math Keeps Me Busy's user avatar
1 vote
Accepted

Running TMC2240 Stepper Motor Driver with Arduino?

I think I figured it out; At first I tried messing around with the SPI registers some more, and while I was able to view them and change some of them, I wasn't able to get the motor to run, even with ...
Runsva's user avatar
  • 177
0 votes

How to read switch matrix with 74HC595

In Arduino UNO the processor and all the I/O runs at 5V, connect the 74HC595 to the 5V pin of the Arduino instead of to the 3.3V pin.
Jasen  Слава Україні's user avatar
0 votes
Accepted

How to read switch matrix with 74HC595

The error/warning message is clear. You have connnected a 5V data pin to a IC powered from 3.3V supply. You can't do that, it is wrong and damages either the 5V chip providing the output or the 3.3V ...
Justme's user avatar
  • 148k
2 votes

How is the sweep of duty cycle handled in common microcontrollers?

How do microcontrollers such as Arduino or PIC ensure that the duty cycle is not changed twice within a certain period? They don't. As Justme said, Either the PWM unit is dumb and you write to the ...
bobflux's user avatar
  • 77.4k
0 votes

How is the sweep of duty cycle handled in common microcontrollers?

There is no one method. It depends on the microcontroller. In some MCUs you write to the compare register that the counter directly uses. Therefore it means that it is possible for the MCU to write a ...
Justme's user avatar
  • 148k
0 votes

How is the sweep of duty cycle handled in common microcontrollers?

Take a short look into the datasheet from the ATMEGA328P, the controller from the arduino uno: It describes on page 131 the timer register where the counter and compare values are stored. Note that ...
Hans mitm Flammenwerfer's user avatar
2 votes

An aspiring electriconic engineering hobbyist -- How should I go about this?

I second the opinion about getting Art of Electronics. In addition, you also need something like C for Dummies. Electronics no longer exists separately from the firmware required to drive digital ...
Dirk Bruere's user avatar
  • 13.7k
4 votes

An aspiring electriconic engineering hobbyist -- How should I go about this?

Recommending "The Art Of Electronics" is a bit opinion based and my opinion is it's an excellent book and you should get it. Why you need an understanding of the analog basics is simple: ...
bobflux's user avatar
  • 77.4k
0 votes

An aspiring electriconic engineering hobbyist -- How should I go about this?

You need to decide whether your interests primarily lie in analog or digital electronics; if your focus is in integrating chips with microcontrollers, then the Horowitz and Hill book won't be much use....
jayben's user avatar
  • 1,425
3 votes

An aspiring electriconic engineering hobbyist -- How should I go about this?

It's a pretty good question, there are lots of possible answers, and I hope nobody takes exception as it could be seen as "opinion based". My suggestion would be to start by investing in ...
danmcb's user avatar
  • 7,052
0 votes

Flash memory corruption possible reasons?

Yes, either of those two could be the reason. 5V will exceed the absolute maximum limits on a 3.6V rated device, so it may be damaged. Reading could corrupt the flash, it is just unlikely, unless the ...
Justme's user avatar
  • 148k
2 votes

How supply an outdoor string light with 10 LED bulbs 0.8W?

My experience with inexpensive solar-powered night lights is that the photovoltaic array and the battery are too small to power the light through a whole night. This invariably leads to cycling the ...
DrMoishe Pippik's user avatar
5 votes

IRF630N MOSFET burns after a couple of times in use

You didn't mention what type of Arduino it is, but the most likely cases are 3.3 or 5.0V output, which are not nearly enough to activate the IRF630. Consider at least an IRL630, https://www.vishay....
Tim Williams's user avatar
  • 33.9k
2 votes

IRF630N MOSFET burns after a couple of times in use

how can Mosfet broken without any sign of heat? It could be: - inductive load back-emf over-volting the MOSFET when it deactivates (speakers have inductance and so does wiring) under-driven gate ...
Andy aka's user avatar
  • 457k
0 votes

How to power an audio-level meter / VU meter in a midi-controller project?

You need a what's called a boost convertor. You are looking for a module that will take in 5V and output 9V nominal. What happens is the Arduino get's powered directly from the USB power GND and 5V+ ...
MOSFET's user avatar
  • 3,040
1 vote
Accepted

SSD1306 128x32 OLED change I2C address

You could try removing one of the resistors at a time to see if the address changes. The problem is that if one of those resistors does set the SA0 pin to low or high, removing the resistor leaves the ...
Justme's user avatar
  • 148k

Top 50 recent answers are included