Loading...
  Show Posts
Pages: 1 ... 9 10 [11] 12 13 ... 26
151  Using Arduino / Motors, Mechanics, and Power / Re: Will the Arduino drive this 8-Channel Relay Module directly? on: April 21, 2013, 05:22:45 am
The 2nd photo shows 8 components at the connector, which are probably resistors.
And each relay has a component, probably a transistor.

So yeah, you can measure the current drawn per input at that input to see if it's Arduino compatible, and the total current drawn by the board in case all relays are enabled.
Last one is probably somewhere close to 750 mA.
152  Using Arduino / Motors, Mechanics, and Power / Extending number of servos ? on: April 20, 2013, 06:59:55 pm
Today (well, yesterday actually)i received the 4 servos i ordered (no plans, just to play around).
Played a bit with the sweep sketch to test them.
While playing, i saw that the servos stop working whenever the signal wires is disconnected.
They do not return to center or end position, they just stop at the point the last instruction told them to go.
Reconnecting that wire just starts the servo to continue to the point the sketch is running at that moment.

So is it a good idea to switch servo's and command those with just a few lines and extend the total number of servo's this way ?
If not, why not ?
So power would stay connected, and only pin 9 (std pin in the sweep sketch) would be connected to a different servo, perhaps by using a 74hc595.
153  Using Arduino / Motors, Mechanics, and Power / Re: Multi outputs - 2 servos, and 2 linear actuators on: April 20, 2013, 04:47:58 pm
Still not 100% clear.
Are these 2 linear motors running separately or are they alwyas running at the same time, in opposite directions ?
If you don't need PWM to control the linear motors, you'll need 4 pins to control them in case they are to be controlled separate.
And 2 in case they need to be running in parallel (one to switch the direction and 1 to switch the power to the motors).
You can then switch by relay (all DPDT).
You need PWM to control the servos.
This PWM is a software hack in the library as far as i understand, but i'd guess you have plenty of pins to control your motors, and don't need a motorshield.
154  International / Nederlands / Re: parcour tijd registratie en ruiter identificatie on: April 20, 2013, 03:52:21 pm
Het gaat nogal van de hak op de tak in deze thread.
Als jullie wat meer structuur aanbrengen, word het voor jullie zelf ook wat overzichtelijker.
Maak dus een stappenplan en houd je daar zoveel mogelijk aan.
Das de basis voor projecten (het maakt niet uit hoe groot of klein die zijn) en dit zouden jullie intussen moeten weten.
155  Using Arduino / Displays / Re: Crius OLED display on: April 14, 2013, 04:51:56 pm
Nope not even that.
I didn't use my soldering iron, just used some stuff i have around here.
Have some 90 degrees male jumper headers and used that.
This way i could plug the cable directly to the Arduino board, and still use a jumper wire and the resistor to power the display
So the cable is still intact.

I'll have a look at using the ADXL345 as is with my UNO R3, thanks for the link.
156  Using Arduino / Displays / Re: having problem in programming to show current date on: April 14, 2013, 04:20:52 pm
Code:
void loop(){   
  if(Serial.available() )
  {
    processSyncMessage();
  }
  if(timeStatus() == timeNotSet)
    Serial.println("waiting for sync message");
  else     
      digitalClockDisplay();
  delay(1000);
}

Nothing happens on your display ?
Comment out the first line in that loop:

Code:
void loop(){   
/*  if(Serial.available() )
/  {
    processSyncMessage();
  }*/
  if(timeStatus() == timeNotSet)
    Serial.println("waiting for sync message");
  else     
      digitalClockDisplay();
  delay(1000);
}

You should see the "waiting for sync message" message on your screen.
What other hardware (Arduino) do you use ?
157  Using Arduino / Displays / Re: Crius OLED display on: April 14, 2013, 04:49:18 am
I have just extended the wire length to about 44 centimeter by using 2 male - male jumper wires and a female-female jumper wire.
Works just the same.
To confirm i changed the text a bit and this change was also OK.
Extending it this way to a total of over 1 meter resulted in display of garbled data.
So you don't need to use extremely short wires and can extend wires when needed.
But like always, don't use wires longer than they need to be.

I also have an I2C 1602 display.
I'll have a try at using these 2 together soon.
Can't try the ADXL345 yet, waiting for the ttl to 3 volt converter to arrive (has been on its way for 3 weeks now so hope to have it next week).

By the way: this display doesn't seem to answer to Nick Gammon's I2C scanner, the 1602 does.
158  Using Arduino / Displays / Re: Crius OLED display on: April 14, 2013, 04:03:03 am
Didn't you do that already ?
In your pic above it seems you removed the female plug and soldered pins to the original wires.
That's essentially the same as what i did, but my little attempt saved some time because i didn't have to solder.

I know about I2C addresses, but figured that a display is an output and connecting 2 outputs with the same address would result in displaying the same stuff twice.
There would be a problem when data is supposed to go 2 ways, like when using some sensor.
Does the display answer to the data from Arduino ?

