SSD1306 OLED dipslay on olimexino STM32 #789
Replies: 31 comments
-
Posted at 2014-06-07 by DrAzzy It should work - the control is just I2C. Make sure you have the board correctly set for I2C, if the interface board supports more than just I2C. Note that if the board supports interface modes other than just I2C, it doesn't have the pullups installed, so you'll need to include the 10k pullups on SDA and SCL. That said, I bought one, and couldn't for the life of me make it work. The ones with the I2C-only breakout boards, like the one shown in the picture on the module page, I think, will work without complaint. The one I got, however, had tons of pins on the back, to allow for all interface modes supported by the chip, and I was never able to make it work - couldn't get it to respond in any way, so I don't know if I was doing something wrong, or my screen was just DoA. I lost interest in the problem when I got one of the 3" 128x64 displays with the Digole controller and handed the SSD1306 screen off to a friend. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-07 by bobricius I am not sure if any graphic library not missing in this lower flash cpu. is possible fit graphic and waveform library to this board type? I have not experice with compiling that large project. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-07 by DrAzzy Why do you suspect a graphics library is missing? As far as I know, the the Olimexino should have the graphics library (reference doesn't say otherwise) What's happening when you try to use it? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-07 by bobricius When I send to board :
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-07 by DrAzzy Wow, well, yeah... Looks like it doesn't have the Graphics library. And dang, the Olimex only has 128k of flash/20k ram? I'm not surprised he wasn't able to cram the graphics library into that. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-07 by bobricius I admit to, but I do not have OLIMEXINO but my usb stick clone of this board. Looks to be quite unusable toy :( |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by @gfwilliams @peter That looks like a really neat little board! I'm afraid it's been quite difficult to keep supporting the Olimexino - while the RAM is enough for doing simple things, the lack of flash makes it hard to cram everything that's needed in (especially as a lot more memory gets used up with trying to be more JS compatible now). Having said that, you could compile your own version of Espruino. The filesystem support takes up quite a lot of flash, and as you don't have an SD card you could remove that and could then add the graphics library instead. It's as simple as changing Of course it'd be cool if you (or the board's designers) could contribute the relevant stuff (Makefile changes, and a boards/FOO.py file) to add 'proper' support with pins named in the correct way. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by @gfwilliams Just to say, wow - I didn't realise Espruino came preinstalled. It's such a shame the designer didn't spend a day just tweaking the build to make it a bit better suited to the board... There's actually quite a bit that could be done to improve Espruino on this kind of board too (there are a lot of issues on GitHub related to it) but it's just unfortunate that they choose just to use Espruino as-is rather than actively contributing to help make it better for everyone. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by bobricius I only have 6 pieces STM32F103RBT6. The next version will use more powerful processor. I am looking for a way to begin in arm because I wanted to make a board that would be compatible with maple and espruino = olimexino core . I'm a complete beginner in programing Arm. I still did not get the blinking led:) Espruino the largest support and multiply the examples I've seen . I'm obsessed with Build smallest development board but arm for me have awful lot of pins. It is a pity the espruino is so very hardware demanding, I like would like the option to use stm32f072cb, but it probably will not be possible: (, or any cpu in LQFP 48, or with USB host. but I understand, it is very difficult to maintain many hardware revisions alive. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by @gfwilliams So are you the designer of that board, and also bobricius on tindie/GitHub? stm32f072cb looks like a really interesting chip (especially the crystal-less USB). I don't see why Espruino wouldn't work on it, although in 128kB some functionality would have to be removed. If an external eeprom/flash could be added, the saved code could go into that instead, and it'd free up another 20kB of program memory for Espruino. Having said that there are a lot of ways that memory usage could be reduced too. It just needs someone to spend some time and find the main culprits and fix them. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by bobricius Yes, I am Bobricius. Thanks for help. We will test your example on github. I completely forgot I signed up as Peter. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-09 by @gfwilliams About your GitHub post - looks like the waveform class was left out of Olimexino due to lack of Flash. It probably wouldn't use up too much space to add it though. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-19 by bigplik Hi I am new here so want to say hello first ;) I was trying to use code from here http://www.espruino.com/SSD1306 but got that error when was trying to program my Maple Leaflabs R3+.
is something missing in my picocom or Espruino Web IDE? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-19 by DrAzzy Put the code on the right-hand side of the IDE, and send the code to Espruino, so the module gets sent over. That should sort it out - the IDE is responsible for fetching the module and sending it over with your code. If you press the up arrow after sending code that way, you'll see the modules.addCached() call, and the code for that module, inserted by the IDE. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-19 by bigplik this time got this error
|
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-20 by bigplik It is maple rev3+ It has arm M3 72Mhz 128kb flash mcu |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-20 by @gfwilliams So you're using the You could probably fake it by adding some code like:
But then you'd have to set the pixels in You could also build your own firmware which has the filesystem support removed, but graphics support added instead. Or... you could buy a proper Espruino board in, which has enough flash to fit everything in by default ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-20 by bigplik Yes, I'll buy proper one board ;) tnx |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-20 by jlawson If the Olimexino is required then you can improve it replacing the micro. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-24 by bigplik however HD44780 display connected by I2C1 is working, but flashing, even when I pulled up SCL and SDA by 4,7K resistors to 3.3V |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-24 by @gfwilliams flashing? Could it be that the power isn't connected properly? I can't be 100% sure but IIRC some of those displays actually need 5v, not 3.3v. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-24 by bigplik I checked it with both 3.3v and 5.0V - it looks like refresh rate is low or something like that, as I can't see stable prints on the display but they are flashing very fast, |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-24 by @gfwilliams Ahh - actually do you have Pin 3 connected? If you look at the HD44780 page, it needs to be connected to GND. It's contrast, so if it were floating around I guess it could be causing the screen to flicker. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-24 by bigplik but I have I2C adapter for HD44780, should I connect 3 pin to GND as well? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-24 by @gfwilliams No, sorry - I got confused with someone who posted here who'd got the HD44780 working by wiring it up in parallel. Does your LCD have a small potentiometer on it for contrast? It could be it's making bad contact. |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-25 by bigplik it is working but display is doing little flash when changing values
I think it should only flash in section where the D1 value is, not all display? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-25 by @gfwilliams I don't know, I guess it might depend on the display - maybe you could post up a video of it? |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-25 by bigplik this is how it looks on maple board |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-25 by bigplik I figured out ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2015-08-26 by @gfwilliams Ahh - great! I should have spotted that ;) |
Beta Was this translation helpful? Give feedback.
-
Posted at 2014-06-06 by bobricius
Hi, I am try connect this display to my olimexino but not working, is unsupported on this board or I have something wrong?
Beta Was this translation helpful? Give feedback.
All reactions