Show Posts
Pages: 1 ... 10 11 [12] 13 14 ... 38
166  Products / Arduino Due / Re: audio in due on: December 05, 2013, 11:45:24 am
Hello m_lab85,

The tutorial makes reference to the TL0xx (see step 3). Those opamps do not have GND pin but Vcc-.
http://www.ti.com/lit/ds/slos080j/slos080j.pdf

Thus, I believe the GND in the OP-AMP symbol of Amanda's schematics should be Vcc-.

Also, there are two 9V batteries connected in series to power the OP-AMP.
- The positive of the top battery supplies +9V and is your +Vcc for the opamp.
- The negative of the bottom battery has -9V and is your -Vcc for the opamp.
- The negative of the top battery (or the positive of the bottom battery) is your OV reference (float ground) for the Arduino.

I hope this helps. Regards!
167  Products / Arduino Due / Re: Unable to use Ethernet and SD at the same time on DUE, but on UNO it works fine on: December 05, 2013, 11:06:16 am
Hello nakedsensor,
UNO and DUE have different micro-controllers (AVR and SAM3X), thus, internally they work also differentlyand use different libraries. Please, look at the following thread.

  http://forum.arduino.cc/index.php?PHPSESSID=i72gnopc96nc0rehg2698fphg1&topic=189348.msg1402905#msg1402905

There, in my reply #7 you will find a code that works OK for a DUE and an Ethernet shield. Good luck!
-P
168  Products / Arduino Due / Re: Connecting an Ethernet PHY to Arduino Due on: December 03, 2013, 04:25:13 pm
Hi Tony,
I am very happy and surprised with your Duet. Also anxious to watch the video. It reassures me that every grain of sand distilled from the forum can inspire people like you. I take my hat off to you guys. Best regard! Palliser
169  Using Arduino / Sensors / Re: yaw stability on: November 30, 2013, 10:32:35 am
Hello dr_no,
Are you using the Arduino library or another one like Jeff Rowberg's?
Jeff'DMP, once detects the yaw values as drift rather than movement, it decreases the jaw value for abour 20-30 sec before stabilize (normally from 30 to zero). Remember that jaw from gyros will always drift. If you want a stable jaw you will need a magnetometer but then you will have to deal with magnetic external interference. Regards!
170  Community / Workshops and Events / Bipom/EPO AVR Arduino Workshop - Saturday 16 November (Houston TX) on: November 11, 2013, 09:07:24 am
For all those Arduino fans living in Houston TX, this Saturday, Nov 16th at 12:00 NOON at EPO, the people from BiPOM Electronics will be having a workshop on AVR microcontrollers and Arduino compatible shields.

This will be a fun AVR workshop detailing the workings of the AVR processor and how shields and peripheral boards can be adapted across different platforms. This allows users who are already familiar with the Arduino layout to use other more sophisticated peripherals. Or those who want to use more sophisticated microcontrollers can easily connect special Arduino ready shields.

This workshop is geared towards everyone, from the middle school student to the post-grad hobbyist. There is no charge to attend.

Information provided by Manager Chris Maca (EPO)

Electronic Parts Outlet
3753 Fondren
Houston, TX 77063
713-784-0140
www.epohouston.com
171  Products / Arduino Due / Re: vid/pid for arduino_due_x_dbg in boards.txt on: November 04, 2013, 04:18:18 pm
Hello ibaldini,

I believe the board.txt is OK.

