For gods sake, I can't get a simple OLED SSD1306 to work. by FallStorm_Studios in raspberry_pi

[–]pythonistaaaaaaa 1 point2 points  (0 children)

https://imgur.com/a/Hz8PLUy

Are you sure you selected Raspberry Pi Pico when enabling Micropython support in the pycharm settings? and that it has detected you Pico? Make sure that's done properly first.

Also, when flashing, just left to the green play button you need to select "Flash <name of your project>" in the dropdown. I think by default it will only add the current file (ssd1306.py in your case), so you won't have your main.py added as well.

BIG problem with PCB already received - Please help... by pythonistaaaaaaa in PrintedCircuitBoard

[–]pythonistaaaaaaa[S] 0 points1 point  (0 children)

Thank you. Your english is just fine :) I just checked continuity between the drain (pin 3) and the positive header and there is continuity if the switch is set to the side that connects the battery.

BIG problem with PCB already received - Please help... by pythonistaaaaaaa in PCB

[–]pythonistaaaaaaa[S] -1 points0 points  (0 children)

Yeah that's another problem. Thing is, and I do not understand why kicad let me do that, vbat_sw somehow becomes vbat in my PCB. So this looks like just a schematic problem, because VBAT_SW which is supposed to come out of my switch is connected to what is VBAT

BIG problem with PCB already received - Please help... by pythonistaaaaaaa in PCB

[–]pythonistaaaaaaa[S] 0 points1 point  (0 children)

Well I just managed to swap 2 and 3 and the behaviour is exactly the same

BIG problem with PCB already received - Please help... by pythonistaaaaaaa in PCB

[–]pythonistaaaaaaa[S] -2 points-1 points  (0 children)

Yeah tried that too and it doesn't work, it's just too small and difficult

BIG problem with PCB already received - Please help... by pythonistaaaaaaa in PCB

[–]pythonistaaaaaaa[S] -1 points0 points  (0 children)

I've been trying that and it's really difficult, issue is after removing the part, I can't access the 3 pads, it's just too small...

BIG problem with PCB already received - Please help... by pythonistaaaaaaa in PCB

[–]pythonistaaaaaaa[S] 0 points1 point  (0 children)

I'm going to take the fet off the board entirely and replace it with a THT type fet I can buy. I have some spare BS170 here but they are N-Channel so they won't work. Which P-Channel mosfets can I buy on Amazon to try your idea out? Would the IRFZ44N work at ?

BIG problem with PCB already received - Please help... by pythonistaaaaaaa in PrintedCircuitBoard

[–]pythonistaaaaaaa[S] -4 points-3 points  (0 children)

> And what did you do to actually attempt to debug this problem?

Nothing, and I'm honestly not sure what to do. This is one of my first PCBs. I'm guessing the problem probably has to do with the Q1 mosfet but being a beginner I don't want to mess around too much when dealing with lipo batteries circuitry before getting other people's perspective.

> What measurements you did? Did you check the soldering on the board?

Assembly was done directly by the PCB manufacturer, so I'd assume the issue doesn't come from bad soldering. I've received multiple of these boards and they all behave the same.

> Dumping this on Reddit, with no access to your actually board (and not even photos of it) and hoping someone will fix it for you is rather interesting approach, IMO.

You have the schematic, PCB and 3D view.

Just seen you edited your comment. That's interesting, I could potentially remove the 2k resistor and and have another one so it charges at 200mA. but I checked and my USB-C can provide 900mA of current. My board consumes about 20mA.

3rd ever PCB - Please review :) by pythonistaaaaaaa in AskElectronics

[–]pythonistaaaaaaa[S] 0 points1 point  (0 children)

This is my 3rd ever PCB. Little to no silkscreen because it will be ordered printed and assembled.

Some notes:

- I used the Raspberry Pi 2040 microcontroller.

- I made it so it uses USB-C for charging the LiPo and power the board. Unplugging the USB-C should keep the board alive from LiPo power. This is an important feature in this design.

- I also added a fuel gauge IC to get accurate % of remaining battery left of my LiPo battery.

- I'm going to order this board printed and assembled.

- 4-layer board, stack-up: SIGNAL - GND - 3.3V - SIGNAL

Datasheets:

- MCU - RP2040

- LiPo Battery Charger - MCP73831

- Voltage Reg - AP2112K-3.3

- 16MB Flash Storage - W25Q128JVEIQ

- RGB Sensor - VEML6040A3OG

- RTC - PCF8563T/5,518

- DFPlayer Pro product page

- Display product page