How to use a 256x64 OLED Display with STM32 via SPI - stm32

I'm working on a proyect with a display with a resolution of 256x64 SPI interface, but i can't find any information about it.
Has anyone worked on this type of display?
This is the display that I'm working on https://www.mouser.cl/ProductDetail/Newhaven-Display/NHD-2.8-25664UCB2?qs=EQmeiuRlVUTjbx5MVlv5%2Fw%3D%3D
I've found the µGUI library, but I'm really new in this kind of proyect, so i don't understand the documentation about it.

Related

DIY Bluetooth joystick adapter (8bitdo) adapter

I want to know is there a way we can program a Bluetooth dongle (NRF dongle, esp32 or even raspberry pi) to work as a Bluetooth adapter for PS, Xbox or Nintendo controllers. I found one product called 8bitdo. Very interesting product, it can connect between different controllers and platforms. Its like an universal adapter. I want to know is there any open source code available for this project. I'm new to embedded engineering. So, excuse me if I sound silly. But I'm curious about this project. If someone can tell me where to start, or give me some idea on how to do it, it will be helpful. Thank you.
Take a look here for Dualshock 4 (PS4) Controllers. Here's an already existing project using an ESP32 for a Dualshock3 (PS3) Controller.
But please use google next time, this took me only 1 minute to find.

STM32 with LCD 2004 + I2C, can't communicate

I am using a STM32F030F4P6 MCU and a LCD 2004 with PCF8574T I2C display driver. I have tried the library from this tutorial: https://controllerstech.com/interface-lcd-16x2-with-stm32-without-i2c/. I have found a datasheet for the PCF8574T device, but there are no commands specified in there. I am quite new in the field, but I already communicated with other devices over I2C and SPI and got them to work. Can somebody tell me what I am doing wrong, or at least show me where to get a datasheet with commands for the device? I am sorry in advance if this is a noob question.
As already mentioned, PCF8574T - is an i2c expander. So you need to write a driver which manipulates data pins on PCF8574T in way described in tutorial you found.
Check the arduino code for this type of LCD. It may save your time/ https://github.com/fdebrabander/Arduino-LiquidCrystal-I2C-library
If you have an Arduino board, you can test your LCD according this tutorial https://create.arduino.cc/projecthub/Arnov_Sharma_makes/lcd-i2c-tutorial-664e5a
Nice to know that your device still alive before debug the code.

Backup or read settings of a nucleo board stm32

I was wondering if it is possible to back up or read the settings of a nucleo board stm32. It is set up as a P-NUCLEO-LRWAN1 Nucleo pack. Which uses LoRaWAN to send data to a gateway and it works perfectly. I was now wondering if I could change the configuration (like lora settings, data format, etc).
I already tried using stm32 st-link utility, and Keil IDE. But they only flash or erase the board. I don't know how to read it.
I don't have any background on this so, details would be great. Apologies if I used the wrong words to describe things. Thanks!
You can read memory by "st-link utility" software (if you have st-link, of course)
Under "icon menu" you have two text fields: Address and size. Just set correct address and window below will display necessary memory region.
To save data just Select menu File->Save file...
You need to save it into the FLASH memory. FLASH memory can be erased and programed runtime. Read your micro Reference Manual where the procedure of erasing and writing the FLASH page is described in details.

Connecting a Raspberry Pi-3 via T-Mobile GSM SIM with SIM800 Board and SAKIS3G

I want to preface this by saying I am learning Raspberry Pi. This is my first real hands on experience. A project I am working on requires our PI-3 to be connected to the internet via a SIM.
We are using the SIM800 Board (https://www.modmypi.com/raspberry-pi/communication-1068/raspberry-pi-sim800-gsm-breakout-board) and a T-Mobile SIM. Please note that the SIM is already activated.
I followed along with this tutorial and used SAKIS3G: https://www.modmypi.com/blog/how-to-connect-your-raspberry-pi-to-a-3g-network. Everything works until the final selection "custom TTY..."
I receive the following error box: "Device did not report GSM capabilities. You can skip this by adding --noprobe command line switch." I have searched high and low for solutions, but there is very limited information. Does anyone here have experience with errors such as this and can point me in the right direction?
I also added the --noprobe suggestion, but it still printed the same error.
I found a work around, hopefully this is useful for someone. Sakis3G seems to be more focused around other SIM card models rather than T-Mobile. I found a really good guide that allows for easy connection (https://www.rhydolabz.com/wiki/?p=16325).
Follow the link's steps and you should be good. The only flaw with this currently is that it requires manual connection every time the pi boots, but this could probably be fixed by someone who knows R-Pi better than me!

How to store config data to stm32f103C8t6 flash?

I would like to store my configuration data to flash so it stays permanent after reboot.I am using CooCox CoIDE for development but unable to find any example on how to do it?
Use STM32 EEPROM emulation driver to use few pages of your flash as an EEPROM. More details can be found in any of their application notes/datasheets. You may find the driver here.