In my understanding, given that both USB interfaces ("Programming' and 'Native') are embedded in the same vendor embodiment (Arduino), they have the same Vendor ID.

vid.0=0x2341 (Programming)
vid.0=0x2341 (Native)

In reference to the USB Product IDs, each USB interface uses a different firmware. 8-bit AVR (handle with ATmega16U2) for the 'Programming' port and SAM3X8E for the 'Native' port. Thus, there must be a different ID for each product which permits (IDE 1.5.4) the auto detection of boards connected to each serial port.

pid.1=0x003d (Programming)
pid.0=0x003e (Native)

Notice that in case you need to change/reprogram the ATmega16U2, you will need a unique reference of the ATmega using vid.0 and pid.1. Similar case for the SAM3X8E which ID depends on the running firmware.

Your question do raise another question of whether is required or not a pid.2 when running Atmel's SAM-BA bootloader and a JTAG with pid=0x6124.

Regards!
172  Products / Arduino Due / Re: Arduino DUE + SPI Pins Ethernet Shield on: November 04, 2013, 02:31:17 pm
Hello f.schiano,
dan@togglebit.net is right. SAM3X8E has only one SPI controller (SPI0) with 4 chip selects (CS0-CS3). Only SAM3X8H has 2 SPI controllers (SPI0/SPI1).

What I would recommend is to make the Ethernet shield and your DAC to share the SPI pins. In order to to that you will need to unsold and replace the SPI connector with a one that permits access to the SPI pins. Just a thought. Regards!
173  Products / Arduino Due / Re: DAC in Arduino Due on: November 04, 2013, 11:21:40 am
Hello m_lab85,

I just made a brief test with your code but simulating the digital input, and got in my oscilloscope a 13 seconds ramp from 0.6v to 2.8v at the DAC1 pin which means to me that your code should run OK. A caveat regarding DAC Due outputs: do not connect any load directly to the DAC pins of the Arduino Due. Use an amplification circuit between the DAC pin and the load as is shown here: http://arduino.cc/en/Tutorial/SimpleAudioPlayer 

Here my test code:
Code:
const int digitalInputPin = 26;
void setup() {
  pinMode (DAC1,OUTPUT);
  pinMode (digitalInputPin,INPUT);
  Serial.begin(9600);
 
}

void loop() {
 
int b;

 for(int i=0; i<4096; i++)
 {
 b = digitalRead (digitalInputPin);// Read pin 26
 
  analogWriteResolution(12); //12 bits resolution
 analogWrite(DAC1, i); // output values of varible b at the Digial to analog converter
 delayMicroseconds(14);
   Serial.println (b);
 }
while(0){                     // loop goes forever
  }

}

I hope this helps. Regards.
174  Products / Arduino Due / Re: Help needed to get the SD card reader working on: October 31, 2013, 08:38:22 am
Hello pepito11,
Have you tried as follows:

Code:
pinMode(sd_cs, OUTPUT);
//digitalWrite(sd_cs, LOW);
if ( !SD.begin(sd_cs) )
       Serial.println("SD card initialization failed");

Regards.
175  Products / Arduino Due / Re: Compiling on the UNO but not on the DUE on: October 29, 2013, 09:13:04 am
Hello f.schiano,

In several aspects, UNO and DUE libraries are different given that they are referenced to their MCUs (AVR and SAM respectively). The SPDR or SPI data register you mention, belongs to the on-chip SPI controller of the AVR and is identified/declared different from the ATSAM3X8E, where two SPI controllers are used. Even though the Arduino/Atmet tried to adapt DUE to the Arduino environment, sometimes it is necessary to do a 'porting' like when using timer registers or like in your case. Indeed, their IDEs are different too. If you can share the UNO sketch you are trying to run in your DUE, we may help with with the porting. Regards!
176  International / EspaƱol / Re: MPU6050 problema on: October 26, 2013, 11:12:16 pm
Hola Bellot,
En tu primer ejemplo, la funcion twi_writeTo requiere de 5 parametros y solo veo cuatro.
Debes agregar un cero al final como se muestra a continuacion.

Code:
rc = twi_writeTo(addr, &data, 0, 1, 0);

No dispongo de un MPU6050 pero con dicho cambio el sketch corre bien.

Para el segundo ejemplo, si bien compilar bien, pudiera tratarse de un problema en el cableado, por lo que te recomiendo que lo verifiques de nuevo:

Quote
MPU6050       Arduino
VCC -----------  3V3
CS ------------   3V3
GND ----------- GND
SDA -----------  Analog 4
SCL -----------  Analog 5

Tampoco se la marca de tu acelerometro. Algunos fabricantes no colocan los pull-up resistors en los pines SCL/SDA lo que genera problemas de comunicacion.

Saludos cordiales y suerte.
177  Using Arduino / Sensors / Re: Help calculating xyz-coordinates of a 2nd. point of a line in 3D on: October 24, 2013, 10:50:09 pm
I just wanted to comment that my gyro angles are Euler angles. Thus, the following conversion formulas from Wikipedia didn't work.

Quote
x=r * sin(theta) * cos(phi)
y=r * sin(theta) * sin(phi)
z=r * cos(theta)


http://en.wikipedia.org/wiki/Spherical_coordinate_system#Cartesian_coordinates

I still don't know how to fit my Euler angles in the Euclidean space.  For my direct raw tests, I am using and Arduino with 3 pots mapped from 0 to 360. Regards!

178  Products / Arduino Due / Re: Building a CAN API for Arduino DUE on: October 23, 2013, 03:26:25 pm
You shouldn't have problems with the CAN examples (1,2,3 or 4). The idea behind the ported CAN project from Atmel to Arduino was to test the two CAN controllers (CAN0 and CAN1) doing the loop as you may have seen in this post. Assuming that your CANBUS side is OK, in the CAN side you should verify the following for the CAN0 transceiver (SN65HVD234):

1. Verify that pin 1 of the transceiver is connected to the CANTX pin of the DUE.
2. Verify that pin 4 of the transceiver is connected to the CANRX pin of the DUE.
3. Verify that pins 2 and 8 of the transceiver are connected to GROUND.
4. Verify that pins 3 and 5 of the transceiver are connected to +3V3.
5. Verify that the terminal resistor (120 ohm) is connected between CANH and CANL terminals.

See picture on reply #33
http://forum.arduino.cc//index.php?PHPSESSID=sd97s9v75d5d3d2r0fc23mcqu2&topic=131096.30

One more thing. Some CAN converters are aimed for low speed CAN networks, thus, you could try also to change the default CAN speed of 1Mbit to a lower value. For example to change the speed to 250Kbit, replace the following lines of the samples:

Code:
CAN.init(SystemCoreClock, CAN_BPS_1000K);
 CAN2.init(SystemCoreClock, CAN_BPS_1000K);

with

Code:
CAN.init(SystemCoreClock, CAN_BPS_250K);
 CAN2.init(SystemCoreClock, CAN_BPS_250K);

I hope this help. regards!
179  Using Arduino / Sensors / Help calculating xyz-coordinates of a 2nd. point of a line in 3D on: October 23, 2013, 12:23:11 pm
I am not sure if this is the right board for my question. I though also of the Processing board but not sure.

I am obtaining the x, y and z angular positions from a L3G4200D gyroscope with values between 0 and 359 degrees.
With that information, I am rotating a line about the origin in a 3D space (using Processing).

If I set the distance of the line to a value d, is it possible to calculate the x,y an z coordinates of the second point with only the 3 angles and the distance? If so, I'd really appreciate any help or reference about how to do it. Thank you.
180  Products / Arduino Due / Re: Building a CAN API for Arduino DUE on: October 23, 2013, 09:53:36 am
Hello arduhanno,

Even though the current CAN bus library and examples were ported considering the Arduino DUE architecture and the Arduino IDE, the data that DUE spits or bites is pure CAN, thus, It shouldn't be so hard to make it work via USB.
I have done what you are trying to do but only via serial(DUE -> CAN Transceiver -> CAN-to-Serial converter -> PC).
I used a CAN Analyzer from an Italian brand (ADFweb). As a reference, for the serial communication I had to consider the following default parameters:
-Serial COM port.
-CAN bus protocol type: 11 bit
-CAN Baudrate: 1000K BPS

If you let me know the brand/model of the interface you are using, I could go through the documentation and see how they implemented it using USB. Regards!
Pages: 1 ... 10 11 [12] 13 14 ... 38