3
votes
1answer
64 views

PIR sensor triggered by itself when using timer, works without timer

TL;DR A PIR sensor is triggered by itself when using a timer to wait 2 seconds after the sensor is triggered. Without using the timer to wait the sensor works as expected. Background and setup I ...
1
vote
0answers
50 views

Program to simulate seven segment display in atmel studio

I am using Atmel studio for the programming of atmega64 microcontrollers with a Cerebot board II. Firstly, is there a program that can simulate a seven segment display device as if I was looking at ...
0
votes
1answer
56 views

Error While trying the program my ATMega16a with extreme burner

Whenever, i want to burn the hex file on my chip, always an error message appearrs, Power On Failed Cannot communicate with target chip The programmer i am using is AVR USB programmer, ...
0
votes
0answers
32 views

Which programmer can be used with Matrix flowcode programming package?

I am trying to progam AVR chips using Matrix Flowcode package. Does anyone know which programmer can directly be interfaced with it?
2
votes
1answer
93 views

ADC of ATmega32

I want to use an ATmega32 ADC in its 4 channel single-ended mode to convert four analog signals into digital (one at a time). I have written the C code but what I cannot figure out is what I should do ...
4
votes
3answers
159 views

Difference between reading PORT and PIN

What is the difference between reading PORTA and PINA? What is the relation between a port and its pins?I'm really confused!!! sample of reading PORT:(reading pin is not useful here) Assembly f=1MHZ ...
2
votes
2answers
137 views

Understanding volatile class fields in AVR C++ programs

I'm having some confusion about what members to declare volatile in a program I'm writing in C++ for an AVR microcontroller, with interrupts. When it's plain C it makes sense - the compiler doesn't ...
6
votes
3answers
255 views

Switching from PIC to AVR [closed]

I have worked with PIC16 and PIC18s for over three years now and would like to get to know AVR as well. I have no specific project in mind, but would like to try around with the different ...
0
votes
1answer
75 views

Understanding a circuit label in ICSP programmer for atmega

I am completely new in electronics. I wanted to make a programmer (or burner) to burn my program in my Atmel16a microcontroller. I found a circuit on the internet: (source) Everything is clear, ...
5
votes
5answers
355 views

Microcontrollers - Beginner questions

How do you determine how many sensors a microcontroller can use? My understanding is you can't use C# directly on any microcontroller but you can use C# and communicate over the USB and look for a ...
2
votes
3answers
150 views

ATmega32 programming without external clock?

