Search for atmega328 in Topics

atmega32u4 vs atmega328?

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? Here is the date sheet of atmega32u4

Question by DELETED_MakiY2    |  last reply

atmega32u4 vs atmega328?

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? Here is the datesheet of ATMega32u4:

Question by DELETED_MakiY2  

ATMEGA328 V/S at89c2051?


Question by yhdesai    |  last reply

Remove a sketch from ATmega328

Is It possible to remove a sketch from an Arduino with a 328 using the Arduino IDE? I have deleted the sketch from my PC. The program is running now but no more sketch in the Arduino files. Or is rewriting it the only way?   

Question by WWC    |  last reply

How to program an AVR barebone atmega328?

HI,ALL Now i want to program an barebone atmega328,I searched the net for methods of doing so,the rock that i bumped my head on was the 'boards'file.I bootloadded the chip with ISP method, then found the 'boards file' stating 'barebone atmega328 with internal 8M crystal'.the case i am using is an external 16M the test rerult is not what it turn out to be,so i want to know if the 'internal 8M crysta' is OK?

Question by gada888  

Does anyone know any books on how to learn the programing language of arduino?

I'm trying to learn the programming language of arduino but I can't seem to find any books on to learn it. I know many of already know the language so I would like to know how you learned it. Thank you.

Question by kiss my donkey    |  last reply

AHHHHHHHHH!!!! Somebody please help me

I have been trying to learn the programming language of arduino for quite sometime now I have asked multiple questions but I'm still not sure. I just want to know the language so please give me give me suggestions on how I could learn it, or just tell me how you learned it. Thank you

Topic by kiss my donkey    |  last reply

Atmega328pu Chip already bootloaded,can i program it with a usbasp programmer?

Hello everybody,i purchased some atmega328pu chips for a DIY projects (arduino bootloaded) ,just to get little space for my projects,I have already done with the chip part and im stucked on the Usbasp programming,i purchaces a programmer from e bay. I found the pinout for this programmer,and i attacked 4 cables on my atmega328pu chip, TX,RX,VCC,GND,also i installed the drivers from the site,And now im going onto arduino IDE,and i cant find a port to upload my sketches,nothink seems to communicate,and i got stucked here,i need some help Thank you.. (sorry for my bad english) P.S Im a new guy on programming and chip stuff :D

Question by StefanosK1    |  last reply

Arduino Duemilanove USB Cable? Answered

What USB cable can be used to program this arduino?

Question by electronicz    |  last reply

I heard that arduino is based on C if I learn C++ will I still be able to program an arduino?

The title basically says it all If I learn C++ will I still be able to program an arduino or should I learn C first. The creator of C++ said to just learn C++ before C but other things say to just learn C before C++. I really just have to learn how to program an arduino but I still want to pick up one (or both) of these languages. I have an arduino and the book below. thank you

Question by kiss my donkey    |  last reply

Why is the ATtiny85 more expensive than the ATmega328? What? Answered

I only need 2 I/O pins, but if I can get it cheaper with the 328 then why not?  Can anyone find the tiny for under 5 bucks with shipping?

Question by Spaceman Spiff    |  last reply

how to install arduino on windows 8.1?

I tired to install arduino 1.0.5 r2 on my pc but the serial port is greyed out what should i do ?  

Question by Pranavthegreat    |  last reply

ATMega328-pu not responding on stand-alone PCB? Answered

My ATMega328 based circuit is similar to the stand-alone Arduino design shown here. However even when I run a simple blink program the LED at pin 13 does not blink and I get no response from the microcontroller. I have tried the same circuit on a breadboard and it worked well. However when I transferred this on to the PCB there is no output. I've checked the continuity and all the coppertraces seem to be fine. I program the chip using my Arduino Uno board and place it in the circuit. This works on the breadboard but not on the PCB. I have attached the pictures of the PCB and a schematic diagram for reference. I'm completely stumped as to what the problem might be and would greatly appreciate any help.

Question by r5sb    |  last reply

8x8 red and greed matrix - Can I get some help??

