Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: Can't upload sketch to Leonardo, 'ser_open()' error message on: January 03, 2014, 11:41:58 am
This issue is getting me frustrated. I tried every possible Troubleshooting..
Someone may please help me
2  Using Arduino / Programming Questions / Can't upload sketch to Leonardo, 'ser_open()' error message on: January 03, 2014, 03:48:56 am
I get the following error message while uploading sketch to the Leonardo board.

avrdude: ser_open(): can't open device "\\.\COM17": The system cannot find the file specified.


avrdude: ser_send(): write error: sorry no info avail

My Arduino Leonardo is connected to COM18 port. I have rightly selected Arduino Leonardo under 'Boards' and AVRISP mkII as the 'Programmer' Also selected the Serial port as COM18.

I also tried to upload the sketch by Pressing and Holding the Reset button and releasing it when the status shows 'Uploading. . .' but in that case I get the following error. Kindly help

Found programmer: Id = "B«J"; type =
 Software Version = .; Hardware Version = .
avrdude: error: buffered memory access not supported. Maybe it isn't
a butterfly/AVR109 but a AVR910 device?
3  Using Arduino / Microcontrollers / Re: HC-SR04 sensor does not work with Attiny 2313 but works with Uno on: December 29, 2013, 11:19:15 am
Yes. Problem solved when I used Attiny2313 at 8 Mhz.
I guess that is because the external crystal on HC-SR04 is of 4 MHz, perhaps a knowledgeable person can throw some light in this matter.
4  Using Arduino / Microcontrollers / Re: HC-SR04 sensor does not work with Attiny 2313 but works with Uno on: December 29, 2013, 04:57:58 am
Selected board is 1Mhz

Maybe that could cause the probelm, as HC-SR04 comes with an inbuilt 4 MHz crystal
5  Using Arduino / Microcontrollers / Re: HC-SR04 sensor does not work with Attiny 2313 but works with Uno on: December 29, 2013, 02:35:35 am
Well, that won't solve my problem. I'm programming my Attiny 2313 by ArduinoISP. All is well with programming part but specifically the HC-SR04 isn't working with Attiny when I load the above code to the ATtiny. Dn't know why ? It works well in Arduino Uno
6  Using Arduino / Microcontrollers / HC-SR04 sensor does not work with Attiny 2313 but works with Uno on: December 28, 2013, 02:56:14 pm
When I upload the following code to my Uno board, it works without any issue but, when I upload it to Attiny 2313, the senor would simply not work. Please help me to sort out the issue. I have followed a standard instruction (http://www.ernstc.dk/arduino/2313.htm) to load code to Attiny from Arduino as ISP.
Details: When I keep any object in a distance of 30cm or less, the LED glows up, when the object is far beyond 30cm the LED stays off, but this thing works only when the code is loaded to Arduino Uno. When I upload the same code to Attiny 2313,the LED remains on irrespective of the distance.

Quote
/*
HC-SR04 Ping distance sensor:
VCC to arduino 5v
GND to arduino GND
Echo to Arduino pin 7
Trig to Arduino pin 8

This sketch originates from Virtualmix: http://goo.gl/kJ8Gl
Has been modified by Winkle ink here: http://winkleink.blogspot.com.au/2012/05/arduino-hc-sr04-ultrasonic-distance.html
And modified further by ScottC here: http://arduinobasics.blogspot.com/
on 10 Nov 2012.
*/


#define echoPin 7 // Echo Pin
#define trigPin 8 // Trigger Pin
#define LEDPin 13 // Onboard LED

int maximumRange = 200; // Maximum range needed
int minimumRange = 0; // Minimum range needed
long duration, distance; // Duration used to calculate distance

void setup() {
 pinMode(trigPin, OUTPUT);
 pinMode(echoPin, INPUT);
 pinMode(LEDPin, OUTPUT); // Use LED indicator (if required)
}

void loop() {
/* The following trigPin/echoPin cycle is used to determine the
distance of the nearest object by bouncing soundwaves off of it. */
 digitalWrite(trigPin, LOW);
 delayMicroseconds(2);

 digitalWrite(trigPin, HIGH);
 delayMicroseconds(10);
 
 digitalWrite(trigPin, LOW);
 duration = pulseIn(echoPin, HIGH);
 
 //Calculate the distance (in cm) based on the speed of sound.
 distance = duration/58.2;
 
 if (distance <= 30){



 digitalWrite(LEDPin, HIGH);
 }
 else if(distance >= 31 && distance <=maximumRange) {
 

 
 digitalWrite(LEDPin, LOW);
 }
 
 
 delay(50);
}

7  International / India / Re: Who are you? Where are you located? on: February 25, 2013, 02:30:45 am
Hi. I'm Rishiraj from Guwahati, Assam.
Electronics is my hobby and Arduino is a boon for me to pursue the same. I'm always keen  to make new stuff by using Arduino.
I'm also interested in attending any seminar/conference/workshop/training on Embedded Systems.

Rishiraj Adhikary
facebook.com/rishiraj.adhikary
twitter.com/rishihere
+919508317221
Pages: [1]