temp sensor over 433Mhz
BBC MicroBit with RF 433Mhz receiver reading Oregon-Scientific wireless temperature sensor. Originally written for the Raspberry Pi but easily converted for the little microbit.
Diff: OregonBit.cpp
- Revision:
- 2:7455dae4e624
- Parent:
- 1:706c7b028278
--- a/OregonBit.cpp Tue Jul 26 13:42:32 2016 +0000 +++ b/OregonBit.cpp Tue Jul 26 13:49:55 2016 +0000 @@ -24,7 +24,40 @@ /* If you wish this program can be improved on by adding error checking by using the checksum (hex conversion needed) and/or */ /* by storing values and checking against the second transmission of the same message (all messages sent twice, I sleep through the */ /* second transmission Zzzzz). */ + /**/ + /*IMPORTANT NOTE : Most 433Mhz receivers are 5v so will not be powered from MicroBit. The data output is low voltage 3v so OK for MicroBit. */ + /* FastIO used because pin bashing was too slow. Maybe improvements could be made by using mbed interruptln */ + +/* Feel free to change, copy, or whatever ... */ + +/* +The MIT License (MIT) + +Copyright (c) 2016 British Broadcasting Corporation. +This software is provided by Lancaster University by arrangement with the BBC. + +Permission is hereby granted, free of charge, to any person obtaining a +copy of this software and associated documentation files (the "Software"), +to deal in the Software without restriction, including without limitation +the rights to use, copy, modify, merge, publish, distribute, sublicense, +and/or sell copies of the Software, and to permit persons to whom the +Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL +THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER +DEALINGS IN THE SOFTWARE. + + +Using the BBC MicroBit. */ + #include "MicroBit.h" #include "FastIO.h"