Descargar Project 64 32 Bits

0 views
Skip to first unread message

Elisabetta Buendia

unread,
Aug 5, 2024, 3:48:05 AM8/5/24
to preqodrilec
STORYnot required to understand my problem):

I've been tinkering with micro:bits for a while and have managed to build some nice-looking IR transmitters, each powered by one micro:bit controller (see picture). I want to control some of my home appliances from PC using micro:bits over IR and mostly my system already works except for my air conditioner which uses longer IR commands.


I have decoded those commands. I have got raw IR data from my A/C's IR remote and decoded each command into a hex string. However, these commands are MUCH longer than any available MakeCode IR extension can handle.


They work perfectly when trasmitted raw using Arduino UNO (checked that), but this A/C IR module is my last, so I don't wanna switch and scrap all my work.

I understand that MakeCode won't let me send neither "long" datagrams nor raw IR data whatever IR-related extension I choose (there aren't many anyway), so I want to use Arduino IDE with some libraries to do this.


PROBLEM:

I have no idea as to how to make a micro:bit unit programmed with Arduino IDE understand radio data transmitted by another micro:bit unit. I know how to read and write pins, use led matrix and stuff, but I can't use its radio capability.


I know this should be possible, because I got this script working fine, but I don't get any consistent results with it. I can tell WHEN there is a transmission, but I can't tell WHAT is being transmitted.


Micro:bit is an "entry-level" microcontroller on nRF51822 by BBC. It's easier to start working with for a rookie than Arduino because it has quite a lot of stuff built into it (e.g. buttons, compass, accelerometer, temperature sensor, magnetometer, 5x5 dot LED screen, bluetooth) and its GUI-based code editor has an oversimplified mode along with Python/JS that makes programming super easy (I've never been into coding since I work as a translator, but I managed to do some sort of IR-based IoT with that).


BUT pushing anywhere beyond that is much harder for a novice, because any sensible person would simply switch to Arduino (which I sure will, but after I finish this project). Thus, there's little to no information on the internet.


So, speaking of my problem, micro:bit use their own wireless BLE connectivity. Basically, you can have multiple MB units talk with each other using various channels at the same time. It works like a charm out of the box when MB's own IDE (MakeCode) is used for programming. But I'm having trouble making wireless work using Arduino IDE.


For the micro:bit to work on Arduino, someone had to put together the Arduino core code, and the required libraries. It looks like Adafruit did some or all of the Bluetooth radio stuff, so their forum would be the place to post.


Thank you. I've read what they have to offer regarding micro:bit radio. It looks like they only use its BLE to connect it to their mobile application. I've found their libraries in Arduino, but found nothing to make two micro:bit devices talk to each other.


When I upload the example onto the board, it seems to be picking up... something of what I'm trying to send from the other unit (the one that is still programmed by micro:bit's native software). It reacts and prints the output into the console, but this output has nothing to do with what I'm sending.


I don't really hope to get Arduino-programmed and a MakeCode-programmed micro:bits compatible with each other at this point. I could reprogram all my units with Arduino if I have to, but I've got to understand how to make them send/receive strings or at least integer values over radio.


Yeah, it's just the contents of what's actually being sent there remained mystery to me. But it looks like some of the data in that example CAN be customized, so I can use that to send different commands depending on serial input just as planned.


For now I found out that the 'version' part of the transmitted data can store integers from 0 to 255, which can be extracted on the remote device and stored in a variable. I know that's not the way it's supposed to be used, but this is the first time I got consistent results.


Downloads are available in source and binary formats at the PostgreSQL downloads sitepsqlODBC DocumentationThe following documents contain various bits of useful information. Please send any additional documentation, or report errors/omissions to pgsql...@postgresql.org


As part of a commercial research project,the developers at Insight DistributionsSystem overhauled the driver. Their goal was to make the drivercommercially viable. In keeping with the spirit with whichthe original source was acquired, Insight published their work at theirwebsite. Some time later and after some discussion with membersof the PostgreSQL organization, psqlODBC was adapted as the part of thePostgreSQL source distribution. The driver continued to be maintained by Byron Nikolaidis, the developer at Insight who overhauled the driver for some time.


THIS SOFTWARE IS PROVIDED "AS IS", AND M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR IMPLIED. By way of example, but not limitation, M.I.T. MAKES NO REPRESENTATIONS OR WARRANTIES OF MERCHANTABILITY OR FITNESS FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE LICENSED SOFTWARE OR DOCUMENTATION WILL NOT INFRINGE ANY THIRD PARTY PATENTS, COPYRIGHTS, TRADEMARKS OR OTHER RIGHTS.

3a8082e126
Reply all
Reply to author
Forward
0 new messages