By the way:
The ssd1306 datasheet mentions a way to select an other address.
I have no idea if this can be set different with this crius board.
159  Using Arduino / Displays / Re: Crius OLED display on: April 13, 2013, 06:23:40 pm
Played around some more.
Just tried to connect both displays at the same time.
The first one is connected to pins A4 and A5 using those jumper pins.
The second one connected to the SDA and SCL pins next to the reset button, using 6 centimeter jumper wires.
Power supply of the second display connected via 100 Ohm to vcc pin of the ICSP connector (don't know if that is a good idea).
This results in damaged data on both displays, and removing display 1 still gets damaged data to display 2, so the wire length of 6 cm is already too much.
Wouldn't expect that, maybe splitting the I2C wires an other way will solve this.

So @desmondttm123: try wires as short as possible, like 0miker0 did.
And try the 100 Ohm resistor.

I guess this means this display can't be used together with other I2C devices.
That would be a shame, i was planning on using it to display ADXL345 results.
160  International / Nederlands / Re: Problemen met schakelaar en stappen motor on: April 13, 2013, 03:48:10 pm
Heb je wel uitgezocht of digital2 wel vrij is en niet word gebruikt voor je motorshield ?
wanneer je schakelaar open is, trekt de weerstand digital2 naar 5 volt en wanneer de schakelaar gesloten is wint die schakelaar het van de weerstand en ligt digital2 aan GND.
Probeer eens wat er gebeurt als je de weerstand aan 1 zijde losneemt.
En waarom gebruik je niet de interne pullup ?
Spaart je een weerstand uit.
Kijk of digital2 wel vrij is om te gebruiken en niet al gebruikt word door je shield.
Word ie wel gebruikt, kies dan een andere wel vrije pin.
Als je dit niet weet, probeer dan een willekeurige andere pin totdat je hebt wat je wil, maar dan kun je wel ff bezig zijn.
Adafruit is een grote speler in de Arduino wereld.
Ik zou niet vreemd opkijken als ze een aantal motorshields hebben (zou me verbazen als dat niet zo is).
Daarom ga ik niet eens bij hen kijken of ik wat over die shield kan vinden voor je, tenzij je een verwijzing naar het betreffende product geeft.
Adafruit is ook goed genoeg wat betreft documentatie.
Dus gegevens over jouw shield (mogelijk zelfs schema's) kun je daar zonder twijfel terugvinden.
161  Using Arduino / Displays / Re: Crius OLED display on: April 13, 2013, 02:25:06 pm
Got it !

It is an initialisation problem.
Searching the interrnet brought me to a page i visited already.
I tried everything on there except cutting and resoldering 1 pin of the flatcable to a RC network.
None of that worked, but this must have been a problem in the examples.
So i read all over there and found a tip which is very easy to try:
Add a 100 Ohm resistor between the power supply and the module.
The resistor and the capacitance of the leads on the board are assumed to make just enough delay for the driver to finish the reset.
So i tried again, and voila !

Both displays work correctly now.
Have a look at the photo.
Tip in case someone likes to make a photograph of his display: dim it a lot or else your camera has trouble focussing, set it to 20h or less (i used 08h).
162  General Category / General Discussion / Re: This can't be good: improper packing of capacitors on: April 13, 2013, 09:22:35 am
I thought the envelope said worst class mail.
163  Using Arduino / Displays / Re: Crius OLED display on: April 12, 2013, 06:44:10 pm
To eliminate wire length, i removed the I2C jumper wires and used an angular header (or whatever it's called) and plugged the original wire directly to the board.
Both ollikraus and 0miker0 spoke of a possible problem with that
Makes no difference at all.

I removed the endless while loop and added an end to the scroll, so this way i see that commands keep coming in.
The contents of the display seems to be always the same on each display, but each screen has its own pattern (so the 2 displays show a different picture).

Still seems to me that the buffer / memory isn't erased and filled so that present data is displayed.
164  Using Arduino / Displays / Re: Crius OLED display on: April 12, 2013, 02:47:50 pm
@olikraus: That's way over my league, but i know communication is not completely gone while this sketch is running.
As stated, i can see different stages.
Sometimes i can even see some blinking dots at the moment data is sent.
I put some 2 second delays between the senStr commands as a debug help, and can see a pause in the blinking dots at respective delay points.
The display inverts and gets back, inverts again and then starts scrolling.
This is a clue (to me) that communication works, but the buffer that holds the screen content, doesn't erase on startup or is in another way corrupted.
Is there a way to set the I2C speed to a lower (but more reliable) rate ?
165  Using Arduino / Displays / Re: Crius OLED display on: April 12, 2013, 12:32:27 pm
It should be, that's what is mentioned in the coments in the sketch.

I had some more success taking a picture during daylight, so here is what my display shows.
This happens immediatly after powering up, but not if the display has been off for a while.
Then it takes a second or so before something appears.
Looks like both units have a memory problem.
I can control the functions like inverse and scroll, so Arduino communicates and this communication is processed.
I read somewhere about a reset problem and soldering a SMD capacitor and resistor to pin 14 of the flatcable (after disconnecting that pin) might help in such case.
This is a very small pitch connector (to me), yet i'll have a try at that some time.
I think i'll look for the command set for this ssd1306 chip to see if i can send some command instead before i get destructive.
Pages: 1 ... 9 10 [11] 12 13 ... 26