Supersimpele sensor: de fader

Monday, November 25, 2013
Supersimpele sensor: de faderLike0

Ik ben een sound designer, dus voor mij is het een ‘fader’, deze “Slider 60 Analog Slide Position Sensor” van DF Robots.

Ik ben gewend om nogal wat te moeten zwoegen om sensoren en dergelijke aan de praat te krijgen, maar dit was echt letterlijk aansluiten en gaan.

Hier staat alles duidelijk beschreven, inclusief aansluitschema:

Stekkertje erin, drie draadjes in 5v (rood), grnd (zwart) en signal (blauw) en je kunt deze sketch uploaden. Dan werkt het meteen.

// # Editor     : Lauren from DFRobot
// # Date       : 30.12.2011
// #
// # Editor     : Lauren from DFRobot
// # Date       : 17.01.2012
// # Product name: Rotation Sensor v1/v2 or Analog Slide Position Sensor
// # Product SKU : DFR0054/DFR0058/DFR0053
// # Version     : 1.0
// # Description:
// # the sample to drive some analog sensors
// # Connection:
// #        Signal output pin  -> Analog pin 0
// #
void setup()
  Serial.begin(9600);     //Set serial baud rate to 9600 bps
void loop()
  int val;
  val=analogRead(0);      //Read slider value from analog 0
  Serial.println(val,DEC);//Print the value to serial port



Leave a Reply

Your email address will not be published.

Follow @ Guerrilla Games
  • Aloy and some of her allies

Art 🎨 by @travismcouch

#FanArtFriday #HorizonZeroDawn
  • Aloy and Talanah, ready to take on Redmaw!

Aloy cosplay by @veera.cosplay
Talanah cosplay by @jgmycroft
Photography by @cyrenscosmedia

#horizonzerodawn #cosplay #horizoncosplay #aloy #aloycosplay #talanahcosplay
  • The detail on this Watcher is amazing! #FanArtFriday #HorizonZeroDawn 🎨 by SilverScythe89 on DeviantArt
  • If you saw our anniversary post on the PlayStation Blog, you might have already spotted this impressive Shield-Weaver cosplay by @keyvei – she even made a Banuk figurine! 📸 by @nerina_phototography

#horizonzerodawn #cosplay #aloy #aloycosplay #shieldweaver #banuk
  • Choro Choi from our concept art team created this beautiful scene of Aloy and her friends to celebrate #InternationalWomensDay 💜

You can download it as a theme for your PS4, the link is in our bio
  • Happy International Women's Day from our team at Guerrilla!

#IWD2019 #InternationalWomensDay
  • Today we're celebrating the second anniversary of Horizon Zero Dawn, with cupcakes and a colourful cake from our friends at @pubg 🎂

Thank you all for the continued support ♥
  • Marius (@steponabrick) dropped by the studio yesterday to deliver his amazing builds of the Corruptor, Shell-Walker, Sawtooth and a little Watcher!

They will get a nice spot in @hermenhulst's office, thank you Marius!