I have an 8x8 LED Matrix with red and green. I also have 74HC595, 4017 chips. This site seems to be a great place to get help and I'm in need. I don't have any electronic know how or anything like that. My daughter asked me to do this project and I don't want to let her down. I have an Arduino Atmega328 to control the matrix but I need some sort of code as well. I have figured out what pins control what on the Matrix and red and green share the power and have separate grounds.  The only stuff I have access to before Friday (that's when she leaves) is resistors and capacitors.  Can someone help me with the right resistors and capacitors as well as some code to drive the matrix?? Any and all help is greatly appreciated.  1588ASRG is the Matrix model number by the way. Thanks again.? This is the spec page for the Matrix.

Question by darrell49707    |  last reply

arduino powered by 3.7 volt battery?

Can an Atmega328 chip +oscillator run off of 3.7 volts without a regulator to be used for 7 channel pulse width modulation with mosfets to drive the leds? I'm desiring to power it with an 18650 battery. (which charges to 4.2 volts and drains to 2.75 volts) if not, how could i do it?

Question by SpiffyChee    |  last reply

IC Answered

I'm using an ATmega328 for a projekt and was wondering if I need to use a resistor for the input voltage? Thanks, Sofus Christensen

Question by Balls of Kevlar    |  last reply

What USB to Serial/FTDI cable/device should i buy?

I have been given a budget of 100$ for a project i'm building. for this project(which i'll probably make an instructable about) i'm going to be using a couple of Atmega328's in an arduino'ish configuration. my problem is that i'm unsure about what i should use to program them with. i need the programmer to be somewhat portable as i'll be using it in many upcoming projects. i also read something about the way the programmer resets the atmega328 should be different or something. should i buy an FTDI-cable or a FTDI basic breakout?

Question by solidacid    |  last reply

Lead-acid 12V-DC to 5V-DC for ATmega328 (SAFELY)

