Show Posts
Pages: 1 2 3 [4] 5 6 ... 314
46  Using Arduino / Project Guidance / Re: Controlling 4 Digit 7 Segment Display on: April 15, 2014, 10:57:59 am
If it's wired like this, there is no way around it other than to change the internal wiring, which probably is more or less impossible.
47  Using Arduino / Sensors / Re: Reading multiple analog input on: April 15, 2014, 10:49:59 am
How is the Arduino powered? Try putting a 0.1µF capacitor between A0 and GND to filter possible spikes.
48  Using Arduino / Sensors / Re: wiring up a sharp GP2Y0A02 distance sensor on: April 15, 2014, 10:41:09 am
Quote
ok so you mean don't even bother using the library mentioned in the article and just try the function call you've mentioned?  (after wiring change?)

Yes, because that article is about a completely different technology, although the result may be comparable (getting a distance).
It's like reading an article about cars than take canister of gas on your bicycle and wonder why it's not moving itself. In traffic terms it's absolutely logical that not every machine made for moving humans from one place to the other works identical, in electronics it's almost the same, just because a sensor is able to measure distances doesn't mean that it works the same as the other distance sensor mentioned in an article.

Quote
Is the function you mention just a part of the default library that comes with the arduino IDE?

Yes.

49  Using Arduino / Sensors / Re: Reading multiple analog input on: April 15, 2014, 10:30:38 am
Code:
Serial.print((byte)tempC); //will output the converted temperature to pc

Why do you convert the calculated float into an integer for the output?

What's the '01' in the screen shot and why is that gone in the source code?

