Coollvse OLED issue

er9x is the best known firmware. It has a superb range of features and is well supported by the community. Well worth trying out.
BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Wed Dec 12, 2018 4:42 pm

Then it's sad (


User avatar
jhsa
Posts: 18887
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Coollvse OLED issue

Post by jhsa » Wed Dec 12, 2018 4:52 pm

BlackShooter wrote:
Wed Dec 12, 2018 3:20 pm
I have a homemade remote, the space is very limited, to add another stabilizer, to feed the hall sensors separately is problematic.
I can't see why, use an SMD 3.3V regulator and capacitors. Even if you build this on a piece of stripboard it shouldn't be bigger than about 1cm. Power it from the 5V regulator. To feed the gimbals, i also can't see where the problem is. Normally you should just have to cut one wire or two, and connect it somewhere else. On the AREF pin you would just have to cut a trace coming from the 5V and connect the 3.3V from the regulator..

Or then just try to use the 3.3V regulator that powers the LCD.. No more extra parts and no more extra space needed.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

User avatar
jhsa
Posts: 18887
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Coollvse OLED issue

Post by jhsa » Wed Dec 12, 2018 4:57 pm

BlackShooter wrote:
Wed Dec 12, 2018 4:42 pm
Then it's sad (
No, it is not sad.. We are giving you an alternative solution that should work well. Do you realize that Mike would have to change most of the code?? That could take hours of work.. :( As Kilrah said this is not Arduino code, setting the timers is NOT automatic when you compile.. Need to be changed in the code..

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Wed Dec 12, 2018 5:13 pm

Да я уже понял, просто думал, что это должно работать как в аналогии с ардуино.

А началось все с того, что при 3.3 вольтах питания микроконтроллера и 16 мегагерцах все было хорошо пока не наступили холода и микроконтроллер стал перезагружаться.

Спасибо за советы, буду тогда делать раздельное питание.

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Wed Dec 12, 2018 5:30 pm

Changes to make the processor operate from 8MHz are not easy and, for the timers may not be possible. Most timers are configured to be clocked at 2MHz, generated from 16MHz using a pre-scaler of 8. There is no pre-scaler of 4 available in the mega128, so if the main clock is 8MHz, it is not possible to run the timers at the required clock rate. Using a different clock rate will then affect a significant number of areas of the code, the PPM/PXX/Multi protocols in particular. All will need to be re-coded, and then carefully checked to ensure they are operating correctly.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Fri Dec 14, 2018 4:25 am

I connected to VCC and AVCC 5v, and to AREF I sent 3.3 volts from the separate stabilizer to the hall sticks. However, here is the oddity, on sticks instead of 3.3 volts comes 4.7.
However, in this combination, everything works

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Fri Dec 14, 2018 8:16 am

I have 5 volts with AREF, why?

User avatar
jhsa
Posts: 18887
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Coollvse OLED issue

Post by jhsa » Fri Dec 14, 2018 10:36 am

Probably because you are not disconneting the 5V from the processor AREF pins and connecting 3.3V from another regulator..
Just guessing here.

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Sat Dec 15, 2018 8:11 am

you are mistaken, AREF is disconnected from 5 volts, and when measured with a voltage multimeter, 5 volts comes from it. After connecting to 3.3 volts, the multimeter shows 4.7

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Sat Dec 15, 2018 11:09 am

OK, the firmware is using "AVCC with external capacitor at AREF", so this will conflict with an external 3.3V reference.
I'm considering how best I can handle supporting both this existing setting and an "External voltage on AREF" option.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Sat Dec 15, 2018 5:59 pm

Thanks.At the moment I am using r809 firmware, there is a very convenient feature. Channel mixer when assigning the switch toggle switch if you click it, then it is automatically selected in the settings. You do not have such a function, you need to know in advance which switch to choose. Can you implement it? I hope the translator will clearly translate my thought)

User avatar
jhsa
Posts: 18887
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Coollvse OLED issue

Post by jhsa » Sat Dec 15, 2018 6:13 pm

Sorry, but that feature is also present in the last version.. I have just checked. :)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Sat Dec 15, 2018 8:41 pm

https://youtu.be/uCENSPUKjMo

I'm talking about this function. and you?

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Sat Dec 15, 2018 9:55 pm

Make sure you have flashed the '128 version of the firmware, that feature doesn't fit in the '64 version.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Sat Dec 15, 2018 11:31 pm