Hi all! I am currently designing a simple electronic device which uses Arduino-software. It needs to be connected to a car (Lead-Acid) battery of 12V and be stepped down to 5V for my ATmega328 to be powered. I read that I must use a "Standard 7805 5V regulator" for this. My question is, will it be able to cope with the heat? Must I put a heat-sink on it and/or is the regulator even "big" enough for this? I figured that using two regulators in parallel, might halve the current and help prevent over-heating. ( Another thing is, how could I go ahead and setup a small NiMH battery charger for this device which works like this: It runs of the car battery at all times and keeps the backup NiMH battery fully charged - as soon as the car battery gets disconnected, it switches over to the NiMH cells. (I will be using 4 of these for my backup-battery-pack See my attached schematic of what I have in mind, please tell me what you think about it. I have too little knowledge of electronics to solve this problem myself, but if you can point me in the right direction at least, I will try and figure it out from there. Thank you for your time!

Topic by louwhopley    |  last reply

Uploading to ATmega328 with preloaded blink sketch through ArduinoISP doesnt work?

I'm using my Arduino Mega as an ISP and have successfully uploaded a blink sketch to an atmega on a breadboard, with the led @ D13. Thats the SCK pin, and now i cant upload another program to the atmega on the breadboard. I tried resetting both the boards JUST before uploading, but it didnt work. my connections are secure, reset pin is tested, auto-reset is off. im at a loss. Please HELP!!!

Topic by DangerousTim    |  last reply

microcontroller on arduino board?

I am a newbie to arduino.I 've learnt atmega328 controllers are used on arduino.I am using arduino smd rev3 can someone please label it for me?  

Question by manaswini1317    |  last reply

What is the easiest way to burn the arduino bootloader to an atmega328p?

With a fresh ATMega328p Chip and an arduino duemilanove board. ISP looks like the best option but, how to use it? Make / buy a parallel/serial/usb programmer. what is the easiest or cheapest way...

Question by nerd608    |  last reply

How to use Arduino UNO as ISP to burn bootloader AND upload program to ATMEGA328?

Hi, I am new with Arduinos. Well actually, I know nothing about it. My friend bought me an Arduino UNO because he knows I like building stuff. I have a project that I want to carry out, but I just do not know how to program an AVR! I searched online for hours, but I can't seem to find the exact step-by-step guide I need. Basically, I want a step-by-step guide showing how to burn a bootloader to a target AVR using an Arduino UNO, AND how to upload the program to the target AVR. (It would also be great if someone could explain to me how the hex file works... I already have all the code and the files I need for my project, and it's got a .c file, and a .hex file. I know that .c file has the C language program in it, and the hex file is the compiled program that gets put into the microcontroller, but I do not know what to do with them...) Any help is greatly appreciated! Thanks!

Question by ddolbi1    |  last reply

Arduino maximum current draw? Answered

What would the maximum current draw through an Arduino be? (ATMEGA328) - I'm planning on running 16 LEDs from it and I need to know if I should be powering them separately somehow.I have the appropriate resistors (100ohm and 180ohm LED dependent).

Question by jonrb    |  last reply

Burn Arduino Bootloader to Arduino, from Arduino

I want to burn the Arduino bootloader to an Arduino from an Arduino. I have an Arduino Duemilanove, and I want to take the chip(ATMega328) off, and use it in a circuit, without having to connect the whole Arduino to the circuit. However, I then have an Arduino with no chip. So, Can I just put a regular ATMega328(I know I can just buy one with the bootloader already on it, but I would rather do itmyself.) into the Arduino, connect it to the computer, and use the Arduino IDE(I'm using 0021- the most up to date one) to burn the bootloader to it? If so, how? If I cant, is there any way to easily do it with only another Arduino with the bootloader on it?

Topic by metrogdor22    |  last reply

I need a relay to run from an ATtiny85 chip.?

I need a relay that can be switched from an ATtiny85 chip output pin, and can be used at 120V AC and 15A. Otherwise I will need to use a transistor, but hopefully I won't. What about the ATMEGA328 instead of the ATtiny85? Thanks guys and gals.

Question by Geniusdude    |  last reply

Which microcontroller to choose?

Hi all, I need to use a microcontroller for my project and am thinking of getting the arduino UNO R3 development board which composes of the ATmega328 microcontroller. I have to connect a small motor, a 16x2 LCD display and a miniature heating element to the arduino. I would like to know if the UNO R3 is suitable for my project. PS: I am very new and noob regarding microcontrollers

Topic by kurtselva    |  last reply

Glitchy I2C LCD (lines on the display)?

So, I am working on a little project with an Atmega328 and an 16x2 LCD. I have it wired up and when I went to test it with the "hello world" example, The LCD does work, but there are random lines on the display..  It's not the contrast or the code, and I checked the connections and it all seems ok. What might be causing my problem? 

Question by Dashing Rainbow Dash    |  last reply

How would I go about programming an Arduino Pro Mini, using an Arduino Uno without its ATMega328 removed?

I have had some thoughts of getting an OSEPP Pro Mini, but I cannot find FTDI cables at Fry's. I need a program like the example "ArduinoISP" but for FTDI devices rather than ICSP devices.

Question by VirtualBoxer    |  last reply

D-Pad data compression?

So, I'm working on a small, simple, and yet very inefficient game console using multiple ATmega328 chips. Basically, I'm trying to compress the controller data into as few wires as possible using an ATmega. Hopefully using something along the lines of Anyone have any idea how to do this? I can handle coding, it's just the actual logic of it. 

Topic by Krayzi99    |  last reply

Please guide me to the luxurious world of electricity, I'm a newcomer

Hello, i am running on projects here, and got no idea where to begin.i want to make an alarm clock. The desired time and ringing tone for the alarm should be able to be set accordingly to my will at any time. The requirements is, i must construct it with ATMEGA8535 or ATMEGA328 or ATMEGA16. Any suggestions what's the first thing to do here? pls kindly help me:)

Topic by jayfetra    |  last reply

i want to make a computer like a maximite, but with my arduino?

I am using a duemilanove with an atmega328, have tv out working, ps2 library and schematic, sd card schematic but not library. i need the code and how to make, any sugestions are welcome have already looked around the web but can't find anything, only what i have just listed

Question by The nerdling  

My instructable published but it is not visible.

My instructable says it published but the picture is darker that it should be and when I click on it I get this message: We're sorry, we couldn't find that one! I hope it isn't lost. The URL for the instructable is: I have had trouble publishing the last three instructables I have written. Am I doing something wrong? Are other people having this problem?

Topic by JRV31    |  last reply

is it possible to store an arduino library on eeprom if it is big enough?

I was wondering if you could store an arduino library on an eeprom chip because the sound library for the waveshield kit is very large (~10KB according to she had also stated under the waveshield tutorial that it is too much to store on the ATMEGA328's eeprom. she didn't say anything about other eeprom chips. i was wondering if it is possible to do this because she had stated that there is not enough eeprom on the arduino chip.

Question by kroq-gar78    |  last reply

Code for controlling the brightness of LED using Bluetooth module HC-05-v1.0?

I am using arduino ATmega328 micro-controller. i tried some analog coding to control the brightness via Bluetooth module but the output value of the LED is constant. The code I used is, int ledPin = 5;  int fadeValue = 0; void setup() {     pinMode(ledPin,OUTPUT);     Serial.begin(9600);     delay(100); } void loop() {   // fade in from min to max in increments of 5 points:     if (Serial.available() > 0)     {            fadeValue = (int);            Serial.println(fadeValue-48);            for(int i=0;i<=fadeValue;i+=5)                analogWrite(ledPin, i);                    } }

Question by santhoshpl3    |  last reply

Arduino Light Controller

Hello guys,I have make a project with Atmega328 that read the sun light to turn on the shop lights and read the voltage ments 5V to voltage the system and 12v to voltage the the problem is i want the system work 24/7 and if i let it work 5+ hours it lag and i have to restart it all time.any1 have any idea why that happen?I noticed the tension is not steady,can this be the problem?i have attach some photo and one video of the system that i have make.Thanks for your time to read my problem.

Question by NetariaT    |  last reply

How to make a large LED chase effect?

I am looking to make a Xmas jumper with an LED chase effect to mimmic the snow falling.  I am having difficulties in deciding which is the best way to do this. Essentially Think of having 8 strings of 8 LED's (to make it simple) and each string will have its own chase effect running.  I want these to be independent of one another, I.E. I don't want a constant LED line running down the jumper. Now I have thought of two ways of doing this via Arduino:- 1) Simple Method - Using the ATMEGA328 to run each string of 8, providing its own running time and speed. 2) Difficult Method - Use a grid where one ATMEGA328 can run a 8x8 matrix.  This would require some transistors at each row and column and fancy code to produce the right effect. Disadvantages of 1&2 1) Lots of wiring, 8 ATMEGA chips and power supplies 2) Unsure if this is possible, obviously I can switch quickly but to the eye would this even be visible.  For example if I wanted to power column A and row 1 and simultaneously power column D and row 5... would this power said LED's and also column A row 5 and column D row 1, all at the same time? Any help would be greatly appreciated.  If I have overlooked any other methods, please feel free to mention them. Thanks Mo

