Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - RF Modules with LD Micro + Arduino Mega2560 + 328

(you are viewing a thread; or go back to list of threads)

RF Modules with LD Micro + Arduino Mega2560 + 328 (by Hudson-BR)
Hello friends. Is it possible to use an RF module with LDmicro?

Initial idea would be to use an ATmega 2560 arduino as a receiver activating relay outputs and another arduino 328 as a transmitter with 10 keys communicating via RF 315/433/915 in order to activate the relays connected to the 2560 remotely.

we have some example, ideas if it is functional, this is very important to me.

Thanks in advance.
Hudson / Brazil
Sat Aug 15 2020, 20:14:02
(no subject) (by José)
It mainly depends on the way your AtMegas will communicate with your RF modules ?
Sun Aug 16 2020, 03:59:41
(no subject) (by MGP)
Sun Aug 16 2020, 04:27:00
(no subject) (by Hudson-BR)
José,

would you like a rf module light to be used, suggestion?

I currently use a bluetooth hc 06 on the 2560 rx / tx pins with ldmicro. In the example link of MGP, ask to connect the RF pin to the serial rx of the atmega receiver (2560) that already receives my BLE by receiving / sending data to my app. Is it possible to use BLE and RF on the same rx pin?

MGP, Link sujerido, had already seen, I didn't understand its operation yet, would there be any video tutorial simulating its MGP operation?

the project currently comprises:
1 atmega 2560
4 H bridge modules to activate loads (solenoids) - 14 used + 2 reserve
1 hc 06 ble
4 position sensors (wheels)
1 pressure sensor (cylinder pressure)
1 membrane keyboard with 14 keys (14 mega2560 digital inputs)

Now the idea is to deploy an RF remote control with atmega 328, triggering my loads on the atmega2560 receiver. To have the option to command via my App and remote control. I currently have this control, a membram keyboard that I had it manufactured, but with wires, I want to eliminate that, it uses 14 digital inputs.

Entries A8 to A15 are also not working in the latest version of LDmicro José, it is limiting me because I wanted to insert 4 more pressure sensors, totaling 9 AD sensors in the system.

wouldn't it be possible to insert another serial in LDmicro (rx2 / tx2)?

My project is a manager for car air suspension (active suspension), it was my tcc 10 years ago, done in C language, but studying the Ladder it was possible to notice progress in the information processing, making the project more complete and stable , since it is an embedded technology.

I am extremely surprised, thanks for everything José at LD micro.
Sun Aug 16 2020, 08:30:34
(no subject) (by José)
OK, Hudson

There's only one UART (UART1) available in ldmicro and it would be much development work in source code to add second one. As this UART is used yet by pour Bluetooth module, you can't use it with an RF module at the same time.

So you need to choose a RF module with another communication protocol, not RX-TX. Maybe SPI or I2C ?

ADC0 to ADC15 seem to be available on AtMega2560 ; why don't ADC8 to ADC15 work for you ?

Best regards
José
Sun Aug 16 2020, 09:15:13
(no subject) (by Hudson-BR)
OK, I can imagine what it would be like to add another UART.

Do we have an example LDmicro-compatible RF SPI or I2C module? Any example of .ld code + layout layout + pins to connect?

I'm sorry, it would be PF0 to PF7 that didn't work when I tested it. I inserted my magnetic potentiometer triggering a test led. And I didn't answer. I can check that again.

attached is my prototype electronic platform + current membrane that i would like to use on the 328 communicating rf with 2560 of the module.

Very grateful for LDmicro, You are a genius and very attentive on the forum.
Sun Aug 16 2020, 10:37:32, download attachment WhatsApp Image 2020-08-16 at 11.32.03.jpeg
(no subject) (by José)

Nice project !

No idea of a compatible RF module / example ; if you find a module that you can afford buying on the net, post the datasheet so that I can have a look at it.

Beware that ADC inputs are PF0 tp PF7 (ADC0-7) and PK0 to PK7 (ADC8-15) on AtMega3560 ?
Sun Aug 16 2020, 10:57:14
(no subject) (by Hudson-BR)
yes, I have the notion of the PF and PK ports (pinout arduino mega 2560 on the web shows). I will test during this week return on this feed.

I will research some RF module, and if you can guide, thank you!

Now let's think of a plan B.

And if we insert another BLE HC06 in Atmega328. I imagine that you can offer the condition to command by the App or by the remote control atmega328 with another BLE. I would have an idea if it would be possible
Sun Aug 16 2020, 11:32:21
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):