News:

;) This forum is the property of Proton software developers

Main Menu

Show your projects !

Started by diebobo, Nov 01, 2024, 02:46 PM

Previous topic - Next topic

diebobo

In the topic about I2S microphones ( https://protoncompiler.com/index.php/topic,2293.msg18216/topicseen.html ) i was asked about what board i was using and if i could say something about the display used. I thought it would be nice to have a topic where we can show each other where we are working on. Sometimes we don't have any questions and just wanna show off a little bit ;).. I could not find such an topic, if i already exist, sorry !

So my board here is a custom board ( had some rework done so messy still !! ) measures a little below 11cm x 11cm, and my main thing i wanted to accomplisch is easie(r) development or testing for the forseeable future in combinatin with ESP for WiFi. I usually stick a long time with my PIC of choosing, i dont use 20 different types, the biggest i prob. gonna need for a while and that's it.. So i settled on a 33CK device the dsPIC33CK256MP208. 200mhz- 100Mips orso, can run on 220 / 110 mips no problem. This board also has a little sister board for a 24FJ64GA004, that's my current go to PIC but that board is a bit less populated.

The board :

- dsPIC33CK256MP208
- OLED 256 x 64 x 16 grayscale, On Ali for +/- 15 Euro, search For OLED 256 64 and you find them in a few colors. It can do SPI3/4 wired, and some parralel coms. I settles on 4 Wire SPI. Currently running 15mhz clock, can do higher i believe. Uses about 2k ram bit just on / of pixel routines, or 8.2k of ram for full 16 color ( Grayscales )
- 3 UART, 2 x to USB->UART and 1 to the ESP module
- Powered at 5V with USB and 3 power regs 3V3. to test with and different protection diodes to experiment with protection for 5v lines.
- Power stages are selectable, as are the in and output Capactior selection. Al to test power surges ( mainly cause of ESP ) and responses.
- APA102 2 x 2mm led ( 8x on top ). These are SPI leds, with power enable/disabled through mosfet to test minimising stadby current when off
- SK6812 Side Emitting LED ( 8x on bottom ). With power enable/disable through mosfet to test minimising stadby current when off.
- TXB0104DG4 Level shifter, never used so testing since Sk6812 and APA102 are technily out of spec with 3V3 low/high signals for 1st LED.
- Rotary encoder en 2 general Purpose buttons.
- All of above are uniquely connected so no sharing or choosing of IO pins, except the SPI/I2C which can choose bus 1/2.
- 5V PWR, 3V3 ESP PWR, 3v3 Temperature as AIx on PIC
- 5V PWR, 3V3 ESP PWR, 3v3 Temperature, 3V3 PWR as AIx on ADS1115

2 x I2C Bus, selectable with Solderpad, including :

- HTU31D, Temp / Moisture Sensor
- DS3231, RTC
- VEML6040, RGBW Sensor with its own SK6812 RGB LED to shine.
- VL53L7CH, Time Of Flight Sensor.
- M24C32, EEPROM
- INA219AIDR, Power IC. Measuring mA, mW, 5V PWR Etc.
- ADS1115, ADC 4 Channel

2 x SPI Bus, selectable with Solderpad, including :

- W25Q64JVSSIM, 64 mBit Flash
- 23AA02M, 2mbit SRAM
- ICM-42605, Gyro
- SPH0645LM4H-B, I2S Microphone
- OLED Screen

- External pwr 5.5 x 2.1 Jack, not used other then bypas to board connector.
- Power Indicators LEDs

WiFi is more and more important, made some projects with WiFi but my testing was always with a separated module and Dupoint cables, time to incorparate :)... So now it takes a ESP8266 or ESP32 module and communicates with the RX and TX on the ESP module.. The onboard USB-> UART on thoose modules also communicatie with thoose port during firmware downloading but i check for thoose signals so i do not interrupt that possibility. So you can Download/Upload firmware to the ESP through COMx but u can't use that COMx to output data to PC for example. Also doubled headers to be able to probe with Logic Analyzer and / or scope. Or just Dupont cable it.

Every IO that has no fixed functions is availble on the board connection via Solderable, and a double header. I always find it annoying if u need to interface an external board but only have 1 connection to it, so no method to easy hook up a Scope or Logic analyzer. ALso every IO is protected with R 330ohm ( how good / bad that is, is to be seen :) ) and the IO which are available at header have a LED, switched by transistor so doesn't put load on IO with high speed signals.

The last functin it has, is that both USB - > Uart interfaces, ESP module, ICSP and reset button can reset the PIC. This way bootloader function can be used with all of thoose interfaces. Using the ESP to send new PIC program is really cool ! :)

That's it !.. As mentioned the board has sister board for a PIC24FJ64GA004, basicly the same with a little less SPI devices and less spare IO to break out.


IMG_20241101_145150.jpg
IMG_20241101_145055.jpg


diebobo

Follow up..

diebobo

Follow up..

diebobo

Follow up..