1
vote
2answers
169 views

What's the deal with a bootloader?

I am planning to buy an ATmega328 chip from Atmel, place it in my Arduino board, program it, detach it later, then solder onto a PCB. Can I just buy the chip and program it on the Arduino board, or ...
0
votes
0answers
4 views

Computer not detecting my Arduino MEGA 2560 R3 [migrated]

I've tried different USB cables, computers, ports and none of them can detect my possibly bricked Mega 2560 R3. Nothing shows up at all in the Device Manager, not even "Unknown Device". When the ...
0
votes
1answer
100 views

Can I loop two GPIO pins on an Arduino/ATmega328?

I'm playing around with some wheel encoder sensors and an Arduino. The sensor needs a bit of debouncing, so that got me wondering how the microcontroller core is seeing the input. That is, what does ...
0
votes
0answers
68 views

One-shot sound button/trigger for Arduino Sound Player

I've succeeded in making a simple Arduino ATMega328 sound player on my breadboard following this guide. . . http://highlowtech.org/?p=1963 http://playground.arduino.cc/Code/PCMAudio But, here's my ...
4
votes
1answer
87 views

AVR ATMega I/O pin overcurrent protection

I want protect I/O pin against overcurrent to make circuit more robust. Atmel's AVR040: EMC Design Considerations discusses internal overvoltage protection in General I/O Pin Protection paragraph. But ...
0
votes
1answer
122 views

Current draw at digital output pin differences in two equally coded segments -probable cause?

I measured the current output of an Arduino Duemilanove (with an ATmega168) in two cases and found out that the currents differ strongly. The following code creates an output of 72mA at pin 13 ...
0
votes
3answers
414 views

Can I do without I²C pull-up resistors?

I am trying to produce a small circuit, and I am looking to reduce the part count. I recently added an I²C EEPROM which is used once when the system boots up, along with this EEPROM I added two ...
1
vote
2answers
87 views

Is the value of XTAL load capacitors for ATmega328p @ 16MHz critical?

I'm going to try to assemble an MCU-based circuit using an ATmega328P-PU (Arduino UNO stripped down to essential parts as in this tutorial). I've skimmed over a lot of posts on EE.SE about load ...
2
votes
2answers
180 views

ATmega328P running on CR2032 has issues with timing/sleep code as voltage depreciates over time

I have an ATmega328P running at 16 Mhz on CR2032 with a few sensors and radio for about a week now. It started out at 3+ Volts and is currently measuring at 2.96 Volts. At present, I am not using ...
0
votes
3answers
76 views

Olimex/ATMega328 Reading from UART and sending to USB

I'm getting frustrated with my electronic knowledge, because I want to do this simple thing: Olimex 328/ATMega328 reads data from UART (Olimex MOD-PULSE or whatever) and forwards it to the USB Port ...
0
votes
2answers
95 views

Wifi on Nano v3.0 ATmega328P-20AU Board

I am seeking a nano version of raspberry pi. For my application, I just need 2 two usb ports, 1 for a wifi module and the second to power the board via a 5v usb. I dont need the hdmi inputs in the pi. ...
0
votes
1answer
172 views

Controlling a brushless DC motor with an Arduino--*without ESC*

I want to build an ESC using an ATmega328 (used in Arduino Uno). This is the Brushless DC Motor I've chosen and this is the MOSFET I've chosen to gate the power supply. It will be used to drive a ...
1
vote
0answers
27 views

Using a transistor as a switch [duplicate]

I am attaching a motor to a atmega32 chip. I want to build an H-birdge but before doing that, I want to control the motor using the chip. I bought few NPN Transistors from RadioShack. I have 5V ...
0
votes
1answer
49 views

Arduino Mega driving 5V to 12 V

I am working on a project which involves using an Arduino Mega, and I am trying to use an NMOSFET (BUZ101S) and an NPN BJT (2N3904) to drive the 5V output from the MCU back and forth between 0V and ...
1
vote
0answers
67 views

Atmega328 NFC cannot wake

I'm trying to communicate my 328 with DFRobot's NFC Module a while now, but I cannot wake the card. Below is my code, where I use DF's instructions on how to make the card work. I write what card ...
1
vote
2answers
190 views

Speed problems in homemade RS232-to-TTL converter board

I'm still trying to debug this RS232-to-TTL converter board that I've made, shown below. Now I think I've narrowed down the problem to speed: it works fine at 57,600 baud; but it inserts some ...
2
votes
1answer
157 views

