Seite 1 von 1

ultraschall sensor nur bei bedarf einschalten

Verfasst: 09 Jan 2014, 19:12
von funmca
Hallo zusammen,

ich habe mal eine Frage:


Sendet der Ultraschallsensor eigentlich dauernd Ultraschallwellen aus oder kann man das nur bei Bedarf machen um Interferenzen zu vermeiden ?

Viele Grüße
Marco

Re: ultraschall sensor nur bei bedarf einschalten

Verfasst: 09 Jan 2014, 22:21
von Dirk Fox
Hallo Marco,

einfachste Lösung: schließ' die Stromversorgung des Sensors an einen Lampenausgang an und schalte sie nur bei Bedarf ein.

Grüße, Dirk

Re: ultraschall sensor nur bei bedarf einschalten

Verfasst: 10 Jan 2014, 11:09
von Ad2
I would have to test this because I don't know for sure but I think the pulse is triggered by a request from the input it is connected to. All ultrasonic inputs are interrogated in a sequential fashion. The reason to link the pulse to the interrogation is that it guarantees that multiple sensors will not pulse at (almost) the same time and get confused by eachother's pulses or echoes. If this is true you could mute a sensor by setting the input to something else than 'ultrasonic'. I don't think this can be done programmatically in RoboPro (fixed interface setting), but it can be in "C". You can actually hear the sensor when it is transmitting, of course not the 40kHz but when you listen carefully you can hear the pulses as clicks.

Re: ultraschall sensor nur bei bedarf einschalten

Verfasst: 10 Jan 2014, 17:52
von funmca
Vielen Dank, das mit dem Lampenausgang ist ja wirklich eine gute Idee...