Show Posts
Pages: [1] 2 3 ... 6
1  Using Arduino / General Electronics / Re: Reading 1-10v wall dimmer with an Arduino on: August 15, 2014, 07:38:39 am
I would not be too sure about that!

Well, I am, i opened one up.

https://www.dropbox.com/s/o1ilr20iv98r68j/2014-08-15%2014.34.17.jpg

How else could the device generate 0 to 10V?

That's the problem, i have no idea.
2  Using Arduino / General Electronics / Re: Reading 1-10v wall dimmer with an Arduino on: August 15, 2014, 05:58:16 am
Yes, there are four, but the two main wires are only connected to the switch in the dimmer, they do not do anything else.

The only thing I want is to do is read the position from the dimmer with an atmega328,since it's a '1-10v' dimmer I don't think i'd need to insulate everything. I just don't really know what the wires are supposed to connect to and how they're supposed to be read.
3  Using Arduino / General Electronics / Reading 1-10v wall dimmer with an Arduino on: August 14, 2014, 12:42:07 pm
I would like to use the existing wall dimmers in my house to control an led strip light, but the dimmers only have two wires coming from them.

At first my idea was to make a voltage divider to split the 1-10v into 0.5-5v, but I just don't really know what to wire the two wires to. 

The dimmers i have are these:

http://www.jungiberica.net/download/manuales/control-ilum/GB_240-10.pdf

Does anyone know how to use read the value from those dimmers?

Many thanks in advance,
David Koster
4  Using Arduino / Motors, Mechanics, and Power / Stepper drivers in parallel on: April 04, 2014, 05:36:00 pm
I have a Nema 23 stepper motor I would like to drive at about 2A, is it possible to wire two 1A stepstick drivers in parallel to do so?
5  Using Arduino / General Electronics / Triacs VS relays on: March 11, 2014, 07:12:06 pm
On ebay I see a lot of single relay boards, 8 channel relay boards, optocoupled relay boards, and so on, but I never see any triac boards. I recently had a project with solenoid valves, but switching them with relays made my LCD display go all wonkey, so I used a (bt139) triac instead. After this everything worked fine.

Why aren't triacs used more widely?  (It isn't particularly expensive, for a triac + optocoupler is only about 2 dollars.)
|s there a big disadvantage I don't know of?
6  Using Arduino / Motors, Mechanics, and Power / Re: NEMA17 H-bridge? on: January 15, 2014, 05:54:17 pm
Too bad, I'll get myself a driver then.

Thank you very much!
7  Using Arduino / Motors, Mechanics, and Power / Re: NEMA17 H-bridge? on: January 15, 2014, 08:36:04 am
I do have some small unipolar steppers, but they are way too slow to move a curtain nicely, so that won't work well..

As last try at making my own driver, would it be an idea to PWM a 12v supply at about 5%, 32Khz, and use that as power input in the H-bridge? This would effictively give me about 0.4A on the stepper.

Or am I just way better off buying a A4988 driver? All it has to do is spin though, there's not a lot of force..
8  Using Arduino / Motors, Mechanics, and Power / NEMA17 H-bridge? on: January 15, 2014, 08:01:59 am
I wanted to open and close my curtains with a nema17 stepper I have laying around, so I built two simple H-bridges out of DB139 and DB140 transistors.

But then I measured the resistance of the two coils in the stepper motor; 1.5 Ohms.

Driving this with 5 volts would mean a current of about 3 Amps, which seems retardedly high. But I use the steppers in my reprap aswell, where they are driven with 12v.

What do the stepper controllers from the reprap do so that the steppers work on 12v without burning out, and how would I build a simple driver for this myself?
9  Using Arduino / Programming Questions / Re: Software SPI.transfer on: January 12, 2014, 02:45:55 pm
It took a while, but I ended up writing it myself!
At first replacing the function didn't work at all, but that ended up being because the SPI was still "on", so I couldn't write to the 13 and 11 pins myself..

Here's the code:

Code:
uint8_t softSpiTransfer(uint8_t shOut){
  uint8_t shIn = 0;
  for(int i = 0; i < 8; i++) {
    if (shOut > 127)  digitalWrite (outPin,1);
    else              digitalWrite (outPin,0);
    if (digitalRead(inPin)) shIn += 1;
    digitalWrite (clkPin,1);
    digitalWrite (clkPin,0);
    if (i != 7) shIn <<= 1;
    shOut <<= 1;
  }
  return shIn;
}
10  Using Arduino / Programming Questions / Re: Software SPI.transfer on: January 12, 2014, 10:43:22 am
I'm softwarePWMing the 24 LED channels. This has te be done pretty fast, so this will need the hardwareSPI. I know it can be done the other way around, but the leds need 4096 bytes shifted out every time there will be one message coming on the nrf24 module. I also have an other light that just uses the 6 arduino PWM pins, so for that i'd also have to clear pin 11.

What do you mean with "Something else like the nrf24?" ?
11  Using Arduino / Programming Questions / Re: Software SPI.transfer on: January 12, 2014, 10:01:42 am
What is your reason for avoiding the hardware SPI?

I've got a big bunch of sound reactive lights, but it's a pain to run jack cables to all of them, so I'd like to broadcast the 'decoded' audio to all lights at once via nrf24l01+ modules.

One of the lights:


The lights however use the shiftPWM library, which uses the hardware SPI aswell.

In the MIRF library for the nrf24l01+ modules, sending and receiving is all done with the SPI.transfer function.
I'm looking for a function to replace that function, but using softwareSPI.
12  Using Arduino / Programming Questions / Re: Software SPI.transfer on: January 12, 2014, 08:58:29 am
Yes, I know, but just shifting out a byte doesn't get you a received byte..
13  Using Arduino / Programming Questions / Re: Software SPI.transfer on: January 12, 2014, 08:04:47 am
This justs shifts the data out right? I'm looking for the SPI.Transfer function, but without the hardware SPI pins. The transfer function returns a received byte aswell.
14  Using Arduino / Programming Questions / Software SPI.transfer (Solved!) on: January 12, 2014, 06:14:11 am
I was wondering it there is a software version of the SPI.transfer function from the SPI.h library.

I know of the shiftout and shiftin functions, but you can't just use them both to simulate the transfer function..

Is there something like this available anywhere?
15  Using Arduino / Installation & Troubleshooting / Re: Leonardo keyboard/mouse control not working on: January 05, 2014, 10:23:03 am
Although I wasn't using a USB HUB or something similar, changing the USB port seemed to do the trick.
Pages: [1] 2 3 ... 6