Show Posts
|
|
Pages: [1]
|
|
1
|
Forum 2005-2010 (read only) / Development / Re: Arduino frequency counter
|
on: January 22, 2011, 11:04:06 pm
|
|
It looks like you don't plan to use the internal analog comparator like the library that you reference since you already have an external one.
Also it looks like you plan to just use 2 pins and I assume 2 counters for this.
Is my understanding correct?
|
|
|
|
|
2
|
Forum 2005-2010 (read only) / Development / new open source project
|
on: January 19, 2011, 10:07:32 pm
|
Hi all, This is a one-time post to announce the creation of Arduino Doodles. Arduino Doodles aims to be a collection of Arduino sketches and libraries that can be reused by other interested parties. If you have a library written for a specific IC, or an interesting sketch that can be used independent of other custom hardware/shields, and you feel that it may be useful to other people this would be the perfect place to share it. Arduino Doodles is now running code, is under active development, and is looking for both developers and testers. Home page: http://sourceforge.net/projects/arduinodoodles/Requirements * Arduino board * Arduino Software * occasionally some library contained in this project Thank you,
|
|
|
|
|
4
|
Forum 2005-2010 (read only) / Development / Re: Duemilanove engineering drawings
|
on: September 30, 2010, 09:08:13 pm
|
|
@ Graynomad:
Hi
As I'm looking at my Arduino, the distance from the left edge to digital pin 8 is less than the distance from the left edge to pin Vin. However on the picture you posted 48.8 although shown as less is greater than 44.7. Is it possible they are not reversed by accident?
|
|
|
|
|
12
|
Forum 2005-2010 (read only) / Interfacing / Re: I2C slave receiver problem
|
on: August 21, 2010, 06:33:37 pm
|
|
No argument from me on this, but if it's not good maybe it should not be in the official Wire library examples either. The code that you see is the slave_receiver.pde with HEX added for formatting.
I'll try your suggestion to see if it makes any difference.
I'm beginning to suspect the scripts that I use to control the I2C master, but unfortunately I have to wait until Monday to ask my colleagues about them.
Thank you all for your help and quick replies.
|
|
|
|
|
13
|
Forum 2005-2010 (read only) / Interfacing / Re: I2C slave receiver problem
|
on: August 21, 2010, 04:38:11 pm
|
Hello, It's basically the slave_receiver example, just modified to show the byte value in hex. #include <Wire.h>
void setup() { Wire.begin(0x55); Wire.onReceive(receiveEvent); // register event Serial.begin(19200); // start serial for output Serial.println("receive test"); }
void loop() { delay(100); }
// function that executes whenever data is received from master // this function is registered as an event, see setup() void receiveEvent(int howMany) { while(1 < Wire.available()) // loop through all but the last { char c = Wire.receive(); // receive byte as a character Serial.println(c, HEX); // print the character } int x = Wire.receive(); // receive byte as an integer Serial.println(x, HEX); // print the integer }
I can try to capture of the iPort waveforms also, to show that it outputs correctly. We've used this device extensively with no problems, but a second check never hurts ...
|
|
|
|
|
14
|
Forum 2005-2010 (read only) / Interfacing / I2C slave receiver problem
|
on: August 21, 2010, 10:54:43 am
|
|
Hello,
I am trying to use the Wire library for I2C communication. However I have the following problem: the first byte sent by the master is reported incorrectly by the Wire library. More specific:
- if I send 0x12 from the master, I get 0x31, 0x32 on Arduino - if I send 0x12, 0X34 from the master, I get 0x31, 0x32, 0x34 on Arduino
It looks like the first received byte is split in half and reported as ASCII codes. The master is a iPort/AFM RS232-I2C Host adapter which was extensively used in our lab and works reliably.
Did anybody notice this problem? Any suggestions are welcome.
|
|
|
|
|