using potentiometers in a circuit with the NXT
-
- Posts: 24
- Joined: 20 Oct 2010, 16:20
using potentiometers in a circuit with the NXT
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?
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?
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: using potentiometers in a circuit with the NXT
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
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 24
- Joined: 20 Oct 2010, 16:20
Re: using potentiometers in a circuit with the NXT
i would probably power it using the NXT battery and i want to control the resistance using the potmattallen37 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?
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: using potentiometers in a circuit with the NXT
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.
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
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 24
- Joined: 20 Oct 2010, 16:20
Re: using potentiometers in a circuit with the NXT
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
the higher the resistance the higher the voltage
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: using potentiometers in a circuit with the NXT
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).
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
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 24
- Joined: 20 Oct 2010, 16:20
Re: using potentiometers in a circuit with the NXT
im just going to plug the lights straight into the 2 ports and change the pwm's
-
- Posts: 1818
- Joined: 02 Oct 2010, 02:19
- Location: Michigan USA
- Contact:
Re: using potentiometers in a circuit with the NXT
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
http://mattallen37.wordpress.com/
I'm all for gun control... that's why I use both hands when shooting
-
- Posts: 24
- Joined: 20 Oct 2010, 16:20
Re: using potentiometers in a circuit with the NXT
differential
-
- Posts: 103
- Joined: 29 Sep 2010, 17:14
- Location: US
Re: using potentiometers in a circuit with the NXT
Cutting cables only gives more possibilities.
fuzzball27 >>-->
Who is online
Users browsing this forum: Majestic-12 [Bot] and 2 guests