Show Posts
Pages: 1 ... 4 5 [6] 7 8 ... 10
76  Using Arduino / Project Guidance / Burning bootloader on atmega2560 on: January 03, 2013, 06:53:46 pm
Hi, how do I burn a bootloader onto the Atmega2560? Are there the Same Pins used as shown on the breadboard Version for the atmega328 on this Site? Mosi/Miso/SSK and the Reset pin?

20/21/22 and 30 (Reset) on the 2560?
http://arduino.cc/en/Tutorial/ArduinoToBreadboard

Can I do this with the arduino ISP using an atmega328?

77  Products / Arduino Due / Re: Due Minimal Circuit on: January 01, 2013, 07:57:16 pm
no drawing of the chip, but the same table is here:

http://arduino.cc/en/Hacking/PinMappingSAM3X



But the Chip has 144 Pins, or am I wrong?
78  Products / Arduino Due / Re: Due Minimal Circuit on: December 26, 2012, 05:16:54 pm
Hi, Thanks! But I was looking for a Pinmapping like the atmega has (for the Chip only).

Like this
http://arduino.cc/en/Hacking/PinMapping2560
79  Products / Arduino Due / Due Minimal Circuit on: December 26, 2012, 10:31:53 am
Hi!

I want to etch my own Board with a due. What do I really need to get them to work? I want to flash the Chip with JTAG. So I dont need the Config 5V Circuit with the Tiny. What about the erase circuit? I planned to use a simple button to reset the Chip since I dont need a automatic circuit for this.

It would be more simple if I could use the USB Interface. As described in this clone, they left out the Tiny Chip.
http://www.ebay.de/itm/TAIJIUINO-Due-Pro-Board-completely-compatible-with-Arduino-Due-/130825173003?pt=LH_DefaultDomain_0&hash=item1e75c9b80b#ht_6491wt_1144


Im using this Circuit to build mine
http://arduino.cc/en/uploads/Main/arduino-Due-schematic.pdf

Is there a complete Pinmapping for the due available? Since the Diagramm on the arduino page is incomplete.

regards
80  Products / Arduino Due / Arduino due and Apple Airplay on: December 25, 2012, 06:20:19 pm
Hi!

At the moment, Im using an Apple AirPort Express and a raspberry Pi for airplay. The Thing is that the AirPort is Way to expensive for just using airplay. The raspberry Needs to Long to Boot and i think its an Overkill.

With the due, we have some additional MHz to Start with. Did anybody try to Start with a Project yet? Any Status? Will this Even be possible? My Dream would be an arduino airplay with spdif Out smiley

-tsaG
81  Using Arduino / Microcontrollers / Burning Bootloader on Atmega2560 and ATSAM3X8EA-AU PU on: November 22, 2012, 01:42:11 pm
Hi!

I have one question for two Chips. How do I upload the Bootloader onto an Atmega2560? I planned to use an Arduino as ISP. Which lines do I need?
The same question goes for the ATSAM3X8EA-AU CPU, did anobody flash this CPU before?

regards

-tsaG
82  Using Arduino / Microcontrollers / Re: Where can I get the DUE CPU? on: October 31, 2012, 03:03:06 am
Thanks! I also found a programming board which is capable of QFP144 Chips
http://www.ebay.de/itm/260973332140?ssPageName=STRK:MEWAX:IT&_trksid=p3984.m1423.l2649#ht_4072wt_1144

All you need (as far as I have seen) is an UART to USB Converter.

I hope this stuff will get cheaper by time as the DUE becomes more popular.
83  Using Arduino / Microcontrollers / Where can I get the DUE CPU? on: October 30, 2012, 05:52:19 pm
Hi!

As the Due is realeased many of my problems have been solved. I could use one processor where I used several before.

Testing with the Arduino DUE Board is fine, but where can I get the CPU to place them in my gadgets?

I was using several Unos (Atmega328) before, now I want to swap to the 32bit platform.

I found a 32-bit CORTEX-M3 Chip at my local dealer (Reichelt) which is a STM32 from ST-Electronics. Can I use them with the Arduino Software?

regards

Patrick

84  International / Deutsch / 4 verschiedene Drehencoder auslesen on: October 30, 2012, 05:02:29 pm
Hallo!

Ich habe einen Arduino der über I2C die Werte von 4 verschiedenen Drehencodern ausgeben soll. Diese werden dann vom I2C endgerät ausgewertet und an den Arduino zurück gesandt. Dieser schaltet dann (je nach Daten welche Empfangen wurden) LEDs welche über 5 Shiftregister angeschlossen wurden.

Ich wollte die Drehencoder nicht über Interrupts anschliessen da die Daten ja über I2C versandt werden und ich mir da keine Verzögerungen leisten kann. Gibt es eventuell irgendwelche bestehenden Libraries oder Projekte die ich nutzen könnte?
Die Encoder werden von Hand gedreht, müssen also nicht sooo schnell aktualisiert werden (vielleicht 100ms?).

Die Verwendeten Encoder haben 30 Rastungen und 15 Impulse pro Umdrehung.
http://www.reichelt.de/Drehimpulsgeber/STEC11B02/3//index.html?ACTION=3&GROUPID=3714&ARTICLE=73912&SHOW=1&START=0&OFFSET=500&
85  Using Arduino / Programming Questions / Re: Problem shifting bitwise Output on: October 22, 2012, 06:26:49 pm
Okay, I had a closer look

Code:
Input (on my rasbperry)
i2cset -y 1 0x46 0x1 0x50
Thats a value of 80
What it should be
01010000
What it is
0111000

