Gesture control and etc

hello.

the khadas edge v has a gesture control sensor.
1-how to use it
2- the antenna is just in front, led for the remote control and control gestuel.indiegogo old antenna vim2.
the 3705 cooling fan, in France it is very very hot.

thank you

Do you want to use ubuntu or Android?

hello @goenjoy

I use android

We’ve only verified it on ubuntu, and I’ll get back to you in two days.

1 Like

How to use gesture control on Ubuntu? thanks!

https//github.com/sparkfun/APDS-9960_RGB_and_Gesture_Sensor
I refer to the above code base to modify the driver file apds9960.c

  • Recognition distance is about 10 cm
  • Don’t move your hands too fast.
  • It’s just throwing a brick here to attract jade, Code also needs to be optimized individually.
	switch (code)
	{
	   case 1://DIR_LEFT
		key_code = KEY_LEFT;
	   break; 
	   
	   case 2://DIR_RIGHT
	   	key_code = KEY_RIGHT;
	   break; 	
	   
	   case 3://DIR_UP
		key_code = KEY_UP;
	   break; 

	   case 4://DIR_DOWN
	   	key_code = KEY_DOWN;
	   break; 
	   
	   case 5://DIR_NEAR
		key_code = KEY_5;
	   break; 
	   
	   case 6://DIR_FAR
	   	key_code = KEY_6;
	   break; 
	   
	   default:
	   return;
	}
	input_report_key(input_key_dev, key_code, 1);
	input_sync(input_key_dev);
	input_report_key(input_key_dev, key_code, 0);
	input_sync(input_key_dev);

When near/far state from gestures:

When l/r/u/d state from gestures:
Will be equivalent to the keyboard up and down the left and right buttons.

2 Likes