Show Posts
Pages: 1 [2] 3 4 ... 7
16  Using Arduino / Microcontrollers / Re: Attiny2313 Programming on: March 29, 2013, 11:45:35 am
I changed the delay path so now its fixed. but not the other errors like (for example):

Code:
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/Print.cpp: In member function 'void Print::print(const String&)':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/Print.cpp:48: warning: comparison between signed and unsigned integer expressions

/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_pulse.c: In function 'pulseIn':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_pulse.c:48: warning: cast to pointer from integer of different size

/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c: In function 'pinMode':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c:43: warning: cast to pointer from integer of different size
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c: In function 'digitalWrite':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c:120: warning: cast to pointer from integer of different size
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c: In function 'digitalRead':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c:146: warning: cast to pointer from integer of different size

/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:70: warning: initialization makes integer from pointer without a cast

The sketch some works some kid when i just que the digitalpin1.on.. digitalpin1.off..digitalpin2.on ...  Without the delay. So I tried the "Blink without delay" example but this doesnt work at all. Looks like as if none of the libraries are working (?)
17  Using Arduino / Microcontrollers / Re: Attiny2313 Programming on: March 29, 2013, 10:52:05 am
Okay, I imported the library and everything compiled so far.

I uploaded it using Atmel Studio (since I dont want to use the Bootloader on the small Attiny smiley-grin). As I plugged it in, its way to fast! I chose 8mhz in the menu but the 1mhz version doesnt work neither.

Then, when I tried another output, works finde but still the "speed problem". Now I added another Output to it so it switched between 11 and 12. Doesnt work!

It just switches the first in line! So my guess is that this thing is setting the output and then (somehow) restarting, setting the output..... and so on.

Any suggestions?

I flashed the Attiny of this Relayboard.
http://www.produktinfo.conrad.com/datenblaetter/175000-199999/197720-an-01-ml-8FACH_RELAISKARTE_24V_7A_de_en_fr_nl.pdf
http://www.conrad.de/ce/de/product/197720/Conrad-8fach-Relaiskarte-24-VDC-7-A-Baustein-8-Relaisausgaenge
Quite simple. an 7805 for power supply. An Toshiba Darlington Array and a MAx232 chip for Serial Output (not needed).

The Attiny is powered on pin 20 (VCC) and 10 GND. 8Mhz Oscillators on Pin 4 and 5.

The fuses are set as the following (didnt change it and left the default settings):

I also activated the internal clock divider once but there is no difference

BTW: I get some warnings while compiling, are those warnings normal? Mainly delay.h


Code:









/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-g++ -c -g -Os -Wall -fno-exceptions -ffunction-sections -fdata-sections -mmcu=attiny2313 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=104 -I/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny /var/folders/yh/7z4yt3513s508pr0kwzw7zb40000gn/T/build6049173189546008161.tmp/Blink.cpp -o /var/folders/yh/7z4yt3513s508pr0kwzw7zb40000gn/T/build6049173189546008161.tmp/Blink.cpp.o
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/avr-gcc -c -g -Os -Wall -ffunction-sections -fdata-sections -mmcu=attiny2313 -DF_CPU=1000000L -MMD -DUSB_VID=null -DUSB_PID=null -DARDUINO=104 -I/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny /Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c -o /var/folders/yh/7z4yt3513s508pr0kwzw7zb40000gn/T/build6049173189546008161.tmp/pins_arduino.c.o
In file included from /Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_private.h:32,
                 from /Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:38:
/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:70: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:71: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:73: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:79: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:80: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:82: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:88: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:89: warning: initialization makes integer from pointer without a cast
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/pins_arduino.c:91: warning: initialization makes integer from pointer without a cast

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c: In function 'pinMode':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c:43: warning: cast to pointer from integer of different size
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c: In function 'digitalWrite':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c:120: warning: cast to pointer from integer of different size
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c: In function 'digitalRead':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_digital.c:146: warning: cast to pointer from integer of different size