i2cset -y 1 0x46 0x1 0x1 (1)
What it should be
0001
What it is
1000100

i2cset -y 1 0x46 0x1 0xFF (255)
What it should be
1111111
What it is
1111111

Maybe I should try to do it all by myself without the library, but I guess this will take a while since I have no Idea how to operate the shift registers manually.
86  Using Arduino / Programming Questions / Re: Problem shifting bitwise Output on: October 22, 2012, 05:50:56 pm
Hi,

Im sending values between 1 and 255 to the Arduino (0x1 and 0xFF). I guess (Im not really sure) its using msb.

So there are no errors in this code since the result differs from those online conversion tools.
I guess I have to build an serial adapter for a debug console to see what really happens. :-/
87  Using Arduino / Programming Questions / Problem shifting bitwise Output on: October 22, 2012, 02:11:37 pm
Hi!

I have 7 Relais which should be switched bitwise. Im using this code

Code:

const byte volnumPinsright = 7;
byte volpinsright[] = {
  0, 1, 2, 3, 4, 5, 6};

void setvol(int vol){
    for (byte i=0; i<volnumPinsright; i++) {
        byte state = bitRead(vol, i);
        shifter.setPin(volpinsright[i],state);
      }
 shifter.write();
}

Im using a 74HC595 Shiftregister with this Library
http://bildr.org/2011/08/74hc595-breakout-arduino/

Do you see any logical mistakes in this piece of code? The problem is that it doesnt work properly, the values dont agree with the online conversion tools ( like this http://easycalculation.com/decimal-converter.php)

Any suggestions?


EDIT:
Here the whole code
Code:
#include <Wire.h>
#define myAdress 0x46 //I2C Adresse dieses Moduls
boolean debug = true;
//Konfigurieren der Shift register
#include <Shifter.h>
#define SER_Pin 11 //SER_IN
#define RCLK_Pin 8 //L_CLOCK
#define SRCLK_Pin 12 //CLOCK
#define NUM_REGISTERS 2
Shifter shifter(SER_Pin, RCLK_Pin, SRCLK_Pin, NUM_REGISTERS);

//Lautstärkeregelung
//Rechts
const byte volnumPinsright = 7; //Anzahl der Pins für die Lautstärkeregelung
byte volpinsright[] = {
  0, 1, 2, 3, 4, 5, 6}; //Pins für die Lautstärkeregelung (7 Stück)
//Links
const byte volnumPinsleft = 7; //Anzahl der Pins für die Lautstärkeregelung
byte volpinsleft[] = {
  8, 9, 10, 11, 12, 13, 14}; //Pins für die Lautstärkeregelung (7 Stück)
//Quellenwahl
int currentout = 0; //aktuelle Ausgang


void setup()
{
 
  Wire.begin(myAdress);                // join i2c bus with address #4
  Wire.onReceive(receiveEvent); // register event
if (debug){  Serial.begin(9600);}       // start serial for output
}

void loop()
{
}

// function that executes whenever data is received from master
// this function is registered as an event, see setup()
void receiveEvent(int howMany)
{
  int data[howMany];
  while( Wire.available()) // loop through all
  {
    //dfuliod
    for (int i=0; i < howMany;i++){
      data[i] = Wire.read(); // receive byte as int
    }
  }
  work(data);
}
void work(int data[]){
  switch (data[0]){
  case 1:
    { //Lautstärke einstellen
      for (byte i=0; i<volnumPinsright; i++) {
        byte state = bitRead(data[1], i);
        shifter.setPin(volpinsright[i],state);
       

      }
 shifter.write();
    }
   
    break;
     case 2:
    { //Lautstärke einstellen
          for (byte i=0; i<volnumPinsleft; i++) {
        byte state = bitRead(data[1], i);
        shifter.setPin(volpinsleft[i],state);
       

      }
 shifter.write();
    }
    break;

  case 3:
    {//Eingang wählen
      int output = (data[1]+1); //unsere Eingänge fangen bei 2 an.
      digitalWrite(currentout,LOW);
      delay(5); //Warten bis sich das Relais geschaltet hat.
      digitalWrite(output, HIGH);
      currentout = output;
    }
    break;
  case 4:
    {//Ausgang wählen
      if (data[1]==1){//Entzerrer aktivieren
      digitalWrite(9, HIGH);
      digitalWrite(10, HIGH);
     
      }
      else{//Entzerrer deaktivieren
      digitalWrite(9, LOW);
      digitalWrite(10, LOW);
      }

      break;
    }
  }
}

Receiving via I2C and switching the relays
88  Using Arduino / General Electronics / Drive a nixie tube on: September 23, 2012, 04:27:01 pm
Hi!

Which transistor do I need to drive a IN-4 nixie tube? I just need to switch 3 different numbers with 170V voltage. It would be best if I could use simple transistors, no need for an IC

-tsaG

EDIT: Done! I found the MPSA 42 transistor which is capable to drive 300Vv smiley
89  International / Deutsch / Re: Servo ruckelt wenn Gleichstrommotor läuft on: August 25, 2012, 04:01:17 pm
Vor allem unbedingt noch eine freilaufdiode verwenden. Probier das mal aus, eventuell induziert der Motor noch Spannungen in deinen Kreislauf.
90  Using Arduino / Programming Questions / Re: For Loop for Duo LEDs (Shiftout) on: August 25, 2012, 02:20:32 am
Any idea, anyone?
Pages: 1 ... 4 5 [6] 7 8 ... 10