Show Posts
|
|
Pages: [1] 2
|
|
3
|
Using Arduino / Microcontrollers / Re: ATtiny2313 with arduino-tiny core libs 0100-0015: compile errors
|
on: December 30, 2012, 04:30:24 am
|
No problem. I will offer a potential solution but there is a condition. You have to report back if the solution works (or doesn't). Agreed? Excellent, let's get started...
• Locate and open HardwareSerial.cpp in the {Sketch}/hardware/tiny/cores/tiny directory/
• Replace all occurrences of SIGNAL with ISR
• Save and close HardwareSerial.cpp
• Try to compile
Thanks a bunch for your quick help. Sure I will and I did as you wanted but without success: /usr/share/arduino/hardware/tiny/cores/tiny/HardwareSerial.cpp:94:15: error: attempt to use poisoned "SIG_USART0_RECV" In HardwareSerial.cpp line 94 reads this: #elif defined(SIG_USART0_RECV) && defined(UDR0)
|
|
|
|
|
4
|
Using Arduino / Microcontrollers / Re: ATtiny2313 with arduino-tiny core libs 0100-0015: compile errors
|
on: December 30, 2012, 12:26:54 am
|
Thanks for your instant reply. I already came across this article which suggests downgrading the gcc-avr to 4.3.5. The strange thing however is that my setup works for all other boards (controllers) like the ATtiny4313, ATtiny44, ATTiny25, ATtiny85 a.s.o. The only one not working is the ATtiny2313. That prevented me from downgrading very quickly.
|
|
|
|
|
5
|
Using Arduino / Microcontrollers / ATtiny2313 with arduino-tiny core libs 0100-0015: compile errors
|
on: December 29, 2012, 11:19:25 am
|
Hi, I get compile errors when trying to build a simple sketch for the ATtiny2313 with the core libs which I downloaded from here: http://code.google.com/p/arduino-tiny/downloads/detail?name=arduino-tiny-0100-0015.zipThe error reads: In file included from /usr/lib/gcc/avr/4.7.0/../../../avr/include/util/delay.h:44:0, from /usr/lib/gcc/avr/4.7.0/../../../avr/include/avr/delay.h:37, from /usr/share/arduino/hardware/tiny/cores/tiny/wiring_private.h:32, from /usr/share/arduino/hardware/tiny/cores/tiny/WInterrupts.c:37: /usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:427:15: error: expected identifier or ‘(’ before ‘double’ /usr/lib/gcc/avr/4.7.0/../../../avr/include/math.h:427:15: error: expected ‘)’ before ‘>=’ token I followed several suggestions uncommenting the line in math.h ( http://code.google.com/p/arduino-tiny/issues/detail?id=29): #define round(x) ((x)>=0?(long)((x)+0.5):(long)((x)-0.5)) That did not help me either because that produces another error: /usr/share/arduino/hardware/tiny/cores/tiny/HardwareSerial.cpp:94:15: error: attempt to use poisoned "SIG_USART0_RECV" I compile against avr 4.7.0 with Arduino 1.0.1 on Ubuntu 12.10. Maybe it's the gcc-avr version which produces the error ? Did anybody solve the problem with the above mentioned libs under Arduino 1.0.1 ? Regards AgeBee
|
|
|
|
|
6
|
Using Arduino / Installation & Troubleshooting / Re: trouble uploading on ubuntu 12.04
|
on: November 22, 2012, 02:59:23 pm
|
Hi, I was facing the same problem as others here in that thread. For whatever reason the following line was constantly set in ~/.arduino/preferences.txt: serial.debug_rate=38400 Changing that line to serial.debug_rate=9600 made that /dev/ttyACM0 appeared just before uploading. But still I received the error: ...processing.app.SerialException: Error opening serial port '/dev/ttyACM0'... What helped me is change the entry to serial.debug_rate=9600, then I made the file read-only. I restarted the IDE and the above mentioned line was kept to serial.debug_rate=9600. Very strange.... Regards AgeBee Hi, I just ran into exactly the same problem. I have no idea what was going on, but deleting ~/.arduino/preferences.txt fixed it for me.
|
|
|
|
|
9
|
Using Arduino / Microcontrollers / Re: core13: An Arduino core for the Attiny13 *testers wanted*
|
on: November 13, 2012, 07:08:36 am
|
|
Hi, I just wanted to test your core13 sources on my platform here. I run Ubuntu 12.10 with Arduino 1.0.1 and installed your version 16 (core13_016.zip). As a programmer I use USBtiny and got that programmer into boards.txt. It compiles well with no errors.
However, I get the following error from avrdude while uploading the blink sketch:
avrdude: Expected signature for ATtiny13 is 1E 90 07 Double check chip, or use -F to override this check.
Do I have burn some fuses beforehand ?
When I run avrdude with 'avrdude -c usbtiny -p t2313' I get the following answer:
avrdude: Device signature = 0x1e910a avrdude: safemode: Fuses OK
What does that 'device signature' mean and why is it different from the 'expected signature' ?
Thanks for your help.
Regards AgeBee
|
|
|
|
|
10
|
Using Arduino / Networking, Protocols, and Devices / Re: reading from Serial, XBee-XBee communication
|
on: September 19, 2012, 03:00:42 pm
|
|
I found the solution myself after countless hardware inspections (changed nearly everything). It was not the hardware, it was the software.
Just to make sure that we are talking about the same things: I posted that I was sure the sending XBee works. It was just that I could not get it on the serial monitor with the help of a receiving XBee mounted on a shield on the and Arduino.
The solution was not to use the two serial statements together, i.e. Serial and SoftwareSerial. As I removed all the Serial.xxx commands I got my signals from the sending XBee on the monitor.
Serial.begin(9600); Serial.println("setup"); mySerial.begin(9600);
|
|
|
|
|
11
|
Using Arduino / Networking, Protocols, and Devices / Re: reading from Serial, XBee-XBee communication
|
on: September 17, 2012, 06:43:24 am
|
I have got an XBee which sends sensor data endlessly to another XBee. Where does this XBee get the sensor data? Are the sensors directly connected to the XBee, or is there an Arduino involved? The XBee and the sensor (BMP085 Bosch, pressure sensor) are connected to an standalone ATMega328P. 97991 1070 ... What kind of sensors are returning values like this? BMP085 (Bosch, pressure sensor) delivers pressure and the Arduino calculates a second kind of data (mapped)
|
|
|
|
|
12
|
Using Arduino / Networking, Protocols, and Devices / reading from Serial, XBee-XBee communication
|
on: September 16, 2012, 04:10:28 pm
|
Hi, I have got an XBee which sends sensor data endlessly to another XBee. It is the following two lines which are updated and send every 1000 msec: 97991 1070 ... Using an XBee mounted on an XBee Shield (Sparkfun WRL-09976) together with PuTTY to display the data works fine. The sensor data run endlessly over the screen. However, I see the data only once when I use the Arduino Uno to display the data coming in over an XBee mounted on a XBee shield (DFRobot DFR0015): 97991 1070 setup ---- ---- ---- ---- So it seems that the data from mySerial are only read once. I got the follwoing coding: #include <SoftwareSerial.h>
SoftwareSerial mySerial(2, 3); // RX, TX
void setup() { Serial.begin(9600); Serial.println("setup"); mySerial.begin(9600); } void loop() { if (mySerial.available()) { Serial.print((char)mySerial.read()); } if (Serial.available()) { mySerial.print((char)Serial.read()); } delay(4100); Serial.println("----"); }
Any ideas what my error is ? Thanks AgeBee
|
|
|
|
|
14
|
Using Arduino / Networking, Protocols, and Devices / Re: Jennic JN5148 wireless microcontroller
|
on: May 24, 2012, 03:02:41 pm
|
No.
What are you looking to do with it? Just use it as an RF device to talk with another card using its UART interface or the SPI interface?
Or something more?
I need another RF and would like to test another brand. Not that I am dissatisfied with my current but just to check if two different brands work smoothly together as they should.
|
|
|
|
|