TheDoctor2017

Results 8 comments of TheDoctor2017

> The NXT color sensor is an unusual sensor in that it has a protocol unlike any other sensor. They only way to use it with ev3dev is with Pybricks...

> Can you share the code to reproduce the problem? I haven't gotten to the point of writing any code yet. When I connect the NXT color sensor and boot...

> Can you share the code to reproduce the problem? When I try to initialize the NXT color sensor using MicroPython using: color_sensor = ColorSensor(Port.S1) I get the error: A...

> Can you share the full program to reproduce the problem? This is the entire code: ```python #!/usr/bin/env pybricks-micropython from pybricks.hubs import EV3Brick from pybricks.ev3devices import (Motor, TouchSensor, ColorSensor, InfraredSensor,...

> This is the NXT color sensor, so you need `from pybricks.nxtdevices import ColorSensor`, not `ev3devices`. Wow. Sorry I missed that. Thank you so much!

> Did you try setting [ramp_up_sp](https://ev3dev-lang.readthedocs.io/projects/python-ev3dev/en/stable/motors.html#ev3dev2.motor.Motor.ramp_up_sp) and [ramp_down_sp](https://ev3dev-lang.readthedocs.io/projects/python-ev3dev/en/stable/motors.html#ev3dev2.motor.Motor.ramp_down_sp)? That's the problem, I don't know how. What is the full syntax of the command?

I figured it out. If anyone else runs across this, here is sample code: lm = LargeMotor(OUTPUT_B) lm.ramp_up_sp = 2000 Now every time the motor is started it will ramp....

Forget it. Looks like the weather site was just down. It started working after a few hours.