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.
0
votes
0answers
12 views
How to use UsbKeyboard.h to send string instead of keystroke - Atmega328p
I am using Arduino nano Atmega328p board to emulate a keyboard. It uses UsbKeyboard.h and some additional components for usb connection.
http://www.practicalarduino.com/projects/virtual-usb-keyboard
....
0
votes
0answers
25 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
1answer
39 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
32 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
24 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
172 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
24 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
...
3
votes
1answer
133 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
51 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
971 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 ...
0
votes
0answers
23 views
Cannot upload program to my board [duplicate]
When uploading my program to ATmega328p, the board is powered up but IDE shows:
avrdude: stk500_recv() :programmer is not responding
and
avrdude: stk500_geysync () attempt 1of 10: not in sync:...
1
vote
0answers
72 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
38 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
119 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
65 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
93 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
61 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
28 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
63 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
35 views
Can I connect a signal generated with the Timer/Counter, with an analog pin in the same board?
my situation is the following: I 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 ...
0
votes
1answer
73 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
26 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
64 views
How To Generate Preamble bits using Arduino Uno
How to transmit 125Khz signal using Arduino Uno. It should have a carrier burst,seperation bit,Preamble bits and manchester encoding pattern as attached in the picture. How do I program this in ...
0
votes
0answers
51 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
31 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
40 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
34 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
91 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 (...
0
votes
2answers
788 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
46 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
55 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
32 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
76 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
192 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
139 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
41 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 ...
0
votes
1answer
91 views
Porting ATMega8 AVR based program to Intel Curie Processor
I'm currently trying to port a program called 'ArduinoUSBLinker' to work on my Arduino 101 (which has an Intel Curie CPU instead of the standard ATMega CPU).
The program is used to flash ESCs without ...
0
votes
1answer
58 views
What happens if I draw too much current from ATMEGA IO pin?
I revisited an older device that I made and discovered, that I had an 8 Ohm speaker connected directly to ground and an IO pin of an Atmega328P. According to my calculation that means that the pin ...
0
votes
0answers
84 views
Unable to reset arduino with RESET pin
I am using a custom built arduino UNO for some personal projects. I am using a custom optiboot bootloader given by Nick in this post. This was done to prevent the three LED flashes on digital pin 13.
...
-1
votes
2answers
49 views
Can you send binary data to arduino AtMega328p? [closed]
I was wondering if its possible to send binary data to an Atmega328p. I don't want to send Arduino code or C code just binary. Is it possible to programme the ATmega328p using binary and how?
0
votes
0answers
28 views
Bootloading atmega328p via arduino board not working
I am beginner to electronics and arduino programming, now I am trying to make a home made Arduino based on some youtube videos, I have completed the powering
section and arranged the components as ...
0
votes
1answer
146 views
My Arduino is unable to upload any program, nor is it resetting. Need help
Whenever my Arduino is connected to any Laptop, it keeps it's LED ON steadily. And, whenever I try to upload my program, the Arduino IDE says 'Problem uploading to board'.
I tried uploading programs ...
0
votes
1answer
125 views
How to sleep a whole circuit?
I have just completed my first project, a clone of the Simon game of the eighties. The main parts of the circuit are an ATMega328, a 1602 2x16 LCD, and a small joystick.
It is powered directly from ...
-1
votes
1answer
79 views
My Arduino UNO turns LED ON forever when I connect it to my Laptop
My Arduino UNO Board keeps the LED light turned on forever whenever I connect it to my PC. And, when I try to upload even a sample sketch, it says avrdude: stk500_recv(): programmer is not responding.
...
0
votes
0answers
69 views
Controlling brushless gimbal motor
I'm using a standard board for control this type of motor (SimpleBGC), this board uses an atmeg328p e some brushless drivers. I'm writing a simple code for turn left/right with some velocity, but i'm ...
0
votes
0answers
66 views
How to use the timer to generate a pulse wave of the specified frequency and duty cycle
So we have the tone library, which produces a 50% duty cycle square wave of varying frequency, and analogWrite() which produces a fixed frequency wave of varying duty cycle. Is there any way to ...
0
votes
1answer
644 views
Using Arduino UNO to retrieve ATMega328P-PU chip signature
Good day.
I have successfully built and tested an Arduino-on-breadboard about 2 days ago.
The device is rather straight forward, I have added a voltage divider and an LED to indicate power.
The ...