/Applications/Arduino.app/Contents/Resources/Java/hardware/tools/avr/bin/../lib/gcc/avr/4.3.2/../../../../avr/include/avr/delay.h:36:2: warning: #warning "This file has been moved to <util/delay.h>."
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_pulse.c: In function 'pulseIn':
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_pulse.c:48: warning: cast to pointer from integer of different size
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_pulse.c:53: warning: cast to pointer from integer of different size
/Users/patrick/Documents/Arduino/hardware/tiny/cores/tiny/wiring_pulse.c:58: warning: cast to pointer from integer of different size

18  Using Arduino / Microcontrollers / Attiny2313 Programming on: March 29, 2013, 09:17:10 am
Hi!

I want to programm an Attiny2313 over ISP (I do have an mySmartUSB). What do I need? My plan is to write the code, choose the Board, export the hex file and burn it using atmel studio (or similar).

I already tried this: http://hlt.media.mit.edu/?p=1695
But after I placed those files in my Arduino/hardware folder and want to start the Arduino IDE it crashes and says "Menu has no enabled Items".

How do I do it correctly? Where do I get the library (?) from?
19  Using Arduino / Project Guidance / Controlling a rs-232 Relaisboard via web on: March 29, 2013, 06:39:36 am
Hi!

I want to connect an rs232 Relais board to my Arduino, thats the first step. The second will be to add an Webserver function, but lets start with the Relaisboard first.

I have two of those Boards (and some older Version which dont support function 4 and 5).

Now my try was the following
Code:
/*
  AnalogReadSerial
 Reads an analog input on pin 0, prints the result to the serial monitor.
 Attach the center pin of a potentiometer to pin A0, and the outside pins to +5V and ground.
 
 This example code is in the public domain.
 */
byte a= 3;
byte b =0;
byte c=48;
byte d= a^b^c;

void setup() {
 Serial.begin(19200);
}


void loop() {
  // read the input on analog pin 0:

  // print out the value you read:
  Serial.write(a);
  Serial.write(b);
  Serial.write(c);
  Serial.write(d);
  delay(500);        // delay in between reads for stability
}

But this doesnt work smiley-sad.

What did I do wrong? Here is the Product site
http://www.conrad.de/ce/de/product/197720/Conrad-8fach-Relaiskarte-24-VDC-7-A-Baustein-8-Relaisausgaenge
and here the Manual
http://www.produktinfo.conrad.com/datenblaetter/175000-199999/197720-an-01-ml-8FACH_RELAISKARTE_24V_7A_de_en_fr_nl.pdf
20  Using Arduino / Programming Questions / Re: Arduino Due over SWD with external Programmer on: March 21, 2013, 12:53:26 pm
*push*
21  Using Arduino / Programming Questions / Arduino Due over SWD with external Programmer on: March 18, 2013, 02:07:20 pm
Hi!

I was using my old UNO with an AVR Programmer, everything worked fine. Now I switched to the DUE and a J-Link JTAG. How can I upload my sketches directly with my programmer? With AVR I just needed to Choose one frome the menu, but there are no ARM Programmer yet. Any suggestions?

