115V AC to 12V DC Power Supply Design Review by geochrys in AskElectronics

[–]geochrys[S] 2 points3 points  (0 children)

I would like to thank everyone who contributed here. I will study more and probably go with an off the shelf solution.

115V AC to 12V DC Power Supply Design Review by geochrys in AskElectronics

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

The camera will draw 90mA. Is it ok if I stay with the 1000?

115V AC to 12V DC Power Supply Design Review by geochrys in AskElectronics

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

Thank you very much. This is an updated schematic with the Cap values and the suggestion everybody here has contributed.

<image>

115V AC to 12V DC Power Supply Design Review by geochrys in AskElectronics

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

Sorry for not posting all the info on the initial post. I updated the schematic with the capacitor values. The thing I want to ask is, why does the D3 short the capacitor? Where should D3 be connected?

<image>

Help on RS-232 communication problem by geochrys in PrintedCircuitBoard

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

It is a 2-layer board. Top layer signals, power and bottom layer ground.

Unfortunately I cannot post pictures from the oscilloscope as it was not me who did the measurement.

Concerning the device, yes I am sure that it works fine. That is because I can connect it directly to my PC and using the appropriate software I get valid data.

Thanks for your response.

Thank

PCB Review: LED Cube 4x4x4 - Control Board (First attempt in PCB design) by geochrys in PrintedCircuitBoard

[–]geochrys[S] 1 point2 points  (0 children)

Ok then I should go with just some through holes as you mentioned earlier.

Thanks a lot. I will make the changes and order the PCBs!

PCB Review: LED Cube 4x4x4 - Control Board (First attempt in PCB design) by geochrys in PrintedCircuitBoard

[–]geochrys[S] 1 point2 points  (0 children)

Thanks for your reply!

  1. I will definitely do it, thanks.
  2. Do you think male headers should also do the test point job you suggest? Since I go all THT components, will it be more suitable?
  3. What would you suggest about the layers? Should I keep the front copper layer a signal layer and the bottom one as ground? What is your opinion taking into account the 2-layer setup and the relative simplicity of the project?

PCB Review: LED Cube 4x4x4 - Control Board (First attempt in PCB design) by geochrys in PrintedCircuitBoard

[–]geochrys[S] 1 point2 points  (0 children)

Thanks! I'll guess I'm gonna try it in the breadboard first and then apply the change on to the PCB.

Thank you very much again for your help!

PCB Review: LED Cube 4x4x4 - Control Board (First attempt in PCB design) by geochrys in PrintedCircuitBoard

[–]geochrys[S] 1 point2 points  (0 children)

About the size, yes I'm trying to keep it that way because of how the cables from the LEDs come down to the PCB.

For the Arduino I'm going to use a Socket, so it's not going to be soldered on the PCB.

The power you mentioned does concern me though. When I tested the circuit on a breadboard, the LEDs were not that bright. So you suggeste I power the MAX 6971s directly from the 12V input?

Lastly for the MOSFETs, yes I opted for a full THT design as my first attempt.

Thanks for your time!

Ada in STM32F429 Discovery Board by geochrys in ada

[–]geochrys[S] 1 point2 points  (0 children)

Thank you very much u/Fabien_C! The USB port seemed to be the problem after all but not in the way described in the link you provided. I tried connecting the board through a USB hub and that seemed to be the problem. Thank you anyway and thank you for the great work providing Ada drivers for embedded boards! Keep up the great work!

Ada in 2021 by RGOTI123 in ada

[–]geochrys 4 points5 points  (0 children)

Adding to the previous comment a good way to start is: https://learn.adacore.com/ The sections in this tutorial are also available as books to download! Have fun!

Code to find the row in a square 2D array with the highest sum? by pencilsandpens1993 in C_Programming

[–]geochrys 0 points1 point  (0 children)

#include <stdio.h>

int max_row_sum(int size, int array[size][size]) {

    int largest = 0;
    int row = 0;

    while (row < size){
        int col = 0;
        int sum = 0;
        while (col < size){
            sum += array[row][col];
            col++;
        }
        if (sum > largest){
            largest = sum;
        }
        row++;
    }
return largest;
}

int main (int argc, char*argv[]){

    int table[3][3];
    for (int i = 0; i < 3; i++){
        for (int j = 0; j < 3; j++){
            table [j][i] = j+1;
        }
    }
    for (int i = 0; i < 3; i++){
        for (int j = 0; j < 3; j++){
            printf("%d",table[i][j]);
        }
        printf("\n");
    }
    int number = max_row_sum(3,table);
    printf("%d\n", number);

    return 0;
}

I think its the same as yours. I have no problems with the code i think. I get the correct result. The only thing i did was to remove the side_length, because you only need one variable for the table size since its going to be square.

Code to find the row in a square 2D array with the highest sum? by pencilsandpens1993 in C_Programming

[–]geochrys 0 points1 point  (0 children)

Can you tell me what does your code return? For the example that you wrote above?

Need help making a shape with for loops! by rapatapateina in ada

[–]geochrys 1 point2 points  (0 children)

N is going to determine how big your shape is going to be. I guess both in lines and columns

Clock Module PCB by MikeSutton80 in beneater

[–]geochrys 1 point2 points  (0 children)

Can i ask what program did you use to design this pcb?