The ATMega328 is the chip that is the heart of the Arduino Uno. It is popular also as a chip to use to create your own board. Since it is available in the through hole version, it can be placed on a breadboard easily for circuits.
-1
votes
0answers
15 views
MPU6050 not working with Arduino UNO R3
I am trying to build myself a Self Balancing Robot using Arduino UNO R3, MPU 6050 GY-521 and L293D Motor Driver Circuit. I am also using I2Cdevlib for MPU Values. Initially in order to check whether ...
-1
votes
1answer
49 views
GPU chip for Arduino? [closed]
Is there any GPU chip that I can buy or salvage to use with my Arduino? I would like to have a chip that has the same power as the VideoCore Series, but easy to use and manage (Easy soldering to a ...
0
votes
0answers
26 views
Minimal ATmega328p Ethernet Configuration
What would be minimal schematic for ATMega328P in order to have communication over ethernet? So I'm not asking about attaching existing shields to existing Arduino board, but just for bare minimum of ...
0
votes
0answers
41 views
Understanding USB communication with Arduino
I want to interact with my Atmel micro-controller and some device via USB, where my custom board will behave as USB Host.
Basically from my understanding USB basically have 4 pins:
Vcc
D-
D+
Gnd
...
1
vote
1answer
55 views
Volatile variable not updating from timer ISR
I know this is a problem that has come up many times but I can't seem to get this code fragment to update the count variable on an ATMEGA328P. I am using an Arduino Uno as a development board, with ...
0
votes
1answer
78 views
ESP8266 Serial Communication with ATMega328P
I am isolating the ATMega328P from the Arduino Uno. I have used it for many other projects, so it does work as intended. Also, I have used my ESP8266-01 for other projects and works great (including ...
0
votes
3answers
51 views
Digital read on voltages between 1 and 31 volts?
Hello Arduino comunity!
I am working on a circuit that uses an Arduino Mini to read values from certain points of a boost/buck converter circuit to determine things like input state, output state, ...
0
votes
2answers
49 views
How to flash an ATmega directly without a dedicated flashing device?
An ATmega microcontroller can be flashed by a C compiler and a USB dedicated device (ISP).
I tried to flash the program into the microcontroller by saving the machine code to a MicroSD card that I ...
0
votes
0answers
14 views
Should SJ1 be open or closed for Arduino Pro Mini 3.3v / 8Mhz?
Please excuse my ignorance, could someone advise me real quick...
If I were to try and build an Arduino compatible circuit based on the Pro Mini schematic for 3.3v / 8Mhz, should SJ1 be open or ...
0
votes
2answers
27 views
Arduino Nano 3.0 and Arduino Uno Benchmarks [closed]
What are the benchmarks (MIPS) of an Arduino Uno (ATmega32P) and Arduino Nano 3.0 (Atmega328) @ 1.6MHz?
0
votes
2answers
40 views
Programming an ATmega328P by holding it on an Uno's
I was looking at this Uno clone, the Nanino and then happened to read this article on "Manhattan style" circuit design. Anyway, that got me thinking...
If I borrowed someone's Arduino Uno, could I ...
-1
votes
1answer
20 views
Motor shield for Arduino Nano ATmega328
I am looking for a cheap and not so space consuming motor shield for my Arduino Nano ATmega328. I would like to charge the whole thing with a 9V battery. The shield must have at least 2.1A of output ...
0
votes
0answers
75 views
Why is IF statement staying true even when argument inside is false?
Once the third IF statement in my program goes true it will remain true for several iterations, even when the temp has fallen below the set variable, which should make the statement false. But it ...
1
vote
3answers
54 views
Do we need to burn bootloader in new Atmega328p before uploading the arduino code
I have an arduino code which is working fine. Now I am planning to make a PCB out of it. But I do not want to use the complete Arduino board. I just want to use the Atmega328p microcontroller. So my ...
0
votes
0answers
37 views
Parallel programming Arduino Nano fails - Device signature 0x60afc1
I created a "parallel programmer" DB25 to communicate with my Arduino Nano from this guide:
https://www.arduino.cc/en/Hacking/ParallelProgrammer?from=Main.ParallelProgrammer
I have an old computer ...
2
votes
2answers
79 views
Arduino Uno Digital to Analog Converter
I'm trying to read in an analog signal (a heartbeat) to pin A0 on the Arduino Uno and then convert it to digital. I'm hoping to use the digital signal to make an LED light up every time the voltage of ...
3
votes
1answer
39 views
Using Arduino with Assembly on MacOS
I'm trying to use an Arduino UNO board with Assembly on MacOS, but I couldn't find any documentation about it.
How can I compile and upload Assembly files to the Arduino with MacOS?
1
vote
0answers
29 views
Board.txt configuration change Atmega328p
Hi I am trying to configure an Atmega328p to run with an 8MHz oscillator in part to reduce power consumption and so I don't need to have level shifters all over my project.
I have changed the board....
2
votes
3answers
237 views
Atmega328P 8MHz External Clock
Has anyone experience configuring the Atmega328P to work with an 8Mhz external clock?
I want to reduce the power consumption of the device. If I just connect an 8MHz external quartz oscillator then ...
0
votes
0answers
59 views
Arduino Uno Reading Fuses
I am trying to read the fuse values for the Arduino Uno, but keep getting the following results returned back to me:
enter code hereavrdude: Version 6.0.1, compiled on Dec 16 2013 at 17:26:24
...
4
votes
1answer
286 views
How do interrupts work on the Arduino Uno and similar boards?
Please explain how interrupts work on the Arduino Uno and related boards using the ATmega328P processor. Boards such as the:
Uno
Mini
Nano
Pro Mini
Lilypad
In particular please discuss:
What to use ...
1
vote
1answer
97 views
Wake Arduino (Atmega328) from sleep with ADXL345 interrupt
So I'm relatively new to microcontrollers, and I'm having a problem implementing a feature I want for a project.
I've learned about putting an Atmega328P to sleep from this tutorial. I'm using an ...
8
votes
2answers
1k views
very lightweight low power microcontroller with memory?
I have build a couple of projects using arduino. For a new project I want to log skin surface temperature vs. time (just perhaps a few times per day) and possibly other easy to obtain info such as ...
1
vote
0answers
73 views
ATMega328 not able to fully switch coreless motor on
I'm having trouble regarding motor control in a project I'm working on.
It uses an ATMega328 DIP package on a PCB. The motors I'm using are small coreless motors and I'm trying to control them using ...
1
vote
1answer
61 views
Timer2 “Clear OC2B on Compare Match” not working as expected in CTC mode
This is a follow up to my previous question.
I have Timer2 in CTC mode, with TOP=OCR2A set to 150 (with a prescaler of 8, giving a 75us timing interval).
The datasheet states that setting COM2B1 to ...
1
vote
4answers
166 views
Arduino 16 MHz with only 3.3V?
Now I have these Arduino Pro Mini from Sparkfun. They are the latest version that I know (yeah, it's the one that have those horrible misaligned pins). Now they are designed around the ATmega328P and ...
1
vote
2answers
71 views
Can a timer be used in both CTC and (fast) PWM mode simultaneously?
I would like to generate a sequence of pulses of varying lengths in the range of 0-100us, so that from the start of one pulse to the start of the next there is a delay of 100us. I have set up timer0 ...
1
vote
3answers
103 views
AC meter By ADC timer interrupt from Nick Gammon
I want to read ADC from the pin A0 and A1. I have written in this code, however.
I took this code came from Nick Gammon
Thank You
///////////////////////////////////////////////////////////////////...
3
votes
2answers
75 views
Using Arduino as ISP to burn sketch directly to ATmega328 without first installing a bootloader on the ATmega328
Is it possible to take a bare ATmega328 chip, and with an Arduino as ISP, burn a sketch directly to the chip (e.g. not needing a bootloader), or is the bootloader required to run Arduino sketches? I ...
1
vote
1answer
42 views
Use Arduino Yun Shield as ISP for bootloaded ATMega328-PU
My question is how do I replace the Aarduino Uuno board in this circuit:
...With an Arduino Yun shield? I can setup the hardware - ICSP configuration is easy enough - but how do I go about using the ...
2
votes
2answers
82 views
Arduino mini pro as ISP for Atmega329P-PU serial monitor failing
After trying a lot of tutorials and manuals around the web including at least 20 solutions here on StackExchange, I don't know what to try anymore.
My goal is to write a message in the serial monitor ...
0
votes
1answer
39 views
Can I connect a signal generated with the Timer/Counter, with an analog pin in the same board?
I have been learning how to program the timer/counter modules of the Arduino using registers (more specifically a quadrature encoder simulator).
The problem is that it is not working as a I expected. ...
0
votes
1answer
105 views
Error while installing bootloader ATmega328
I'm trying to install a bootloader on my ATmega328P-PU. I'm trying to install it from Arduino Uno (not original). I can install all sketches. After I click "Burn bootloader" I get the following error:
...
-1
votes
1answer
64 views
DIY Arduino technical difficulties
I followed this ArduinoToBreadboard and I just added a 5V regulator just to be on the safe side.
So my questions are:
When I connect a Nokia LCD 5110 to the DIY arduino, nothing really happens but ...
0
votes
1answer
34 views
How can I determine how many bytes an I2C master read from my Arduino acting as I2C slave?
I have an Atmega328 programmed using the Arduino software and libraries (but is standalone on on a board in the TSOP package) without bootloader and with ISP programming). I am using the Wire library ...
0
votes
0answers
92 views
SOLVED - Different behaviour during bootloader burning
I managed to solve this problem (in my case), but feel free to comment or to provide different answers. I also included solution that works for me at the end of this post.
I have ATMega328p hooked up ...
2
votes
0answers
42 views
Issues graduating to AVR-C
I'm trying to make the transition from coding in the arduino language to AVR-C, but I'm having some issues with my microcontrollers.
I don't have an ISP, so I'm using one of my Arudino UNOs with the ...
-2
votes
1answer
33 views
can i unplug my Arduino project when i'm done installing the libraries and it still work the way it did when it is plugged in [closed]
can i unplug my Arduino project when i'm done installing the libraries and it still work the way it did when it is plugged in
0
votes
0answers
44 views
Atmega328P and Arduino Studio and Pololu AVR - not working
I have standalone ATMega328p and I'm using external 16MHz oscillator, I hooked up and I triple checked my connections for Pololu AVR programmer and I make sure that I select a proper programmer \ ...
0
votes
1answer
46 views
Atmega328p - PCB ISP pins for bootloader and sketch upload
I want to design my PCB with Atmega328p chip on it and I want to be able to burn Bootloader and sketch after that while everything is soldered on the PCB. So my question is, what would be the best way ...
0
votes
2answers
137 views
Using two software serial - two UART
I have ATMega328p chip, and I have HC-06 on pin A5, A4 (RX, TX) and I have another device on pin 10, 9 (RX,TX).
I want to be able to send some command on BT via Bluetooth Terminal and pass raw (...
1
vote
2answers
1k views
SIM808 module GSM working fine,GPS not working (No GPS ready message on power on)
I powered on my SIM808 module. It showed me following output
RDY
+CFUN: 1
+CPIN: READY
Call Ready
SMS Ready
It supposed to show "GPS ready also"
I sent AT command and return ok.
but AT+CGPSPWR=? ...
4
votes
1answer
43 views
Cheapest way to change digital output source
Powering at 5 volts, atmega328 output ~4.7 volts. I need to output between 12 and 24 volts @ 2 amp. I'm currently using relay but they are costly. Is there a way to do it with transistors or any thing ...
0
votes
1answer
50 views
Atmega328p clock and safe operation zone
im not used to write in english but i hope you guys can understand. I have some doubts about using the arduino pro mini 3v3@8Mhz
I know its possible to change the clock to 1 MHz with the fuses easily ...
0
votes
2answers
71 views
Relay switching problem with ATmega328P + 10 relays
I am trying to switch ON/OFF 10 relays connected to ATmega328P via Bluetooth HC-06 module. The problem I am facing is that when I try to Switch ON more than 3-4 relays, some of the previously ON ...
0
votes
1answer
34 views
Is it possible to reprogram an atMega328 chip inside of a pcb?
I have already soldered the atMega chip with instructions onto the perfboard, and I may need to make changes to it. Is it possible to reprogram it without taking it out of the PCB?
1
vote
1answer
84 views
Unable to replicate Arduino code into ATmega8 code
I am trying to replicate an LTC Audio Decoder code from Arduino Uno into AVR ATmega8 which I got from here.
My Arduino Uno code is working great. Here is my Arduino Uno code:
#define one_time_max ...
0
votes
1answer
251 views
Standalone Arduino with ATMEGA328P / Serial working, but serial programming not (only once after buning bootloader)
For my master thesis I've designed a board with an ATMEGA328P-AU as micro controller.
As I want to use some libraries and I like the simplicity, I want to use "Arduino" to program it.
Everything ...
0
votes
1answer
198 views
Arduino crashing and rebooting
I have recently written a program which is supposed to change the duty-cycle to keep the feedback voltage measured on A0, A1 constant. The problem is that the Arduino will start crashing at pretty ...
0
votes
0answers
43 views
Arduino on a breadboard, single bootloader/uploader circuit possible?
I would like to know if my intuition is correct that two circuits can be tied to the same ATMega, provided they don't use the same pins. I would like to make a single shield with a dip socket which ...