Projektbeschreibung:
Die Erfassung der Helligkeit erfolgt mit einer selbstgebauten Hardware. Zum Einsatz kommen ein ATMEGA328P Microprozessor (Datenblatt), welcher die Helligkeit von einem hochempfindlichen TSL237 Lichtsensor (Datenblatt) via Frequenz in Form eines Rechteckssignals empfängt. Der Sensor sendet je nach Helligkeitswert eine Frequenz <2Hz bis zu ca. 500kHz. Das ganze wurde in ein Gehäuse verpackt und mittels 1W-Solarzelle wird unter Tag der verbaute LiPo-Akku geladen. Der Sensor wacht unter Tags alle 20 Minuten auf und detektiert, ob es Nacht wird. Ist es dunkel, sendet er alle 5 Minuten die gemessenen Helligkeitswerte via XBee-Modul (Datenblatt) an das Empfangs-Gateway des Heimservers. Der Sensor ist auf ein GPRS-Modul umrüstbar, um Ihn auch im Feld, fernab des Heimservers einsetzen zu können. Die Datenwerte werden dann über das GPRS-Netz eines Mobilfunkanbieters an den Zentralserver übertragen.
Die Homepage zur Lichtverschmutzungsmessung ist hier: http://62.218.47.86/Lichtverschmutzung/
März 28th, 2012 on 16:00
Thanks John,Actually it is working fine for me I was just kniasg given I relatively new to this. I am wondering if anyone has written code that sent packets via unicast instead of broadcasting? I have 3 NXTBees all on the same network and by default a call to nxtWriteRawHS() will broadcast to all devices the data being sent.It looks like I can set the address for unicasting (if I know the 64 bit address) by going into command mode and setting the DH and DL to the upper and lower bytes respectively. I read this in the XBee-PROae ZB RF Modules at pg 42-43Just curious if this has been tried yet. I will be giving it a shot within the next couple of days anyway and if I get it working I’ll post something up.
März 28th, 2012 on 19:21
Regarding unicasting vs batadcrsoing.If you want to send directed unicast messages to one of several different XBees then you probably want to use the XBee’s API mode rather than AT commands. The difficulty with AT commands is that it takes a couple of seconds to enter AT command mode to change the destination address and exit AT command mode. Then you can send some data. And if you want to communicate with a different XBee you have another couple seconds of waiting to change the address.