Jump to content

Search the Community

Showing results for tags '433Mhz'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • News
    • Announcements
    • Suggestions
    • New users say Hi!
  • Spotlight!
    • Sponsor Spotlight
    • Sponsor Giveaways
  • Energia
    • Energia - MSP
    • Energia - TivaC/CC3XXX
    • Energia - C2000
    • Energia Libraries
  • MSP Technical Forums
    • General
    • Compilers and IDEs
    • Development Kits
    • Programmers and Debuggers
    • Code vault
    • Projects
    • Booster Packs
    • Energia
  • Tiva-C, Hercules, CCXXXX ARM Technical Forums
    • General
    • SensorTag
    • Tiva-C, Hercules, CC3XXX Launchpad Booster Packs
    • Code Vault
    • Projects
    • Compilers and IDEs
    • Development Kits and Custom Boards
  • Beagle ARM Cortex A8 Technical Forums
    • General
    • Code Snippets and Scripts
    • Cases, Capes and Plugin Boards
    • Projects
  • General Electronics Forum
    • General Electronics
    • Other Microcontrollers
  • Connect
    • Embedded Systems/Test Equipment Deals
    • Buy, Trade and Sell
    • The 43oh Store
    • Community Projects
    • Fireside Chat
  • C2000 Technical Forums
    • General
    • Development Kits
    • Code Vault
    • Projects
    • BoosterPacks

Calendars

There are no results to display.


Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Location


Interests


Sparkfun


Github

