Now I am trying to work through setting up the PIR sensor to run through the bluetooth control center set-up...
I am using a HC-06 module on a DuPont cable instead of mounting it to a screwshield as done in the book....
I get my module to pair, connect and trusted to my Pi 3 (also not covered in the book) so I do not have a USB dongle to contend with...
Now, I run 'control.py' for the bluetooth set-up and it gives me this:
Code: Select all
Exception in Tkinter callback
Traceback (most recent call last):
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 1535, in __call__
return self.func(*args)
File "/usr/lib/python2.7/lib-tk/Tkinter.py", line 586, in callit
func(*args)
File "/home/pi/zombies/Raspberry_Pi/control_center_bt/control.py", line 88, in update
app.read_arduino()
File "/home/pi/zombies/Raspberry_Pi/control_center_bt/control.py", line 51, in read_arduino
data = volts, temp, door, pir, fire = self.ser.readline().split()
ValueError: need more than 0 values to unpack
Please help...this is for my sons homeschool Science curriculum!!!!