sharp gp2y0a21yk0f

Firmware/software/electronics/mechanics
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

This is the console output, maybe it helps:

Code: Select all

SYS: ----------------------------
SYS: Crazyflie 2.0 is up and running!
SYS: Build 55:a691387f311f (2015.08.1-55) MODIFIED
0034 and I have 1024KB of flash!
CFGBLK: v1, verification [OK]
IMU: MPU9250 I2C connection [OK].
IMU: AK8963 I2C connection [OK].
IMU: LPS25H I2C connection [OK].
DECK_INFO: Found 0 deck memory.
DECK_CORE: 0 deck enumerated
DECK_CORE: Initializing compile-time forced driver myIrSensors
EEPROM: I2C connection [OK].
AK8963: Self test [OK].
LPS25H: Self test [OK].
SYS: Free heap: 5312 bytes
chad
Expert
Posts: 555
Joined: Sun Sep 28, 2014 12:54 am
Location: New York, USA
Contact:

Re: sharp gp2y0a21yk0f

Post by chad »

mannaris wrote:But the value from the sensor isnt right. I only see a regular graphic which isnt affected by the proximity in front of the sensor. Maybe my fault is that I have to insert a logging time, but have defined it yet in my driver. The sensor works fine, but the value cant be right. I hope you know how to help.
I'm afraid I can't help with that. I know nothing about that sensor or building out decks (yet). Maybe someone who's more experienced can walk you through troubleshooting that.
Crazyflier - my CF journal...
4x Crazyflie Nano (1.0) 10-DOF + NeoPixel Ring mod.
3x Crazyflie 2.0 + Qi Charger and LED Decks.
Raspberry Pi Ground Control.
Mac OS X Dev Environment.
Walkera Devo7e, ESky ET6I, PS3 and iOS Controllers.
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

Hello,
im glad to say that my proximity sensor works fine and i got realistic sensor values in the client. After reaching this I ordered a sonar sensor and it works also fine. In this place first i want to say thank you for your help!
Yesterday i saw this post:
viewtopic.php?f=6&t=643
and after this i decovered this video:
https://www.youtube.com/watch?v=chWrNh73YBw

Then I got the idea, that i can try to connect the sensor output to the motor control, that means if the sensor value is higher than a explicite level the motor turns off or on. My first question is if this is possible?
In the video you can see how to create a parameter and how to add it. Now i need the sensor value as condition in stabilizer.c. How can i do that?

Thanksfull for every help!

mannaris
mannaris
Beginner
Posts: 23
Joined: Tue Oct 13, 2015 6:05 pm

Re: sharp gp2y0a21yk0f

Post by mannaris »

I have reached that the function to enable te motors is integrated. Now i need to include my range value from my little file to connect it with the parameter. How am i supposed to do that?
Post Reply