using potentiometers in a circuit with the NXT

News, rumors, and other broad discussion topics.
Post Reply
finneykris
Posts: 24
Joined: 20 Oct 2010, 16:20

using potentiometers in a circuit with the NXT

Post by finneykris »

if i made a circuit which has 2 lego PF bulb bricks and 2 PF switches in parallel and had a potentiometer controlling the resistance how would i wire it all up, i don't think lego make a T cable where they's a cable which comes off of another cable in a T configuration.
all i know is that they's either the NXT RJ12 male and female or 4 stud male and female connections as far as lego is concerned
also can the NXT control the resistance using its oscillator or amp

if not bulbs ,resistors and LED's

also where would GND or - be plugged into?
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: using potentiometers in a circuit with the NXT

Post by mattallen37 »

Please give more details about what you are trying to do. Are you wanting to have two sets of lego PF lights in parallel, and be able to control the brightness manually? How do you want it powered?
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
finneykris
Posts: 24
Joined: 20 Oct 2010, 16:20

Re: using potentiometers in a circuit with the NXT

Post by finneykris »

mattallen37 wrote:Please give more details about what you are trying to do. Are you wanting to have two sets of lego PF lights in parallel, and be able to control the brightness manually? How do you want it powered?
i would probably power it using the NXT battery and i want to control the resistance using the pot
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: using potentiometers in a circuit with the NXT

Post by mattallen37 »

Does the brightness need to be manually, externally adjustable? Could you just connect the lights to a motor port, and use PWM for the brightness control?

Edit: actually, if you have an open motor port, could you just have the PWM controlled by an analog sensor on a sensor port, in this case a potentiometer? This would only require that you cut one NXT cable to connect the POT, and the rest of the connections, you could use adapters for.
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
finneykris
Posts: 24
Joined: 20 Oct 2010, 16:20

Re: using potentiometers in a circuit with the NXT

Post by finneykris »

ok i might not use a potentiometer and i don't want to cut a lego cable

the higher the resistance the higher the voltage
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: using potentiometers in a circuit with the NXT

Post by mattallen37 »

If you're not willing to cut a cable, how then did you expect to build this in the first place?

Once you decide that cutting a cable worth $1.43 is okay, then wire a potentiometer between pin 1 and pins 2+3. Plug the cable into a SENSOR port. You probably want a POT that is at least 10K. Read the RAW value (1023-0) in the program, and base the PWM (0-100) on that value. Depending on the desired application, you may need to invert the values. Connect the PF lights as you would normally (to a MOTOR port).
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
finneykris
Posts: 24
Joined: 20 Oct 2010, 16:20

Re: using potentiometers in a circuit with the NXT

Post by finneykris »

im just going to plug the lights straight into the 2 ports and change the pwm's
mattallen37
Posts: 1818
Joined: 02 Oct 2010, 02:19
Location: Michigan USA
Contact:

Re: using potentiometers in a circuit with the NXT

Post by mattallen37 »

Why not use one port? Do you need it to be a differential?
Matt
http://mattallen37.wordpress.com/

I'm all for gun control... that's why I use both hands when shooting ;)
finneykris
Posts: 24
Joined: 20 Oct 2010, 16:20

Re: using potentiometers in a circuit with the NXT

Post by finneykris »

differential
fuzzball27
Posts: 103
Joined: 29 Sep 2010, 17:14
Location: US

Re: using potentiometers in a circuit with the NXT

Post by fuzzball27 »

Cutting cables only gives more possibilities. :ugeek:
fuzzball27 >>-->
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 1 guest