Question by mokhaddoumi    |  last reply

Having trouble measuring accurate voltage with arduino.

For a week now I’m trying to get very precise voltage readings with no luck so far. I’m using a voltage shunt regulator (LM431) for reference but still. My goal is to read values low as a 1mv change. I’m using a voltage divider to convert 38 volts to 4v (According to my vref). I've read that 10 bit ADC in atmega328 is enough for this job. Is it or am I doing something wrong? Thanks P.S i have made a lot on changes to my circuit so please go over to my new link to get up to date. Ive read all of your feedback and tried to implement it. Thanks a lot for all your answers.  LINK:

Question by faraz ahmed khan    |  last reply

Arduino 5x9 led display and 0-10V voltmeter. Answered

Arduino Duemilanove ATmega328 I want to make a 5x9 led display that monitors a 0-9.99VDC source for a huge motor. I would like to display up to a hundredth of a volt. I would like to do this all using 1 board. I plan on having it display the 3 digits using the 5x9 led display. Can I do this with the limited pins I have without using a shift register? (I think thats what it is called) Do I have all that I need? I have some knowledge of electronics but am in the learning stage but this project will help me a lot in my everyday life. This will be used to monitor a DC water turbine for my pool. I have: -tons of LEDS -Arduino -tons of resistors

Question by newrev426    |  last reply

I accidently powered my arduino from a wrong pin externally....please help me Answered

My arduino was working and after some time it stopped uploading and it would say  "arvdude :verification error,first mismatch at byte 0x00000xc != 0x62 arvdude : verification error ; content mismatch" so i tried troubleshooting but it didnt work so started to think what i did wrong and i remembered that i powered my arduino from 5v pin and ground when i should've powered from vin pin and ground.I think my arduino's fuse is gone but i am no pro at arduino i am quiet new.So can you please tell me how to how change my i need to change my  ATmega328 chip or something else.if you think its not the fuse please tell me how to fix it .  

Question by ms10    |  last reply

Having a peculiar issue with the max6675 and grounds?