I'm using an Atmega32. I want to use an external 16MHz crystal and I'm using a universal programmer (like http://www.kanda.com/products/wellon/VP-290.html). My question is: once I've programmed the ...
4
votes
4answers
192 views

uC platforms to consider for faster CPU and 30+ GPIO pins

I am building a Persistence of Vision project with 120 RGB leds (=360 total lines to be controlled). We have settled on the TLC5940 for driving the LEDs (and could be open to changing this), however, ...
1
vote
1answer
85 views

Choosing Resonator for AtMega328P design

The ATMega328P datasheet specifies a load capacitance for a resonator from 12-22pF but the only 2 Resonators that will fit in my design (from Digikey) have 10pF and 33pF internal capacitors. Which one ...
5
votes
2answers
225 views

Decoding multiple quadrature rotary encoders

Scenario I have 4 ACZ16 quadrature rotary encoders connected to GPIO Port D on an ATMega168P. I am only trying to extract rotation direction from them. Position is irrelevant, and it is guaranteed ...
1
vote
3answers
97 views

ATMEL 169PA resets with MCUSR = 0

On rare occasions, my ATMega169PA resets with MCUSR=0. What can cause this? I have multiple units (> 500) running the same code and on rare occasions 1 or 2 units will reset with MCUSR=0.
-1
votes
1answer
56 views

wireless communication for identification purposes [closed]

I am working on a project that requires me to have a microchip installed on an electronic device and can also be identified by a scanner. The electronic device may be a car, so I need microchip ...
1
vote
2answers
298 views

AVR GCC : Global / Static Array not getting initialized properly

Im having problem with global arrays in my C code. What i am trying to do is to use a display buffer (array of 8 uint8_t with each uint8_t representing a row) to light up the leds in 8x8 led matrix ...
0
votes
0answers
158 views

Transmission via RF433Hz Transmitter/Receiver pair failing AVR

I am trying to send data wirelessly through a RF433Hz receiver/transmitter pair, but nothing seems to want to work.I want to the transmitter to continuously send a number (0x81) to the receiver when I ...
11
votes
2answers
591 views

How fast is 1 MHz?

How fast is 1 MHz in an AVR microcontroller? Is it actually 1,000,000 Hz or is it 1,048,576 Hz (1,024 Hz * 1,024)?
1
vote
3answers
315 views

AVR Button Interfacing

I am a beginner of the micro-controller and I have the kit for AVR. I am currently using an ATMega16 to learn the basics. I have tried a few simple experiments with this micro-controller using LED's. ...
3
votes
2answers
198 views

When to use an Arduino bootloader

I need to make a robot within a month for a competition. I used to use Arduinos for my projects, but graduated to just flashing code with avrdude to standalone AVR microcontrollers. I was thinking, ...
1
vote
1answer
309 views

Arduino and embedded C programming in a windows based system? [closed]

I am currently using Arduino Ide to code my arduino but now i want to code my arduino in C/C++ and i dont know where to start from what is the best tools and tutorials suggested for this. I'm a ...
1
vote
2answers
421 views

Measuring 32V using ADC of Atmega8

I'm trying to measure the battery voltage of 30V using the ADC of an AVR Atmega8, AVCC is connected to 5V. I connected a suitable voltage divider: R1 is 270k, R2 is 10k. The result I get is wrong at ...
0
votes
1answer
69 views

Weird behaviour of the ADC of an AVR

I'm trying to use the internal reference of the ADC of an ATMEGA8. I'm trying to use it in proteus simulator coded in codevision. The Full scale reading from the ADC is always 200. I didn't connect ...
3
votes
1answer
169 views

PROGMEM data vs. calculated data

On an arduino project I'm working on (ATMega328 at the moment) I have a bunch of vector distance data that I need to use for various pixels in a matrix. It's a relatively simple calculation: ...
25
votes
2answers
749 views

Who receives the value returned by main()?

I know that in computers, value returned by the main() function is received by the operating system. But, what happens in the ...
2
votes
2answers
200 views

Similarity between Atmega162 and Arduino

I am going to be taking an embedded systems course where we will be using the Atmega162 and I want to get started learning the stuff before the course begins.Now my question is, considering that there ...
7
votes
2answers
256 views

Generating servo signal in atmega2560

I'm new to AtmelStudio. I need to know how to generate a servo control signal using timer modules of atmega2560. I'm using an Arduino Mega board. (please refer the last paragraphs of this page for ...
7
votes
2answers
374 views

Selecting bias resistor for thermistor

Rt is thermistor. Rb is bias resistor, which value I need to calculate. The temperature that I'm interested in is giving ...
-1
votes
1answer
133 views

How to run controller continuously

I need help in running micro-controller continuously. I have an ATmega32A controller, I am debugging using JTAG. I have the final program and I have dumped into controller using JTAG. now I have ...
2
votes
2answers
487 views

Atmega8 USART transmitting wrong data

I'm trying to get USART working on my atmega8-16PU microcontroller. I've studied the documentation and took the examples of code from there. I've managed to transmit the data from microcontroller to ...
0
votes
2answers
544 views

How to get data from one micro controller to another using UART

My concept is I have two designed boards, One with AT90USB1287, other with ATmega32A both are working properly. AT90USB1287 is talking to the PC via USB. ATmega32A is talking to the PC via ...
3
votes
4answers
286 views

how to display current time

I am using ATmega32-A micro controller, coding in C language and compiling using CodeVisionAVR compiler. I want to display current time, I have tried with "time.h": ...
0
votes
3answers
331 views

Can we sample two signals simultaneously using the ADC (analog to digital) of AVR mircocontroller?

I am making a project of noise cancellation using least mean sqaure algorithms through microcontroller. In that I need two signals to implement LMS algorithm i.e noisy and noise+clean. So my question ...
1
vote
2answers
508 views

Interfacing AVR microcontroller to ADC, waveform generator and other peripherals

I am doing first project with AVR microcontroller ATmega32-A. In this project I am interfacing with ADC (AD7798), waveform Generator (AD9833), Multiplexer, Capacitive sensor, Demodulator. I have ...
2
votes
2answers
567 views

RGB LED Strip - Variable Voltage Vs. PWM

I am going to install an Analog RGB (non adressable) LED strip in my room and need to make a driver for it. The LED strip specs are: 10 cm segment 12V @ 60mA max per segment I would be using ...
1
vote
3answers
263 views

AVR program behavior incorrect after disabling reset fuse

I am using an ATTINY13 to drive 15 LED's from five I/O pins (Charlieplexed). I am using ADC0 (pin1) as input from a voltage divider to provide a speed control. In order use ADC0 properly, I need to ...
-4
votes
2answers
191 views

problem with reading values in case

I am using ATmega32-A microcontroller and CodeVisionAVR compiler. I am able to read values from an AD7798 external ADC successfully. I am also generating wave from with an AD9833 using SPI ...
4
votes
1answer
221 views

Formula calculation and printing negative value.

I am successfully reading external ADC value using ATmega32-A. ...
1
vote
2answers
295 views

Analog to digital conversion

I am using an Atmega32-A microcontroller and an AD7798 external ADC. I am able to set the ADC registers and read back ADC values. I have written the following code: ...
0
votes
1answer
137 views

Loop is executing infinite times

I am working with an ATmega32-A microcontroller. Using USART communication, I am displaying data on monitor and am using switch case to select different commands. In one of the commands I have written ...
2
votes
1answer
185 views

Problem with while loop

I am trying to read external ADC AD7798 values using ATmega32-A controller. In the datasheet, Status register Bit 7 (SR7) indicates the conversion is finished or ...
8
votes
3answers
964 views

What is bit banging

I am new to microcontroller programming. I am using ATmega32-A controller and CodeVisionAVR compiler. I am using the waveform generator(AD9833) to generate a sinewave signal using SPI communication. I ...
1
vote
1answer
117 views

problem with printing function return value

I am new to programming. I have small doubt, I know this is simple question but I am confused. I have the following function: ...
1
vote
2answers
281 views

how to check SPI signals

I am working with ATmega32-A micro controller. I am trying to read ADC (AD7798) values. I am setting ADC registers as shown below. Images also attached. ...
0
votes
2answers
115 views

Buspirate Logic Analyzer Mode Issue

I am new to the logic analyzer mode of Bus Pirate, so to play with it i connected channel 3(MOSI) line to the output of an TSOP1708 IR decoder to see if the capture came through. However when I ...
2
votes
4answers
492 views

ADC registers setup using spi communication

I'm new to microcontrollers - I'm trying to read external ADC values from an AD7798 ADC using SPI communication. Initially I have to setup some ADC registers - some registers are not configured. To ...
3
votes
0answers
75 views

Logic Analyzer / Oscilloscope Suggestions [duplicate]

Possible Duplicate: Beginner's logic analyzer? I am a beginner in electronics. Been tinkering with micro controllers for about 2-3 months now. At this point I find the need for a logic ...
0
votes
2answers
640 views

6 channel PWM with USB support

I am looking for a IC with mininum 6 channel PWM output and preferably USB support so that I can control it uing a software. Any ideas ?
4
votes
3answers
308 views

How can I find temperature of microcontroller?

In some boards which environment temperature goes up could cause high temperature in micro controller. This will effect on micro and bad situation maybe occurs. For example I have designed a device ...

1 2