Found 5 results

  1. Hey All, I've ported the RemoteSwitch library to Energia, For now i've only teste the receiving part, which works. I've used the MSP430G2452 in accordens with the CZS-3 SAW receiver, all works on 432.93mzh Or 433. It it can be used to controll Action, Blokker and Klik-aan-Klik uit devices like power sockets, and receive the remote control presses. So far the sending part and the optional RemoteSensor I haven't touched (yet). the code is hosted on Github: https://github.com/vinietje/RemoteSwitchEnergiaPort Please note that i've written/run this code using a current git-checkout of Energia, rather than the energia-0101E0009-macosx.dmg build. (which appear to have a bug regarding external interrupts (which this port basically is all about). Have fun using it, and keep in mind: all credit to the original authors! Cheers
  2. already posted this on the Stellaristi forum but this also works on MSP430 devices. Just change BLUE_LED to RED_LED in the examplle sketches. +-+- Hi All, Wanted to share a library I've created to broadcast x10 messages using a cheap 433Mhz OOK device. There are a lot of (Arduino based) libraries dealing with X10. I couldn't find any RF libraries that works without a 'firecracker' (CMA17) device so I've created one. I am not a coder and this is my first Energia library ever so use at your own risk. The library can emulate x10 switches and x10 security devices and also RFXMeter and RFXSensor devices manufactured by RFXCom. (www.rfxcom.com) Tested on a TI Stellarpad (LM4F120H5QR) and Energia 0101E0010. It should also work with other boards. Examples are provided with the library. You can find it on Github: https://github.com/p2baron/x10rf Regards, PP
  3. I am currently working on a battery operated wireless doorsensor. A message is sent whenever a magnetic switch causes an interrupt. I have read some topics on this forum and changed some lines in Winterrupts file and created the following sketch: #include <x10rf.h> #define intpin1 P1_5 #define txpin P1_7 #define txvcc P1_0 #define reps 4 x10rf myx10 = x10rf(txpin,0,reps); void setup() { myx10.begin(); pinMode(intpin1,INPUT_PULLUP); pinMode(txvcc,OUTPUT); digitalWrite(intpin1, HIGH); digitalWrite(txvcc, LOW); attachInterrupt(intpin1, Wake, CHANGE); } void loop() { LPM4; } void Wake() { int state = digitalRead(intpin1); digitalWrite(txvcc, HIGH); switch(state) { case 0: myx10.x10Security(3,0x84); break; case 1: myx10.x10Security(3,0x04); break; } delay(10); digitalWrite(txvcc, LOW); } This is working great but I have some questions. How can I check that MCU is running in LPM4? Do I need CCS to check (debug) this or are there other ways? At some point I want to add sensors to periodically report temperature and light conditions. What is a power efficient way to do this? I know timers don't work in LPM4. Should I switch to LPM3 or use an external circuit to wake the MCU every x minutes?
  4. Hi, I am working on a wireless touch controller for 433Mhz dimmer modules. The idea is simple. When a touch button is touched a 433Mhz command is send to a wireless dimmer module. A single or double tap switches the module on or off, holding it will cycle it from dim-bright-dim until the button is released. For this I am using the CapTouch library posted in library section of this forum. I have create a class for this to enable me to quickly add more sensors. However when I initialise more than one class the code doesn't work anymore. And I can't figure out why. The code still compiles but a touch is registered constantly. (all lights are on) Can anyone look in my code and give me some pointers? #include <RemoteTransmitter.h> #include <CapTouch.h> //KaKuTransmitter kaKuTransmitter(11); #ifndef touchDimmer_h #define touchDimmer_h class touchDimmer { public: touchDimmer(char housecode, byte unit_number, byte pin); void begin(); void check(); private: long _lTimeHigh; long _lHighTimer; long _lLowTimer; long _lTimeLow; long _lTimer; int _iPulse; int _iNumReadings; int _iReadings[10]; // the readings from the analog input int _iIndex; // the index of the current reading int _iTotal; // the running total float _average; // the average boolean _bCurState; boolean _bPrevState; boolean _bDimmerMode; boolean _bButtonState; int _iHighPulse; // Time in millis that is nessesary to count as high int _iLowPulse; // Time in millis that is nessesary to count as low byte _housecode; byte _unit_number; byte _pin; // protected: CapTouch* button; }; #endif touchDimmer::touchDimmer(char housecode, byte unit_number, byte pin) { _housecode = housecode; _unit_number = unit_number; _pin = pin; button = new CapTouch(_pin,TOUCH_BUTTON); } void touchDimmer::begin() { _lTimeHigh = 0; _lHighTimer = 0; _lLowTimer = 0; _lTimeLow = 0; _lTimer = 0; _iPulse = 0; _iNumReadings = 10; _iReadings[_iNumReadings]; _iIndex = 0; _iTotal = 0; _average = 0; _bCurState = false; _bPrevState = false; _bDimmerMode = false; _bButtonState = false; _iHighPulse = 20; _iLowPulse = 20; for (int thisReading = 0; thisReading < _iNumReadings; thisReading++) { _iReadings[thisReading] = 0; } }; void touchDimmer::check() { _lTimer = millis(); _iTotal= _iTotal - _iReadings[_iIndex]; _iReadings[_iIndex] = button->isTouched(); _iTotal= _iTotal + _iReadings[_iIndex]; _iIndex = _iIndex + 1; if (_iIndex >= _iNumReadings) _iIndex = 0; _average = _iTotal / _iNumReadings; if(_iTotal == _iNumReadings) { _bCurState = HIGH; if(_bCurState != _bPrevState) { _lTimeHigh = _lTimer; digitalWrite(RED_LED,HIGH); if((_lHighTimer % _iHighPulse) == 0) { if(_bCurState != _bPrevState) { _iPulse++; _bPrevState = _bCurState; digitalWrite(RED_LED,HIGH); } } } _lHighTimer = _lTimer - _lTimeHigh; if((_lHighTimer > 100)) { if(_bDimmerMode == LOW) { Serial.println("Dimmer ON"); _bDimmerMode = HIGH; _iPulse = 0; digitalWrite(GREEN_LED, HIGH); // kaKuTransmitter.sendSignal(_housecode, _unit_number, true); } } } if(_iTotal == 0) { _bCurState = LOW; _lTimeLow = _lTimer; _lLowTimer = _lTimer - _lTimeLow; if (_bDimmerMode == HIGH) { _bDimmerMode = LOW; digitalWrite(GREEN_LED, LOW); // kaKuTransmitter.sendSignal(_housecode, _unit_number, true); } if (((_lTimer - _lTimeHigh) > 300) && (_iPulse > 0)){ switch(_iPulse){ case 1: // kaKuTransmitter.sendSignal(_housecode, _unit_number, true); break; case 2: // kaKuTransmitter.sendSignal(_housecode, _unit_number, false); break; } _iPulse = 0; } if((_lLowTimer % _iLowPulse) == 0) { if(_bCurState != _bPrevState) { _bPrevState = _bCurState; digitalWrite(RED_LED,LOW); // Light the led } } } } touchDimmer test = touchDimmer('N',15,10); touchDimmer test2 = touchDimmer('N',15,5); void setup() { pinMode(RED_LED, OUTPUT); pinMode(GREEN_LED, OUTPUT); digitalWrite(GREEN_LED, LOW); digitalWrite(RED_LED, LOW); test.begin(); test2.begin(); } void loop() { test.check(); test2.check(); }
  5. Hi All, Wanted to share a library I've created to broadcast x10 messages using a cheap 433Mhz OOK device. There are a lot of (Arduino based) libraries dealing with X10. I couldn't find any RF libraries that works without a 'firecracker' (CMA17) device so I've created one. I am not a coder and this is my first Energia library ever so use at your own risk. The library can emulate x10 switches and x10 security devices and also RFXMeter and RFXSensor devices manufactured by RFXCom. (www.rfxcom.com) Tested on a TI Stellarpad (LM4F120H5QR) and Energia 0101E0010. It should also work with other boards. Examples are provided with the library. You can find it on Github: https://github.com/p2baron/x10rf Regards, PP
×
×
  • Create New...