So first off, this is an application for use in a car. I have ensured that all of my grounds are good, and the power is clean, so I know these are not the issue, at least not on the car side of things. I am trying to get an electric fan controlled by an atmega328 (through a relay), which I have successfully achieved  on bench tests using an alternative heat source. It works reliably until I apply the circuit in the car. When I install it in the car with my thermocouple on the radiator pipe for the temperature reference I get all sorts of temperatures that are not the correct one. Its either very high, or very low. I have tried multiple thermocouples (of similar style) with no changes. If my thermocouple is not making contact with any grounded portion of the car (for example, the engine) it reads fine, so I know that my issue lies somewhere in there. An easy solution would be to simply mount the sensor in a coupler in the radiator hose (thus isolating it as best as I can) but I would rather fix the issue than apply a bandaid. I've tried searching for other people having a similar issue but haven't had any luck. One peculiar thing to note is that if I have the ground disconnected, and the thermocouple touching a ground, the system receives power, so I am assuming that the junction makes contact with the outer case of the thermocouple. My circuit is nothing too elaborate (I can upload a schematic if need be); I have a DC/DC adjustable converter to get 5v for the micro and 6675 power, which does not have an isolated ground, an atmega328, an OLED display, some tact buttons, and a max6675 development board. There are other passives as well but those should be minor. Does anyone have any idea what may be going on with this? I'm stumped. I should be able to provide any info you may need.  PS: this is the development board and thermocouple that I am using: 

Question by zack247    |  last reply

What hardware can I use to program an AVR?

I'm just getting into microcontrollers and I'm getting an atmega328 to practice with, and probably make an arduino out of. I'm a bit confused about what I need to turn the usb from computer into something it will understand. I was confused about if I need an ftdi cable, but I think they are only used if you are using a bootloader? So I think I need a usb to ttl converter and I've found a couple cheap ones on ebay and am wondering if they will work.;=item2a1a00556c#ht_2026wt_958 This one I'm pretty sure will work but I think I would need to convert it to six pins for the atmega:;=item27c3bbcfd8#ht_2946wt_958 Sorry for such a beginner question I'm just getting started!

Question by sk8aseth    |  last reply

Broken Arduino? Answered