Arduino as AVR Programmer with Avrdude

My objective is to program a single ATmega328P sitting on a breadboard. Due to my location and cash at hand I cannot acquire a AVR ICSP programmer so instead (through research) I found I can use a ...
-3
votes
2answers
488 views

Max voltage for Arduino ATmega328 VCC pin (not raw!)

I am thinking about getting both the Pro Mini 3.3V and the 5V boards. Example (but I may end up going generic, not sure yet) 3.3v: https://www.sparkfun.com/products/11114 5v: ...
5
votes
2answers
600 views

Problems with homemade RS232-to-TTL converter board based on TI's MAX232

I've designed an RS232-to-TTL converter board based on TI's MAX232 IC that I plan to use to program a few custom Arduino boards that I have. However, I'm having trouble with the board and I'm hoping ...
-2
votes
1answer
141 views

about progame of pt100 tempertaure sensor with arduino atmega328 [closed]

Respected sir, I am trying for coding of pt100 with arduino atmega328. so please help me to slove this problem.
1
vote
1answer
529 views

Arduino clock speed prescalers at start without fuses

I know it's possible to change the clock prescaler at runtime. But is there a way to set the prescaler that is used at boot on an ATMega328? I'm aware of the fuses, but those are pretty permanent. I ...
1
vote
1answer
225 views

Watchdog timer not being called in sleep mode

On an ATMega328p, I'm trying to setup a program that counts 1 second intervals via the watchdog timer, even when the chip is in sleep mode. A button interrupt puts the chip into sleep mode. The ...
1
vote
0answers
217 views

PIR motion detector and ATmega8

I am trying to use motion detector with my Atmega8. I have this part which produces LOW an the ALARM pin when it senses motion. I tried to set 1 output pin as ADC on the ATmega and see when it ...
1
vote
0answers
106 views

Measuring a 2 cell 18650 battery from ATMega328P

I'm using an ATMega 328P (which will be running arduino code) as part of a project (a bicycle lighting system). It runs off of 2 Li-Ion cells, which both are step-up-regulated to 12V for the lighting, ...
0
votes
2answers
126 views

Xbee-Arduino serial input (outliers problem)

I have an Xbee configured as receiver and Arduino (standalone w/ atmega328p chip) connected together. The RSSI pin of the Xbee is connected to one of the Arduino Board PWM pin. I used the PulseIn to ...
2
votes
4answers
155 views

Arduino as ISP : IC swapping

I usually use my arduino as an ISP. But I'm wondering something. Let's say I want to program the blink led code to my ATMega328 with the bootloader already in it. Can I just program it in the ...
1
vote
2answers
152 views

Why do I need PWMs on Arduino but not on ATMega16 or PIC16 to drive the stepper motors with L293d?

Seems to me , I'm lacking some concepts here. From what I know is that PWMs pins are essential for driving the motors (as they can drive the motors at different speed with diferent duty cycle). So ...
0
votes
0answers
69 views

Which would be the best option for driving the 3/4 axis stepper motor for 3D printers?

I have researched a bit over google and reprep websites and come across different circuits/methods to drive the stepper motors. Being a student only , I have budget issues and I want it to be less ...
0
votes
4answers
703 views

Run an atmega328 only using an 16Mhz crystal without caps

Can you run an ATmega328 only using an 16Mhz crystal, so without the capacitors?
2
votes
1answer
246 views

Correct USB to RS 3.3 / 5.0 logic level cable

I am starting with electronics / arduinos / atmegas here. For a couple of recent days I've played with USBasp programmer, atmega328P MCU as well as with 7805 and LM317 voltage regulators. Now my next ...
0
votes
2answers
181 views

Arduino pin 10 for PWM whilst SPI slave

I need to use my Arduino Uno (ATmega328) as an SPI slave and have still have access to at least 5 PWM pins. The only issue is that this means I will have to use pin 10 (Slave select / PB2) as the ...
1
vote
0answers
349 views

Avrdude refuses to flash ATmega328p due to wrong signature

I have a bunch of defunct arduino boards that I'm trying to restore - Arduino Uno with ATmega328p chips. They do not respond to the usual flashing commands, so I'm trying to flash via the arduino ICSP ...
2
votes
1answer
166 views

AVR Interrupt “Interference”

I'm currently working on receiving signals from an RC remote. I have used pins A8 to A15 on my Arduino Mega board. The ports and interrupts are setup with the help of this code: ...
0
votes
2answers
141 views

ATmega168 circuit not working without Arduino regulator?

