![]() If you upload more than 5 files we will display all attachments as thumbnails.įor a full reference visit the Markdown syntax.Just like Github, a blank line must precede a code block. Mention another user by For syntax highlighting, surround the code block with three backticks:.Create numbered lists by starting lines with a number and a dot * Create lists by starting lines with asterisks.That's the hard one: exclamation, square brackets and then the URL to the image in brackets. To **bold** text put two asterisks each side of the word. ![]() To *italicise* text put one asterisk each side of the word.Create headers by underlining text with = or.We will auto-convert links, and if you put asterisks around words we will make them bold. My next goal is to port the receiving code so that my rf-receiver can react to the remote that comes along with the plugs.ĭon't worry about formatting, just type in the text and we'll take care of making sense of it. Theres a pretty good explanation on the rc-switch wikipages for how these plugs operate. I therefore use the code 1010101000 and append 10 for turning on and 01 for turning off. Though I tweaked it a little bit: var thePin = A2 ĭigitalPulse(thePin, 1, 0.35 * numberHigh) ĭigitalPulse(thePin, 0, 0.35 * numberLow) Īs my plugs and remote is set with the following system code: 1 2 3 4 5Īnd the plug in the above code has the following dips set: a b c d e This example is more or less directly translatable into Espruino. My cheap RF-plugs is using this setup, 5dip on the remote and 2x5 dip on the plug. The example TypeA_WithDIPSwitches_Lightweight seemed to be the easiest way to start. I ended up using the rc-switch library as a base. I had found examples online to receive and transmit rf signals, but they were either for arduino or for raspberry pi. Connected ground and power (3v3) and the data pin to A2. So I just use male-female connector wires from the transmitter into the board. download and install the STM32 Virtual Com port driver run the ST-LINK, select the espruino1v70stm32f4discovery.bin file and flash it onto the board After these easy steps, you simply connect the micro USB port to your computer and connect the Espruino IDE (Chrome extension) to the newly created COM port. I tried connecting the modules using a breadboard, but the antenna pin seems to act up when doing so. I soldered some headers onto my board so that I easily can connect and disconnect stuff while learning about these things. Sorry for these links leading to a swedish shop, they can probably be found in other online stores as well (probably cheaper too). I have two separate modules for RF signals, one receiver and one transmitter. It's currently running the 1v41 of Espruino (if that matters). A tiny disclaimer though, I don't know anything about this, I'm learning about microcontrollers as I go ) Therefore, I might use the wrong terminology :)
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |