haklein / r4850g2_arduino

Huawei R4850G2 rectifier CAN bus control via Arduino
13 stars 3 forks source link

Oled #1

Closed Roturbo closed 5 months ago

Roturbo commented 7 months ago

Hello,

i try to build this to adjust my r4850 power supply but no joy, display not working.

i have use 4 and 5 for oled SDA and SCL, i have 2 types of oled, the 0.96 and the 1.2" and they are working because i try with other sketch.

Example, with sketch SH106-128-64_i2c, ssd1306_128x32_i2c, DisplayRotationWire, Wire128x64SH1106 the oled works.

Can you please post the schematics for correct connection for oled and can-bus board, also the type of Oled to use ?

Tanks in advance

.

haklein commented 7 months ago

Hi, you do use the R4850G2_Menu.ino Sketch, right? Line 42 defines the i2c address of the Oled module. I'm using the 0.96" 1306 one. br Hari

Roturbo commented 7 months ago

Hi,

the problem was the missing can module, the software hangs if there is no communication with the can module and the display stays black,, i have look for the pin out and connect it, and it is working normal.

How about give the option to use the Oled 1.3" SH1106 ?

I leave here the connections,, if you want put it on first page to help others in future.

r4850G2_pinout

Regards

haklein commented 7 months ago

Thanks a lot, I've added the pinout to the readme! I do not have a SH1106 to test, but feel free to submit a PR.

Roturbo commented 7 months ago

Hi, ,

i will open a PR for the SH1106.

The picture is "private-user-images.",, i think you need to save it on you PC and upload it again for everyone to see it on the readme page.

regards.

haklein commented 7 months ago

just did that, thanks!

Roturbo commented 7 months ago

Hello,

Sorry i don´t have knowledge to make this type of changes and open a PR, my programming skills are very low.

The 1.3" oled is working, one or two vertical lines missing on the left but it is ok, if you want and have the chance to change the code i can try it and report here.

1

2

It´s working,, tank you for this.

Regards.