I am having this very strange issue with my stepper motor driver circuit which uses an Atmega168 an L293 h bridge that appears to not want to function without an Arduino (Uno) connected to 3V3 and ...
1
vote
1answer
122 views

TMP36 reading not steady if circuit has more elements

I have a TMP36 connected to an analog pin of an Atmega328p-pu on a breadboard (with Arduino bootloader), everything is powered w/+5V from an Arduino Uno R3 (which is used as a programmer). The ...
0
votes
2answers
225 views

Mislabelled ATmega328-PU

Today I was burning bootloaders on a fresh batch of four ATmega328-PU (the slightly cheaper non-picopower version, not to be confused with the ATmega328P-PU), and was surprised with the following ...
1
vote
2answers
335 views

Can ATmega88 be run at 3.3V with internal clock?

I want to use a few ATmega88s with Arduino bootloaders to act as I2C stepper drivers and temperature controllers that will interface with a Raspberry Pi. The thing is just that it seems the RPi ...
2
votes
1answer
251 views

Can I use serial port and RFID reader on Arduino Pro Mini?

I have Arduino Pro Mini, HC-06 bluetooth module, and Mifare RC522 RFID reader. Bluetooth module connects to serial port, and RFID connects to SDA, SCK, MOSI, MISO, ground, reset, and 3.3V pins. I want ...
1
vote
1answer
127 views

In Arduino Mega, bootloader does not work when watchdog is disabled

In Arduino Mega (ATMEGA2560), when I enabled the interrupts, the watchdog got overflown, so the chip restarted each time the program counter achieved the interrupt enabling line. So I tried to ...
0
votes
0answers
177 views

Arduino Atmega8noxtal on breadborad uploading sketch not in sync error

I have built Arduino with Atmega8A PU on Vero board. My problem is first when I Upload the firmware with my parallel port programmer into ATmega8 chip and then I try to upload sketch of arduino blink ...
2
votes
1answer
400 views

v-usb with default arduino bootloader on ATMega328

I've been trying to figure out how to use v-usb on an ATMega328P but pretty much all the tutorials I've found are for ATTiny or use the ATMega328P but use a modified bootloader. I don't actually care ...
1
vote
2answers
509 views

Arduino ATMega32u4 USB pinout

Really quick question here - is it possible to use the GND/5V from the USB cable to power the Arduino through the USB connector but use the RX/TX pins to a motherboard's USB pin headers (D+/D-)? ...
2
votes
1answer
2k views

16-bit timer of ATMega: How to calculate timer count?

I try to use the 16-bit timer of ATMega on each midi clock tick. A beat has 24 midi clock ticks. So e.g. 60 beats per minute = 1 beat per second = 24 ticks per second. How can I set the timer for x ...
0
votes
1answer
479 views

UART give garbage values after waking up from sleep(arduino)

I've made a arduino clone which has a PIR sensor, I intend to run it on 2AA, I'm using LT1302 boost converter, because the PIR sensor works at 5V, if motion is detected the message will be sent to my ...
2
votes
1answer
121 views

ATmega (Arduino) programming in 3V system

I want to use a ATmega (168 or 328) with a 3V button cell. Which isn't the problem but at the moment I think about how to make it pogrammable in the target board. The board will have some peripheral ...
3
votes
2answers
844 views

DIP Alternative To ATMEGA16U2-MU(R)

I'm working on constructing a do-it-yourself version of the Arduino Uno on a breadboard and then protoboard. According to the Eagle files available for download here, they use an ATMEGA16U2-MU(R) MCU ...
4
votes
6answers
474 views

Exploiting stack buffer overflows on an Arduino

Is it possible exploit stack buffer overflows on an Arduino board?
1
vote
0answers
115 views

ArduinoISP not responding

So I'm trying to upload sketches to an ATmega328 chip via my Arduino as an ISP. I've successfully been able to burn the bootloader, but when I try to upload sketches, I'm presented with this error. ...
2
votes
2answers
240 views

just had an Arduino UNO bootloader replacement. Computer still won't recognize it

Before I get any thumb-downs, I would like to mention that I have read all the questions posted regarding the issue I have, but none of them had a working answer to my problem. Here's my problem: I ...
1
vote
1answer
3k views

atmega32u4 vs atmega328 [closed]

How am I limited (or not limited) by using ATMega32u4 instead of ATMega328 with my Arduino? I want my sketch to perform a simple "echo" of a code it receives, does ATMega32u4 allow me to do this?