Show Posts
Pages: [1] 2 3 ... 9
1  Using Arduino / LEDs and Multiplexing / Re: 0-10v PWM dimming problem on: April 27, 2013, 07:46:41 am
Hi Rick,

I tried using a NPN connected to DIM - but it just will not dim on the LPF series. I dont have the know how to figure out why but beleive me i tried!

The Dim- is purely for the dimming circuit and the -Vin is where you connect the LEDs to. If you connect them both to the same GND you will blow either the driver dimming circuit or your LEDs.
On the driver you have:

DIM- and DIM+ for the dimming circuit

V- and V+ for the LED circuit.

Hope this helps.
2  Using Arduino / LEDs and Multiplexing / Re: 0-10v PWM dimming problem on: April 24, 2013, 03:21:36 pm
Fungus you are a superstar!!!  That circuit worked perfect with the 1K pulldown!!  You have no idea what a relief this is!


If i was in Spain i would buy you a case of beer!!!  Thankyou so much for your help!!!

 smiley-lol
3  Using Arduino / LEDs and Multiplexing / Re: 0-10v PWM dimming problem on: April 24, 2013, 02:22:46 pm
Hi Fungus,

 I measured the dimming terminals of the driver and it does have +10VDC across them. So im assuming the pull down resistor would parallel the driver in your diagram? Any idea what value for the pull down?
4  Using Arduino / LEDs and Multiplexing / Re: 0-10v PWM dimming problem on: April 24, 2013, 01:16:28 pm
If its something that simple ill bang my head against the wall lol. Thankyou for the reply. Now would it be wired like the first picture ( Controlling  the + lead ) or in the second picture ( Controlling the - lead )???

 
5  Using Arduino / LEDs and Multiplexing / 0-10v PWM dimming problem on: April 24, 2013, 10:40:20 am
Hi,

Ive got a problem that is driving me crazy and i need some help. I'm trying to finish the last part of my controller but i'm coming up with a problem.

I have the following LED drivers from Meanwell:

LPF 90D 48 Datasheet:
http://www.meanwell.com/search/LPF-90D/LPF-90D-spec.pdf

These drivers allow for dimming in the following forms:

0-100K resistance
0-10V
0-10V PWM

I should of gotten the ELN series drivers but at the time i did'nt realise there were different types, so i'm stuck with the LPF series  smiley-sad

Here is the background to wait i have tried:

The kit came shipped with 2 pots which allow the dimming for the 2 drivers i have. Both worked fine and dimmed up and down. But i want to control it with my Mega.

I next tried the following circuit, but it would not dim at all:

Controlling + lead:



So next i tried this circuit using the 10v supply to control the - lead:



I then tried the following circuit as the 2 previous would not work. This i could get the drivers to dim but with the Arduino fading from 0-5v i could only get the circuit to output 3.5v-6.5v. If i could get this to do the full 0-10V then i would be set.



I must be missing something simple but i just cant figure it out!!


Your help would be greatly appreciated to finally finish the project!

Thanks in Advance,

Richard.
6  Forum 2005-2010 (read only) / Troubleshooting / Re: Mega Pinout Question..... on: September 09, 2010, 08:15:50 pm
Thanks Paul,

I knew i was missing something!!! Thats what happens when you take a year break from the programming fun!!!

R.
7  Forum 2005-2010 (read only) / Troubleshooting / Mega Pinout Question..... on: September 09, 2010, 07:32:18 pm
I think im having a brain fart here and need some help clarifying something.

OK so the Mega has analog pins 0-15,

but it also has PWM pins  2-13.

How do i tell the mega to work with pwm pin 3 rather than analog pin 3???

I know im missing something simple!!

Thanks in advance

VR
8  Forum 2005-2010 (read only) / Interfacing / Arduino Flash Gauge Interface on: December 09, 2010, 10:54:57 am
Hi All,

Im working on a project where ive now completed all the hardware and Aruino code, and i want to intefrace my Mega with a nice GUI.

Ive found this great site with pre-made gauges which i would like to use to represent real time data from my sensor array:

http://www.darkartistry.com/Public/open_gauges.png


Problem is, apart from the Arduino code, i have no idea where to begin this interfacing, dashboard design. I have never done any other programming other than the Arduino ( Which i learnt how to do ).

Im trying to create something along the lines of this:




If anyone could help direct me to a few pointers on where to start reading on how to do this, or offer any advice that would be so much appreciated!

VR
9  Forum 2005-2010 (read only) / Interfacing / Re: RTC to 4Bit LCD on: January 27, 2009, 05:04:22 pm
i dont have to put the numbers in hexidecimal do i?
10  Forum 2005-2010 (read only) / Interfacing / Re: RTC to 4Bit LCD on: January 27, 2009, 05:01:14 pm
screen is blank????

I had it mapped our great in 4bit mode. now i cant get anything that is logical! lol

any other ideas?
11  Forum 2005-2010 (read only) / Interfacing / Re: RTC to 4Bit LCD on: January 27, 2009, 04:54:11 pm
so i just put in:

  lcd.clear();
  lcd.setCursor(01,15);
  lcd.print("XX");
}

and it places my cursor on row 4, col 6

any ideas why its not placing it on row 1, col 5????
12  Forum 2005-2010 (read only) / Interfacing / Re: RTC to 4Bit LCD on: January 27, 2009, 03:56:59 pm
Oops sorry let me be abit clearer.

I got the RTC working and displaying on my LCD ( Thanks so much ).

No i want to map out the cursor positions on my lcd but everything i try just puts the cursor in random places.

here is my sample code:

#include <LiquidCrystal.h>

// LiquidCrystal display with:
// rs on pin 12
// rw on pin 11
// enable on pin 10
// d0, d1, d2, d3 on pins 5, 4, 3, 2
LiquidCrystal lcd(11, 13, 12, 7, 8, 9, 10);

void setup()
{
  // Print a message to the LCD.
  lcd.clear();
  lcd.setCursor(54,5);
  lcd.print("XX");
}

void loop()
{
}
  now i expect it to go to row 4, col 5. But it places it row 2, col 1???

am i missing something here???
13  Forum 2005-2010 (read only) / Interfacing / Re: RTC to 4Bit LCD on: January 27, 2009, 03:36:57 pm
Hi MEM,

I got the lib sorted and the hello world. now im just trying to map out which cusror position is which on my lcd and its driving me crazy.

i found this from your reply on another thread:

void LiquidCrystal::setCursor(int col, int row)
{
  int row_offsets[] = { 0x00, 0x40, 0x14, 0x54 };
  command(0x80 | (col + row_offsets[row]));
}



except it wont compile. Has anyone mapped out a 4x16 lcd before?

The worse thing is everytime i try and think of a nogical next step to find the cursor position it puts it somewhere different????????????????????????????????????????????????????????????????
14  Forum 2005-2010 (read only) / Interfacing / Re: RTC to 4Bit LCD on: January 27, 2009, 01:09:23 am
when i first started the thread i was using the LCD4Bit library after setting up my lcd as per:

http://www.ladyada.net/learn/arduino/lcd.html

I am now trying to get the 'Hello World' and 'Serialdisplay' examples to work using a 4bit lcd lib.

Am i just chasing my own tail here or can the above code be used in 4bit mode?
15  Forum 2005-2010 (read only) / Interfacing / Re: RTC to 4Bit LCD on: January 26, 2009, 11:17:02 pm
I tried that Tim and the compiler errors with:

29: error: macro "int" passed 2 arguments, but takes just 1 In function 'void loop()':

smiley-sad
Pages: [1] 2 3 ... 9