MikeB wrote:
Sun Jun 24, 2018 9:27 pm
My build before was probably not correct, I didn't add the SSD1306 code tp er9x so I'm not familiar with the compile settings needed and I think I missed a couple.
Try this build.
I don't know whether the LCD on this board is parallel or serial, I've guessed at serial.

Mike
er9x_128_ssd1306.zip
This version

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Sun Dec 16, 2018 11:14 am

The automatic switch selection only operate if you are editing a value having pressed MENU to get the highlight flashing on the item. This is to prevent accidentally changing a setting if there is only one item on the line.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Sun Dec 16, 2018 3:47 pm

Aaaa) thanks)

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Sun Dec 16, 2018 3:53 pm

I have a patch to the source file er9x.cpp. I've passed this to someone else who is also trying to use a AREF of 3.3V.
Are you able to compile from the sources? As you are using a non-standard configuration (serial LCD), it would be useful if you can.
It would also mean you could apply this patch and test it.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

User avatar
jhsa
Posts: 18887
Joined: Tue Dec 27, 2011 5:13 pm
Country: Germany

Re: Coollvse OLED issue

Post by jhsa » Sun Dec 16, 2018 5:27 pm

I remember that I have some old 9x boards that people sent me in exchange for working ones that I have repaired. The ones I have were really damaged but I got most working. Not sure I would trust them to a radio, but they should be good for testing. They all have the original m64 chip. I guess I could replace one with an m128..
But I would have to learn to compile. Actually I have been wanting to learn this since a long time.
Mike, if there is a guide to compile Er9x and Ersky9x, I would gladly take that workload from you. Ialso use Linux, so I could probably also compile eepe and eepskye.
That would leave you more time for some more cool features in Ersky9x.. :mrgreen:
I am joking on this last part of course :) ;)

João
My er9x/Ersky9x/eepskye Video Tutorials
https://www.youtube.com/playlist?list=PL5uJhoD7sAKidZmkhMpYpp_qcuIqJXhb9

Donate to Er9x/Ersky9x:
https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=YHX43JR3J7XGW

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Sun Dec 16, 2018 9:08 pm

MikeB wrote:
Sun Dec 16, 2018 3:53 pm
I have a patch to the source file er9x.cpp. I've passed this to someone else who is also trying to use a AREF of 3.3V.
Are you able to compile from the sources? As you are using a non-standard configuration (serial LCD), it would be useful if you can.
It would also mean you could apply this patch and test it.

Mike
I can not compile((. Only program ready hex. file

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Mon Dec 17, 2018 4:48 pm

Here is a build trying to auto-detect if a 3.3V reference is connected to the AREF input.

Mike
er9x_128_ssd1306_aref.zip
(92.28 KiB) Downloaded 17 times
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Mon Dec 17, 2018 5:08 pm

Thank you, I will try tomorrow!

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Tue Dec 18, 2018 10:12 am

with the output of Aref, it still goes 5 volts, if 3.3 volts is connected to it, the voltmeter shows 4.7 on it.

And there is a problem with the display, offset.
Attachments
IMG_20181218_124639.jpg

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Tue Dec 18, 2018 1:08 pm

I'll check the code changes, I think I can see the AREF problem.
Before I build another version, please go to the "DIAGANA" screen. At the bottom right,under the BG value is another value (bottom line) what is this value (with 3.3V on AREF at power on) please?

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Tue Dec 18, 2018 1:26 pm

;)
Attachments
0-02-04-daa2d3dd55b4452365a0d29fc2fd9b4b142101a062f81650a829c546bf0144eb_a295f0b0.jpg

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Tue Dec 18, 2018 2:33 pm

Try this one, it might even sort the display.

Mike
er9x_128_ssd1306_aref.zip
(92.31 KiB) Downloaded 19 times
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!

BlackShooter
Posts: 19
Joined: Tue Dec 11, 2018 5:37 pm
Country: -

Re: Coollvse OLED issue

Post by BlackShooter » Tue Dec 18, 2018 3:30 pm

Thank you very much! That works great! You did a great job!

The question is small, this firmware will work with the multiprotocol module 4 In 1 irangex?

User avatar
MikeB
9x Developer
Posts: 16546
Joined: Tue Dec 27, 2011 1:24 pm
Country: -
Location: Poole, Dorset, UK

Re: Coollvse OLED issue

Post by MikeB » Tue Dec 18, 2018 4:47 pm

Should work OK, it is the standard firmware, just has the changes I did for you.

Mike
erskyTx/er9x developer
The difficult we do immediately,
The impossible takes a little longer!


Post Reply

Return to “er9x”