SmartRC-CC1101-Driver-Lib icon indicating copy to clipboard operation
SmartRC-CC1101-Driver-Lib copied to clipboard

Use of the i2c on wemos d1 mini

Open boumboum68 opened this issue 4 years ago • 26 comments

Hi there

I'm struggling to find a solution for my question perhaps you could help me... 😅 The gdo0 and 2 pins are connected to the i2c pin on the wemos I wold like to connect a oled display to display info How could I connect this 2 pins and configure them to be able to use the i2c?. Thanks for your help

boumboum68 avatar Jan 27 '21 11:01 boumboum68

hi, you still have D0, D3 and D4 to choose from for the gdo pins. change the pins in the sketch and try whether sending and receiving still works. Regards

LSatan avatar Jan 27 '21 14:01 LSatan

Thanks @LSatan I've tried but impossible to program the wemos module Does any other configuration of the pin have to be done or only the d pin on the cc1101 library? Tha KS

boumboum68 avatar Jan 27 '21 14:01 boumboum68

no you have to change the pin in the examples. which example do you use?

LSatan avatar Jan 27 '21 16:01 LSatan

OK This is the program I use or trying 😅 https://github.com/supermomo31/Somfy_MQTT But can't find where to change only in your library

boumboum68 avatar Jan 27 '21 16:01 boumboum68

Perhaps you better find the declaration that could save me

boumboum68 avatar Jan 27 '21 16:01 boumboum68

You do not understand. it is changed in the skitze. not in my lib. in this case the pin is changed in somfy_remote.cpp.

Screenshot_20210127-180017_Chrome

regards

LSatan avatar Jan 27 '21 17:01 LSatan

yes exactelly what i've done to have the DO and D3 to be used image but then the module have no output on the serial monitor like it hangs . image

boumboum68 avatar Jan 27 '21 17:01 boumboum68

if i remove one of the GDO pins then it works normally that's why my question: image

boumboum68 avatar Jan 27 '21 17:01 boumboum68

Ok and 2 and 16?

LSatan avatar Jan 27 '21 17:01 LSatan

0 is use for flash

LSatan avatar Jan 27 '21 17:01 LSatan

right i chaznge it to D4 meaning 2 and D0 16 image perhaps do iu do something wrong on the pining numer?

boumboum68 avatar Jan 27 '21 17:01 boumboum68

16 was Used for wake up

LSatan avatar Jan 27 '21 17:01 LSatan

Is it only transmit? Or also received?

LSatan avatar Jan 27 '21 17:01 LSatan

yes only transmit

boumboum68 avatar Jan 27 '21 18:01 boumboum68

ok i think it can only send. I will later make a few corrections to the somfy_remote.cpp. then gdo0 on D4. you won't need gdo2.

LSatan avatar Jan 27 '21 18:01 LSatan

oh thanks thats really cool .. then waiting for your feedback .

boumboum68 avatar Jan 27 '21 18:01 boumboum68

I wonder a little. gdo2 can actually only receive and not send. at least in ask mode. gdo0 can do both.

LSatan avatar Jan 27 '21 18:01 LSatan

So this mean that gdo0 have to used? Or not possible at all?

boumboum68 avatar Jan 27 '21 18:01 boumboum68

Do you think that better is to use a esp32 module in place of the wemos d1 mini?

boumboum68 avatar Jan 27 '21 18:01 boumboum68

So this mean that gdo0 have to used? Or not possible at all?

True we use gdo0.

Do you think that better is to use a esp32 module in place of the wemos d1 mini?

Esp32 is better. Now we check wemos d1 At First

LSatan avatar Jan 27 '21 18:01 LSatan

Do you think that better is to use a esp32 module in place of the wemos d1 mini?

OK boss 👌😅

boumboum68 avatar Jan 27 '21 18:01 boumboum68

ok, check the somfy_mqtt.zip. Set the TxPin in the somfy_mqtt.ino after all the includes. give me a feedback on whether it works. Somfy_MQTT.zip

LSatan avatar Jan 27 '21 20:01 LSatan

@LSatan thanks a lot.. That will cost me a beer 😉 I wil' try this tommorow morning and be back to you. By the way seems that even with the standard config when you remove the gdo2 wire seems working in TX only but not sure that the right way.

boumboum68 avatar Jan 27 '21 21:01 boumboum68

I'm trying to test you code but i have an error in the compile: image

boumboum68 avatar Jan 29 '21 17:01 boumboum68

sorry I can only check it on Sunday. i'm not at home. I'll sign up again.

LSatan avatar Jan 29 '21 18:01 LSatan

Absolutely no problem.. Have a nice weekend

boumboum68 avatar Jan 29 '21 18:01 boumboum68