måling af stokerpille niveau med ultralyd
Hvordan måles træpille niveauet med arduino?
Med ultralyd, det giver en (håber jeg) nøjagtig måling som også kan bruges til at calculere årligt forbrug, forventet forbrug ud fra forbrugs hastigheden og mere.
Den ultra lyds sensor jeg har valgt er måske lidt overkill, men let at bruge, den sender nemlig data ud serielt/ttl/pwm .
Så bliver det ikke meget lettere at måle træpilleniveau med en arduino / freeduino.
Ultralyds sensoren hedder URM3.2 er kommer fra yerobot.com
Data pakke fra stokerfyrs datalogger:
192.168.2.222|2009-10-13 16:49:41; temperatur-stoker 44.81
192.168.2.222|2009-10-13 16:49:41; temperatur-ude 05.93
192.168.2.222|2009-10-13 16:49:41; pille-niveau 000044
Pin forbindelser for sensor:
1: +VCC – +5V Power
2: GND – Ground
3: RST – Reset
4: PWM – PWM Output 0-25000US,Every 50US represent 1cm
5: MOTO – Servo control signal output
6: COMP/TRIG
COMP – On/OFF mode, when the detecting distance is smaller than a pre-set value, this pin pulls low.
TRIG – PWM or RS232 trigger pin
7: PWR_ON – Enable pin, enable the sensor when high
8: RXD – RS232,TTL communication
9: TXD – RS232,TTL communication
Developer ressourcer til ultralydssensor:
1) Interface URM V3.2 to Arduino via PWM
3c0a#p10
2) Interface URM V3.2 to Arduino via TTL (only for Rev 2)
3) URM V3.2 Arduino Library
4) URM V3.2 on Basic Stamp
More information and support:
Website: www.YeRobot.com
Forum: www.YeRobot.com/Forum/
I arduino.cc forum har jeg fundet et library specielt til denne ultralydssensor
http://www.arduino.cc/cgi-bin/yabb2/YaBB.pl?num=1240698692
Tilslutning via PWM herunder, desværre kan jeg ikke bruge denne løsning til min stokerfyrs styring idet ethernet shieldet bruger pwm pins. Regner med det mest hensigtsmæssig er TTL mode, så kan jeg bruge usb porten til programmering også (mikrosw monteres til disbale af ultralyds sensor.)
This sensor is perfect for any number of applications that require you to perform measurements between moving or stationary objects. Naturally, robotics applications are very popular but you’ll also find this product to be useful in security systems or as an infrared replacement if so desired.sensor measures distance using sonar; an ultrasonic (well above human hearing) pulse is transmitted from the unit and distance-to-target is determined by measuring the time required for the echo return.
URM37 V3.2 Ultrasonic Sensor uses an industrial level AVR processor as the main processing unit. It comes with a temperature correction which is very unique in its class.
Direct control through RS232, easy to control by PC.
All URM 37 V3.2 is shipped with PWM mode Enabled. Plug on your MCU and play with it!
This URM V3.2 Rev2 has a jumper which allows user to select RS232 level output or TTL level output. The previous one doesn’t have this function.
Specfication
Power: +5V
Current: <20mA
Working temperature: -10 ~ +70 C
Detecting range: 4cm-5m
Resolution: 1cm
Interface: PWM, RS232 or TTL (via Jumper)
Servo control: One servo control output
Operating Mode: Serial (PWM) passive control mode; Autonomous Mode; On/OFF Mode
Temperature sensor: 12 bits reading from serial port
Size: 22mm × 51 mm
Weight: 30g
The mannual can be downloaded here:
Mannual
For other stuff,such as arduino, infrared sensor, wireless module, please visit my ebay shop:
http://shop.ebay.co.uk/merchant/duckchen24