I already found the following document, but as far as I see it is for AVR programmer as well.
http://arduino.cc/en/Hacking/Programmer
22  Products / Arduino Due / Re: Arduino Due JTAG doesnt work :( on: March 17, 2013, 11:42:26 am
Thanks, it worked! I had to choose SWD and not JTAG, didnt knew that smiley-grin
23  Products / Arduino Due / Arduino Due JTAG doesnt work :( on: March 16, 2013, 02:29:24 pm
Hi,

I just soldered and connected my J-link to my Arduino Due (Taiji-uino DUE). But he cant find the Chip smiley-sad. When I use it as "Standalone" without powering the Due via USB J-Link Flash says:
Quote
Supply Voltage to low (1 Volt is required, Measured 0,0V)
Please Check target Power
Unable to Connect

So far so good. When I connect the USB Plug, it takes 2-3 sec. until this message appears
Quote
Connecting ...
 - Connecting via USB to J-Link device 0
 - J-Link firmware: V1.20 (J-Link ARM V8 compiled Nov 14 2012 22:34:52)
 - JTAG speed: 5 kHz (Fixed)
 - Initializing CPU core (Init sequence) ...
    - Initialized successfully
 - JTAG speed: 5 kHz (Auto)
 - J-Link found 0 JTAG device. Core ID: 0x00000000 (ARM9)
 - Reading CFI info ...
    - Could not find CFI compliant flash device
 - Detecting flash memory ...
    - ERROR: Could not find any flash devices
 - ERROR: Failed to connect

Now trying the Same with J-Link (without flash)
Quote
OEM: SEGGER-EDU
Feature(s): FlashBP, GDB
VTarget = 2.497V
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.

WARNING: RESET (pin 15) high, but should be low. Please check target hardware.

WARNING: RESET (pin 15) high, but should be low. Please check target hardware.
No device found on SWD.
Did not find any core.
Failed to identify target. Trying again with slow (4 kHz) speed.
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
Info: TotalIRLen = ?, IRPrint = 0x..000000000000000000000000
No devices found on JTAG chain. Trying to find device on SWD.

WARNING: RESET (pin 15) high, but should be low. Please check target hardware.

WARNING: RESET (pin 15) high, but should be low. Please check target hardware.
No device found on SWD.
Did not find any core.
J-Link>

But when I try the same with pressing the RESET button the 0V problem appears in the J-LINK Flash Software (as mentioned above).


Are there any basic things I have to do before I start to program?
24  Products / Arduino Due / Re: Sam3x8e temperature on: March 11, 2013, 03:48:10 pm
Well, which LEDs do you use? LED 13? While the Arduino uses an Amplifier, your board directly (?) connects to the LED. But in both ways, the Chip can only provide 3 to 15mA. I dont know if the LED on the Due Board is an Low Current LED but otherwise it would need a higher current than the DUE can provide and maybe even damage the Chip.

25  Products / Arduino Due / Due Pinmapping wrong on: March 11, 2013, 03:36:01 pm
Hi!

I just took a look on the Pin Mapping table of the Arduino Due Website. A quick comparing look on the circuit showed that the "Due Pin Number" table is wrong. Or do I misunderstand something?

Also, im planning to use some Shiftregisters with the Due. Which Pins do I need? D70 (Clock), D10 (?), and D4 (?) ?

regards

26  Using Arduino / Microcontrollers / Re: [Solved] Help with ATSAM3X8E (Due barebones) on: March 10, 2013, 06:46:33 pm
So, thats how my "minimum" looks like. Well, thats all I need. I wont be frugal with the capacitors and hope this works smiley-grin
Sorry for the wrong symbol of the switch (Schalter), but Multisim/Ultiboard doesnt allow different footprints for buttons :-/

27  Using Arduino / Microcontrollers / Re: Help with ATSAM3X8E (Due barebones) on: March 10, 2013, 09:20:18 am
So, does it work? smiley
28  Using Arduino / Microcontrollers / Re: Help with ATSAM3X8E (Due barebones) on: March 06, 2013, 06:12:40 pm
Yeah, I saw that document after I built my circuit smiley-grin
Ill try to create my circuit like the "3.3V and 1.8V Dual Power Supply Schematic Example" tomorrow and see how it goes. Im planning to replace the old Atmega Chips with this one but, as you already mentioned, the Chip is very critical and stubborn smiley-grin
29  Using Arduino / Microcontrollers / Re: Help with ATSAM3X8E (Due barebones) on: March 06, 2013, 02:18:43 pm
I got the same problem here smiley-sad. Using the same "minimal" Circuit.
30  Using Arduino / Project Guidance / Re: Build own due, easiest Way to flash on: March 02, 2013, 04:30:26 pm
Hi, I'm also very interested in this. Actually I program the ATMEGA IC's with an AVR MKII, but I wonder if it is possible to the same with the DUE IC. (not the complete arduino board, just the IC).

I try to get my hands on to an Atmel Sam-ICE. As far as I know its not possible to programm an ARM Chip with an AVR Programmer.
http://www.atmel.com/Images/doc11057s.pdf
As I understood, to JTAG the device we need to have an 10 Pin JTAG Connector ( Table 3-1 + DCC and GND). Is this correct so far?


I dont think you can program the Chip directly within the Arduino IDE right now, but maybe someone who is more into this can tell us more? smiley

regards
Pages: 1 [2] 3 4 ... 7