Ir_reciever_check

I am trying to work with the BrickPi, and to at least get started, simply run a motor. But theres a problem.

Error:

Traceback (most recent call last):
  File "motor_sens.py", line 1, in <module>
    from BrickPi import *
  File "/usr/local/lib/python2.7/dist-packages/BrickPi-0.0.0-py2.7.egg/BrickPi.py", line 46, in  <module>
    import ir_receiver_check
ImportError: No module named ir_receiver_check

I am using a tutorial found here: https://learn.sparkfun.com/tutorials/getting-started-with-the-brickpi

And the code in particular

from BrickPi import *

BrickPiSetup()

BrickPi.SensorType[PORT_1] = TYPE_SENSOR_TOUCH
BrickPi.MotorEnable[PORT_A] = 1

BrickPiSetupSensors()

while True:
        result = BrickPiUpdateValues()
        if not result:
                if BrickPi.Sensor[PORT_1]:
                        BrickPi.MotorSpeed[PORT_A] = 200
                else:
                        BrickPi.MotorSpeed[PORT_A] = 0
        time.sleep(0.01)

Whats wrong? How to fix.

Hi,
Can you download and copy this library to your project folder: https://raw.githubusercontent.com/DexterInd/GoBox/master/LIRC_GUI/ir_receiver_check.py.

This is a check for the IR sensor which can interfere with the BrickPi.

-Karan

Hey RichardBrickPi,

First, great user name.

Second, can we convince you to use the Dexter Industries Image? It has some great troubleshooting software on it, and it has the modules Karan is trying to convince you to use. You can find instructions on how to burn it to an SD card here: http://www.dexterindustries.com/howto

John

Hi Karan,

I have added that ir_receiver_check.py file but I still cannot get any GPS coordinates.

I only get a blank csv file, with the header title but no coordinates.

-frozentrace

Hi @frozentrace,

It looks like you have posted at the wrong place and we’ll continue this discussion on the other post here.

-Shoban