Few days ago I was making arduino project which involved using power supply with 12v (musical floppies). I had uno connected to my laptop and I was connecting power supply to floppy which arduino was supposed to control, but I plugged wire in wrong socket. Computer  and power supply shut down immediately. I checked later and it appears that I put 12v straight into ground that was also connected to arduino. And later when I tried to upload something on board I got error 0x00 not in sync. 13 led turns on when connected, but board dodn't respond to reset. But it appears on computer so it's not completely fried I think. After some research I bought usbasp programator to try burning new bootloader, but after connecting it always say target doesnt answer. check connections. I did that (didn't checked with multimeter yet) but Im pretty sure its wired correctly. Any ideas? And if not is buying new chip (atmega328-p) going to solve problem?

Question by TheFruktus    |  last reply

Arduino (uno r3) not in sync, help? Answered

So I'm pretty new to arduino. Got myself an Uno rev3, and all was well for a couple of weeks. Now however, whenever I try to upload a sketch I get an error message telling me this: avrdude: stk500_getsync(): not in sync: resp=0x00 Googling this has not solved anything. I don't think there's anything messed up with the IDE, as I get this in both arduino 1.0.1 and 1.0.2, as well as Visual micro. I tried everything I could think of. Resetting the board did nothing, neither did re-installing drivers or rebooting. The serial bounce test showed no errors, and the Rx LED blinks when I try to upload.  (If you are unaware, the bounce test means connecting Rx to Tx and opening a serial monitor. Everything you send should then be bounced back.) I'm currently thinking bootloader issues, since resetting the board does not make the pin 13 LED blink.  So, does anyone know what to do here? ------------------------------------------------------ UPDATE: I am an idiot. This whole time, I had the atmega328 plugged in backwards. It works now.

Question by Tinker_Tom    |  last reply

Arduino - Mega or Duemlianove?

I have been thinking about getting an arduino from Adafruit Industries. They carry two - The arduino duemlianove with the Atmega328 and the more powerful Mega with atmega1280 chip. I am having difficulty choosing between the two microcontrollers. My main focus will be on larger projects like the Garduino( but again also on smaller robotics projects like advanced balancing robots(multiple accelerometers and sonar sensors)or even arduino smart drones(aircraft).Some of the factors in my descision will depend on: Price Weight Dimensions Power requirements Flash ROM Output pins Protoshield/other shield capabilities PWM control XBee wireless support Integration with logic systems Support for multiple(3) LCD screens/Dot Matrix displays Multiple Servo support Sound/Media support Please help me choosing this microcontroller.I will only buy once in maybe 4-5 years so I want it to be good buy. Also tell me which shields should I buy for my requirements: either the sound shield or the servo shield.I think I will buy the servo shield because it will give me greater control over my robotcs projects Kabir 

Question by mhkabir    |  last reply

Arduino - Mega or Duemlianove

I have been thinking about getting an arduino from Adafruit Industries. They carry two - The arduino duemlianove with the Atmega328 and the more powerful Mega with atmega1280 chip. I am having difficulty choosing between the two microcontrollers. My main focus will be on larger projects like the Garduino( but again also on smaller robotics projects like advanced balancing robots(multiple accelerometers and sonar sensors)or even arduino smart drones(aircraft).Some of the factors in my descision will depend on: Price Weight Dimensions Power requirements Flash ROM Output pins Protoshield/other shield capabilities PWM control XBee wireless support Integration with logic systems Support for multiple(3) LCD screens/Dot Matrix displays Multiple Servo support Sound/Media support Please help me choosing this microcontroller.I will only buy once in maybe 4-5 years so I want it to be good buy. Also tell me which shields should I buy for my requirements: either the sound shield or the servo shield.I think I will buy the servo shield because it will give me greater control over my robotcs projects Kabir

Topic by mhkabir    |  last reply

peculiar issue with arduino clones; thoughts?

So a little while back, I bought about 10 arduino nano clones. I'd used the nanos before, and really like the form factor, so i got some off of ebay. they worked great, and you'd know no difference in performance compared to other boards, these new ones seemed to boot faster even. unlike most, the ones i got dont use an FTDI chip, but rather a chip labeled as "CH340G". these boards were working perfectly until i was trying to test some code that was very close to the maximum size you can fit in an atmega328. it was 30,000 bytes, and mostly because of the included libraries. when i hit upload, it compiled fine, but once it got to the "uploading" phase nothing happened on the arduino board and after a while it threw an error claiming a response of 0x00, if memory serves. it didnt seem like the atmega was resetting, so i probed it with my oscilloscope, but it certainly was resetting. i thought maybe the capacitor on the reset line had issues, so i replaced it to no avail. everything seems fine in windows and i can still talk to the program previously on the chip via the serial terminal. the only way i can seem to upload code now is via the icsp header. so im wondering if anyone knows what is going on here, or how i can fix the issue?

Question by zack247    |  last reply

HMC5883L file error with Arduino 1.0.6

M using the HMC5883L sensor as part of my project but the HMC5883L file leads to an error when im compiling in the new versions of Arduino, 1.0 onwards. Works fine with the Arduino 0022. Ive performed the functionality changes which came about in 1.0 on the codes but the file erroe stills persists. This the error i receive: This report would have more information with   "Show verbose output during compilation"   enabled in File > Preferences. Arduino: 1.0.6 (Windows 7), Board: "Arduino Duemilanove w/ ATmega328" C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp: In member function 'void HMC5883L::Write(int, int)': C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:110: error: 'class TwoWire' has no member named 'send' C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:111: error: 'class TwoWire' has no member named 'send' C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp: In member function 'uint8_t* HMC5883L::Read(int, int)': C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:118: error: 'class TwoWire' has no member named 'send' C:\Program Files\Atlassian\Arduino\libraries\HMC5883L\HMC5883L.cpp:129: error: 'class TwoWire' has no member named 'receive'

Topic by AmitP2  

ATtiny85 Supported Commands? Answered

Lately i have had a problem with certain sketches not working correctly on an ATtiny85-20PU. The blink sketch works fine on the ATtiny85 but this sketch below will not, also this sketch below does work correctly on an Arduino board. The list of supported commands for ATtiny85 are pinMode() digitalWrite() digitalRead() analogRead() analogWrite() shiftOut() pulseIn() millis() micros() delay() delayMicroseconds() Also the Arduino reference page is  The one possible thing i can see as not being supported might be "  round  " on line 33 causing this sketch to not work properly. I do not know this for a fact as i can not actually find anything that is not supported. Do you know if " round " is a hang up for ATtiny85's? . //int IRSense = A0;  //For ATnega328 int IRSense = 2;  // For ATtiny85 //int IRTrans = 9;  // For ATnega328 int IRTrans = 3;  // For ATtiny85 //int LED1 = 10;    // For ATmega328 int LED1 = 4;     // For ATtiny85 int valueAmbient = 0; void setup() { pinMode(IRSense, INPUT); pinMode(IRTrans, OUTPUT); //Serial.begin(9600); digitalWrite(IRTrans,LOW); pinMode(LED1,OUTPUT); } void ambient() { digitalWrite(IRTrans,HIGH); delay(20); valueAmbient = analogRead(IRSense); delay(20); } void loop() { ambient(); digitalWrite(IRTrans,LOW); delay(20); int value = analogRead(IRSense); int value2 = round(value - valueAmbient); int dist = (((value2+15.0)/(value2*(value2+100.0)))*2000.0); if (dist <= 10){    digitalWrite(LED1,HIGH); } else { digitalWrite(LED1,LOW); } //Serial.print(dist); //Serial.print("cm."); //Serial.println(""); delay(20); }

Question by WWC    |  last reply

Hackduino-like thing help!? Answered

First a little background to help you understand whats going on... I live in the Philippines, i grew up here and part of my hobby is Electronics. I usually scrounge up parts due to the fact that parts are kinda outta my reach and it's a shame to let all that money go to waste when i can find salvaged parts. Recently, i got the idea of programming and searched around 'ibles for pojects on TI's MCUs. Finding none, i thought it wouldn't be worth the effort to try to program one of these with lack of info so i thought "what about the arduino?". Arduinos are kinda popular here but one thing sets me back. Getting one. So since my mom won't let me get an arduino (i'm a High school student), i need to resort to making one. Most of my sample requests from Atmel have been denied so it's time to quit being a cheapskate just for arduino! (and for science yay!) I sourced some parts, haven't bought the most important ATmega328 (it's kinda big but better get it than upgrading) and i'm starting to prepare. I read the HackDuino and i just need some help and info such as: * How do i make an arduino using common electronic parts? * What schematic will i use that will allow me to upload using a serial port? * How will i prepare the chip without another arduino? (I heard about bootloaders and stuff) I have lots of questions, but if you know some arduino tips and facts, you may throw it in Thanks in advance

Question by beehard44    |  last reply

I am not so good in programing arduino and i have some problems, but can't find answer anywhere

I am have this errors  Arduino: 1.6.0 (Windows 7), Board: "Arduino Pro or Pro Mini, ATmega328 (5V, 16 MHz)" Build options changed, rebuilding all Using library Sprite in folder: C:\Users\Hrvoje\Documents\Arduino\libraries\Sprite (legacy) Using library Matrix in folder: C:\Users\Hrvoje\Documents\Arduino\libraries\Matrix (legacy) D:\Program Files (x86)\Arduino/hardware/tools/avr/bin/avr-g++ -c -g -Os -w -fno-exceptions -ffunction-sections -fdata-sections -fno-threadsafe-statics -MMD -mmcu=atmega328p -DF_CPU=16000000L -DARDUINO=10600 -DARDUINO_AVR_PRO -DARDUINO_ARCH_AVR -ID:\Program Files (x86)\Arduino\hardware\arduino\avr\cores\arduino -ID:\Program Files (x86)\Arduino\hardware\arduino\avr\variants\eightanaloginputs -IC:\Users\Hrvoje\Documents\Arduino\libraries\Sprite -IC:\Users\Hrvoje\Documents\Arduino\libraries\Matrix C:\Users\Hrvoje\AppData\Local\Temp\build3373133583693679666.tmp\LED_1cube_4x4x4_Show_1_74HC595.cpp -o C:\Users\Hrvoje\AppData\Local\Temp\build3373133583693679666.tmp\LED_1cube_4x4x4_Show_1_74HC595.cpp.o LED_1cube_4x4x4_Show_1_74HC595.ino:34:1: error: 'prog_uchar' does not name a type LED_1cube_4x4x4_Show_1_74HC595.ino: In function 'void loop()': LED_1cube_4x4x4_Show_1_74HC595.ino:258:27: error: 'PatternTable' was not declared in this scope Error compiling.   all files i can not compile :S!uY82TLKK!yz8c1fMIYyo-ow7pUiOwgw Include file key

Question by monpg2    |  last reply