pulseIn and general arduino setup

Hi y'all,

I want to make a switch that operates a pneumatic valve via an rc transmitter/receiver. The circuit also has a boost converter, so i can supply my valve with approx. 30V using a 9.9 LiFe battery.

I'm using the pulseIn command to measure the receiver pulse. I use pin 10 to control the boost converter and pin 11 is the 'switch'. It kinda works but I have a problem: when I power up the arduino it seems to briefly switch on pin 10 and 11! I really don't want that: it could potentially switch on my valve during start-up...

Any ideas?

thx!

The pin’s state is undefined during start-up. You can connect a 10K resistor between the pin and ground, to assure that it stays LOW until to explicitly drive it HIGH.