
j98221
hi
i just purchased the pan tilt hat. i know it works because i tried the python examples.
But how can i get ARC to recognize it?
I do have the ez server installed on the rpi with a camera, it connects, i tried the camera control example and the video works. i added the vertical servo, tried to set it up as D0, D1 and D2. neither will control the pan and tilt hat. i believe the pan and tilt works of of i2C but i am not certain.
information on the pan and tilt hat can be found at http://pimoroni.com/pantilthat
please help, Thank you in advance.
Maybe you're missing something, I'll post more details in couple minutes.
Is the above error post#14 ?
If yes is audio related you can comment line 139 on Main.py:
and let me know if it works.Code:
pi@saripi:~/BlueberryServer/Blueberry.Server.Python $ sudo python3 Main.py
1124-root-INFO-Starting... platform=linux hostname=saripi
1124-DeviceI2CController-1-21-DEBUG-write: bytearray(b'\x00\x08')
1124-EZBTcpServer-DEBUG-starting up on ('', 10023)
1124-EZBTcpServer-DEBUG-waiting for a connection
1124-EZBTcpServerUdpBroadcaster-DEBUG-Starting port=4242
1124-EZBTcpServerUdpBroadcaster-DEBUG-running....
1124-EZBTcpServerUdpBroadcaster-DEBUG-broadcaster ip4 addresses found:['192.168. 8.239']
1124-EZBCameraUdpBroadcaster-DEBUG-Starting port=4242
1124-EZBCameraUdpBroadcaster-DEBUG-running....
1124-EZBCameraUdpBroadcaster-DEBUG-broadcaster ip4 addresses found:['192.168.8.2 39']
1124-FakeCameraController-DEBUG-running thread:Thread-4
1124-EZBCameraTcpServer-DEBUG-starting up on ('', 10024)
1124-EZBCameraTcpServer-DEBUG-waiting for a connection
===> Press Enter to quit...
1124-EZBTcpServer-DEBUG-waiting for a connection
1124-EZBCameraTcpServer-DEBUG-waiting for a connection
Again I appreciate your help.
https://synthiam.com/Firmware/EZB-Server-BlueBerry-Server-DBJJ5DRNAAH
I'm writing about the firmware and how to use it.
Let me know if it helps.
but now i dont have any video anymore from the rpi camera. the port use to be 24 now its 10024
you should see the camera feed or fake image with a counter.
please recheck and let me know the results.
please follow/read my instructions for version 1 of BlueBerry Server.
1101-root-INFO-Starting... platform=linux hostname=saripi
1101-DeviceI2CController-1-21-DEBUG-write: bytearray(b'\x00\x08')
1101-EZBTcpServer-DEBUG-starting up on ('', 10023)
1101-EZBTcpServer-DEBUG-waiting for a connection
1101-EZBTcpServerUdpBroadcaster-DEBUG-Starting port=4242
1101-EZBTcpServerUdpBroadcaster-DEBUG-running....
1101-EZBTcpServerUdpBroadcaster-DEBUG-broadcaster ip4 addresses found:['192.168.8.239']
1101-EZBCameraUdpBroadcaster-DEBUG-Starting port=4242
1101-EZBCameraUdpBroadcaster-DEBUG-running....
1101-EZBCameraUdpBroadcaster-DEBUG-broadcaster ip4 addresses found:['192.168.8.239']
1101-FakeCameraController-DEBUG-running thread:Thread-4
1101-EZBCameraTcpServer-DEBUG-starting up on ('', 10024)
1101-EZBCameraTcpServer-DEBUG-waiting for a connection
===> Press Enter to quit...
please pull the changes:
Code:
i then used the pimoroni pan and tilt, connected the servos and it WORKED! i made the changes you suggested for the pi camera and that worked as well. better response time on the camera.
a problem though- when selecting servo tracking in the camera control; the servos goes crazy, then stops working. also the servos will no longer work even if you un-select servo tracking, also stopping the blueberry servo and restarting it does not return the servos. i was forced to reboot the rpi4. keep in mind when i say the servos dont work is by using the vertical and horiz servo control.
upon reboot and starting the blueberry server, the camera and servos work.
what i am trying to do is add robot functionality with my rover which is powered by a px4 flight controller. i like to add ML and object recognition. i have a simple robotic arm i have not mounted yet. the rover is actually a losi five-t 1/5 scale RC with an electric motor.
do you know of any issues with the adafruit 16 channel hat?
thanks again.
I've used the HAT only for PWM ports so there was no support for servos, but I finished a servo implementation.
pull the project again and uncomment the following line #172:
bear in mind the hat is a PWM controller there are some calculations using the board oscillator clock 25Mhz plus the required servo frequency 50 Hz, and the 12 bits resolution, in some cases you will need to adjust the servo timings ex:Code:
the values 560 and 2140 work well with other servo controllers but they need some adjustment when used with this HAT.Code:
Adafruit has some python calibration scripts to help you with the min and max values.