<< return to Pixycam.com

some question about pixy cam (pixy play crazy dance at start) -

Hello, :slight_smile:

I bought a pixy and pan tilt support, i use raspberry pi 3, with SSD 240GB + X850 suptronic sata/usb, my os is on a SD 32GB, i connect pixy to usb. i use raspbian stretch

i use power supply 5V, 3A

i install pixymon, working, it found pixy device, i got some image from pixy, i must set zoom because image was blurry and dark.

But what i doens’t understand why pixy is trying sometime to track something and cam move in all directions like crazy, i give no signature to track. the only way to stop is disconnect the usb cable. because i doesnt have the control on it.

my first project is first take normal image snapshot (like webcam) for processing with tensorflow and machine learning, and may be use some intelligent tracking in second step.

Thanks for advice
KR

i connect my Hub usb 2 with external supply and i change my usb cable,seem better, pixy doens’t play crazy dance any more, with only the raspberry it seem not enought power for run servo, but i cannot get tracking mode, i get image in all mode, but if i select region, seem no more tracking.

when i turn on pixy, i get few second crazy dance and get quiet. seem like normal for sync.

i can select region and see tracking in the image, but i run pan tilt demo i get again crazy dance and move came down block and pan tilt support is not more able to follow object.

servo connector are connected on the j3 axis up/down on left j3 pin, and move left/right to right j3 pin.

question ? it is possible to manipulate pixy directly with commande line into a terminal pixymon, i dont see any option ?
edit: me bad, i found it

pixy is intelligent cam,but i need for test to disable tracking and use in mode simple cam for testing and debug, than after i can use tracking mode, and i need to set correct position manually the pixy cam and focus for get image snapshot without any automatic move,

i install pixymon on my pc, window 10, 64GB ram, i75960X extrem, 6TB hdd, 2TB sdd, motherboard asus X99 DELUXE II

i connect usb cable directly on my usb pc, i get same issue in pan tilt demo with some crazy dance of pixy
cam

servos move are very violent because try track something, when i put color box at front of pixy camera, but it don’t care, and make pixy cam very unstable and fall

i use command line for test servo like
rcs_setPos 1 1000
rcs_setPos 1 0

it is working, but move are violent, and some time when i test up / down axis only, work fine

rcs_setPos 0 1000
rcs_setPos 0 0

but when i test the move left right , .
The command is working but sometimes i got a short crazy dance after action command (i doesn’t understand)

but after that when i run pan tilt demo, pixy get crazy dance by tracking when nothing at front of camera, it doesn’t care if i present a box color after signature set, it don’t track box and moving are chaotic and crazy.

servo frequency is set to 60 by default

my ref cam

strange each time i run pan & tilt demo after set signature color, the pixy get crazy dance and push cam down and doesn’t move any more, if i present my box with the good signature color, pix cam cannot focus and track and move left to right without control.

i have no more idea for yet, for resume

servo mode look work and connected with pixymon command, note at limit 1000, i hear servo trying force to get limit
servo command left/right, up/down seem work normaly under pixymon

i get raw image and i can set signature and look to be correctly tracked on image. cooked mode

but when i start to work together with pan & tilt demo, get crazy dance time and cam move down at end and it is not able to track my object

pc window 10 or raspberry pi with external hub, same issue

hypothesis, need investigate for confirm, that look move order of pixymon to pixy can be sent to fast, the previous order has no time to finish
before it receive the new one, can be the reason of crazy dance from pan tilt demo

in pixymon parameter, the frequency servo is set to 60 by default, if up to 100 i get slowly ? how i can make slowest,

where i can change the delay between two order execution, if i make execute order manually, servo work fine

I try to play with the servo frequency parameter, but same issue, at run pan tilt demo, pixy play crazy dance with or without signature setting

i have no more idea

continu search

i build lib pixy and i run hello_pixy with sudo

i get display below

Hello Pixy:
libpixyusb Version: 0.4
Pixy Firmware Version: 2.0.19
Detecting blocks
frame 0:
frame 1:
frame 2:
…
…

i getting no frame

after init by pixymon

i get data, but pixy is not in work or tracking, normal ?

Hello Pixy:
libpixyusb Version: 0.4
Pixy Firmware Version: 2.0.19
Detecting blocks
frame 0:
sig: 1 x: 137 y:96 with: 274 height: 121
sig: 1 x: 103 y:8 with: 186 height: 28
…
frame 1:
sig …

ok i finished by found, one servo was upside down bad mounted, when pixy receive the order go down, the servo go up, if order is go up the servo go down

that was not clear on tutorial, i found one youtube video pixy showing a zoom on servo-mechanisms action, i understand my mounting mistake

seem working fine with pan tilt demo, it track box with color

i can start to work on my c program for get image snapshot

Hey JP,

glad you fixed it! Sorry for our slow response. Please let us know if you need anything else.

Cheers,
Jesse