Code:
  if (tempC>35[img]http://[img][img][/img][/img][/img])

Correct that error too.
50  Using Arduino / Sensors / Re: IR Pulse Sensor Help on: April 15, 2014, 07:57:47 am
Code is not in code tags and there is no link to the used hardware. Please read the sticky post at the top of the forum.
51  Using Arduino / Sensors / Re: Reading multiple analog input on: April 15, 2014, 07:55:18 am
It might help if you tell us what sensors you connected to the Arduino and how you've done that (wiring diagram).

Edit your post and insert code tags, the forum system is manipulating code otherwise (as you probably can see).
52  International / Deutsch / Re: Wie ein LCD ansteuern ; LMC 1602 I2C ; Tutorial ; Sketch on: April 15, 2014, 07:35:49 am
Quote
Leider komme ich aber nicht dahinter, wie ich eine beschriebene Zeile wieder richtig überschreibe.  smiley-eek-blue

Hänge doch einfach an das lcd.print(Abstand) folgendes an:

Code:
lcd.print("     ");
53  Using Arduino / Networking, Protocols, and Devices / Re: I2C software implementation for Arduino on: April 15, 2014, 06:52:25 am
As you didn't specify which processor you're looking for: http://imall.iteadstudio.com/im130615003.html

Another, currently non-commercial, project (forum is in German): http://forum.boxtec.ch/index.php?topic=2417.0
54  Using Arduino / Networking, Protocols, and Devices / Re: Multiple sensor protocol issue on: April 14, 2014, 01:40:29 pm
Quote
Initialization seems long-ish, about 5 seconds, including the 1.3 seconds of programmed delays and initialization of the LCD. I'm not that familiar with the internals of the Dallas code, so I don't know if several seconds is excessive.

You need almost 3 seconds to read the 2 sensors in parasite mode. The initialization code does some searches and checks for power mode used so it probably needs also more than one second per sensor in parasite mode.

Quote
The DS19B20s are connected via 2-wire (parasite power) on D4 with a 4.7K pullup. The wire is 22-gauge twisted pair telephone wire, about 3 feet long. (I have used these devices in a star topology up to 60 feet, which works well only if you add a pullup resistor for each leg.) The sensors work great, currently. I can remove power and restart the system and they continue to initialize correctly.

The cable is OK, I used much longer cables for my sensors and I never had problems. I would expect problems with unshielded cables in a electrically very noisy environment like and industry complex but for home usage this should be great.

Quote
At one point I reversed the order of the "sensors1.begin()" and the "Serial.begin()", which seemed to fix the problem, but it soon failed. The current sequence (sensors first), with the 100 msec delay between them, works, but I don't know why.

The I2C should not interfere with the OneWire bus because both have exclusive control over the Arduino while they're used. The serial communication is the only one in your setup that is interrupt based. So you might try to add a Serial.flush() after each block of serial output before you do any OneWire communication again (the OneWire protocol is quite timing critical, so delays caused by interrupts will have consequences in that communication first).
55  International / Deutsch / Re: WIFI+UDP+NTP keine Verbindung on: April 14, 2014, 01:00:29 pm
Wenn Du mit dem NTPTool einen Anfrage absetzt, siehst Du dann UDP-Pakete auf der FritzBox?

Quote
Ich sehe im Protokoll das Shield wenn es sich anmeldet.

Das wäre dann? DHCP-Anfrage und Antwort. Noch mehr?

Erweitere mal Deinen Code, so dass die Rückgabewerte auf die serielle Schnittstelle ausgegeben werden (v.a. von Udp.endPacket()).
56  Using Arduino / Networking, Protocols, and Devices / Re: Multiple sensor protocol issue on: April 14, 2014, 12:32:34 pm
Quote
With this clock, however, there seems to be some problem with initializing them, possibly due to all the other serial comm that's going on.

Can you describe in more detail what problems you have? Does the initialization need more time than you'd expect? Does it not find all sensors?

How did you wire the sensors to the Arduino? What length does the cable have? Did you use two (parasite) or three wires? What kind of cable are you using?

Quote
I'm happy to get a complete review of the code, but the question really was more limited--is there a known issue(s) between the libraries that I've included?

I don't know of any issues between these libraries but it's relatively seldom to have exactly this combination of libraries.

57  Using Arduino / Sensors / Re: wiring up a sharp GP2Y0A02 distance sensor on: April 14, 2014, 11:45:58 am
You have an infrared distance sensor, so you cannot use a library made for an ultrasonic distance sensor.

You have to wire it differently, pin 1 goes to A0 (or any other analog input), pin 2 to GND and pin 3 to 5V on the Arduino. You can then read the value using analogRead(0).
58  Using Arduino / Networking, Protocols, and Devices / Re: I2C software implementation for Arduino on: April 14, 2014, 11:35:19 am
Quote
Can anyone help me find a software imlementation of I2C slave for arduino? I need one like this https://github.com/CalcProgrammer1/Stepper-Motor-Controller/blob/master/UnipolarStepperDriver/usi_i2c_slave.c which is for ATtiny and for the slave it checks the address sent by the master first to decide if the slave should answer or no. The wire library doesn't offer that functionnality so I need to know if there's another library independent of the Atmega I2C hardware for arduino that can act this way.

Why don't you just use an ATtiny (there are other tinys than the 8-pin ATtiny85)?
Your problem is so special that probably no one else had to solve it before. You either have to write that library yourself or change the hardware. I don't think that a software implementation is that hard as CrossRoads seems to think but it's quite a lot of work. I would not use the SoftwareSerial library as an example because there the author switches off interrupts for longer times, stopping all activity for the duration of the transmission (or reception). You could use the TinyWireS library as an example of how to implement it, just use the external interrupt (pins 2 or 3 on the UNO) to get an interrupt for every clock signal the master sends, the take the state of the data signal and act accordingly. If coded correctly you could even live without external hardware because you can switch between input and output/LOW directly. Just be cautious and test with another Arduino first, otherwise you may blow your I2C master device with a faulty implementation.

Another possibility is to use for example an ATtiny1634 which offers the USI hardware as well as a UART. So you can have the ATtiny be the I2C slave which then talks to an Arduino (or PC) over the serial interface.
59  International / Deutsch / Re: Wie ein LCD ansteuern ; LMC 1602 I2C ; Tutorial ; Sketch on: April 14, 2014, 11:03:07 am
Wie Du hier:

http://arduino-info.wikispaces.com/LCD-Blue-I2C

lesen kannst, gibt es von diesem Display mindestens 3 verschiedene Versionen, die unterschiedlich angesteuert werden müssen.

Dies zeigt einmal mehr, wie wichtig es ist, dass Du bei einem Post immer Links zur verwendeten Hardware angibst. Ansonsten bekommst Du unter Umständen Hilfestellung für ein anderes Display, was in gewissen Fällen sogar zur Beschädigung der Hardware führen kann. Auf oben verlinkter Seite ist auch erklärt, wie man herausfindet, welche Version (falls es eine der dort erwähnten drei ist) man hat.
60  Using Arduino / Networking, Protocols, and Devices / Re: Multiple sensor protocol issue on: April 14, 2014, 10:51:52 am
Is that really the complete code you're using? Did you read the sticky note at the top of the forum?

Provide links to all libraries you used if they are not part of the standard IDE.

The OneWire bus is quite timing critical so the rest of the software is relevant for us to see to be able to help you.
Pages: 1 2 3 [4] 5 6 ... 314