Search results

  1. C

    Ground plane PCB

    Hi, I don't know how to read PCB's layout. As you see an image, I am not able to understand which is a conductor and which is a non-conductor. I don't know which is ground plane
  2. C

    Transistor as a switch

    I am trying to understand how NPN transistor BC547 work as switch. Transistor can be three state Cut off Threshold Saturation I'm trying to understand when the BC457 turns on or off
  3. C

    AC Power wiring to Light Bulb

    I am trying to understand how a power is connected to a light bulb. There are 2 wires coming out of the energy meter output, line and neutral. I don't understand how they are connected to the bulb. how to know which end of the light will connect to line or neutral ?
  4. C

    How do you change structure

    When I want to change int in function I pass pointer to int so int will change #include<stdio.h> void foo ( int *ptr ) { *ptr = 10; } int main () { int a = 1; foo (&a); printf("%d", a); return 0; } I am trying to understand how we change the structure in function int...
  5. C

    What happens inside if statement in code

    I am stuck in c structure program. I don't have idea What happens inside if statement in code #include<stdio.h> #include<stdlib.h> struct s { int x; int y; }; int main () { struct s *p = NULL; p = malloc(sizeof(*p)); if ( p != NULL ) { printf("%d\n"...
  6. C

    synchronization

    I am trying to understand what is thread synchronization...
  7. C

    Dangling pointers

    I don't understand what is Dangling pointers in c language we can allocate dyamic memory for variables and we can also free it pointer can point to memory location of another variable...
  8. C

    How tasks are broken down into smaller task's

    A real-Time operating system may be single or multitasking. What I'm trying to find out is how tasks are broken down into smaller tasks for real-time operating systems. I see that tasks execute on a priority basis. A high-priority task always runs first. I see some tasks have hard timing...
  9. C

    How does multidimensional array store variables

    I've seen tutorials and youtube videos but I can't figure out how does multidimensional array stores variables 1 D array When I write the below the line in code it means the compiler allocate five memory location and store five integer variable int [5] = { 1, 2,3, 4,5}; 2 D array When...
  10. C

    Shared Resources

    Can anyone explain what is shared resource in following link https://www.isy.liu.se/edu/kurs/TSEA81/pdf/lecture_shared.pdf . A shared resource can also be hardware, e.g. a display unit, a timer, or an A/D converter. What is meant by above given example ?
  11. C

    Preemptive Priority scheduling

    In preemptive scheduling there is timer running whose jobs is to switch tasks according to priority. scheduler decide which task will run and for how much time it will run on the CPU. What we should know before to design Preemptive System ? I think We should know how much time each tasks...
  12. C

    smart watering controller

    I don't understand assembly language. I have found assembly code. I'm looking someone to help me to understand assembly code. Code for the smart watering controller. The comment in the code shows that the relay, real time clock are used in the controller. I have a doubt that LCD must have been...
  13. C

    Suitable library for Capacitor

    I am practicing with Eagle software. I need 1000uf 25 volt electrolytic capacitor in my circuit. I don't have any idea how to select correct capacitor in eagle library. When I search capacitor in eagle library there are so many parts but I don't understand which one is correct. How do you know...
  14. C

    Which is better I2C or SPI

    I have seen that many sensors work on both I2C and SPI protocols. Which protocol do you use in this case?
  15. C

    Dynamic Memory Allocation in C

    Hi guys, I looked on the internet that dynamic memory allocation is not suitable for small Microcontroller But I need to understand the information given in this page https://www.geeksforgeeks.org/dynamic-memory-allocation-in-c-using-malloc-calloc-free-and-realloc/ I am trying to understand...
  16. C

    Can integer variable store char value?

    integer variable store integer value like 10, 100, -6 Can integer variable store char value? my program shows int type variable can be store char value. #include<stdio.h> void main () { int Code = 'A'; printf("Code %d \n", Code); printf("Code %c \n", Code); } if I write int...
  17. C

    IoT web application

    I am looking to advice on IoT web application. I don't have much knowledge on web application I have searched about the web application on the google so I got so many opinion on web application 1. Log in page : only valid user should use dashboard 2. Dashboard : There may be different buttons...
  18. C

    automatic storage classes

    Hi all I am trying to understand the proper use of storage class in c programming we can specify a storage class while declaring a variable Storage_class Data_type Variable_name ; For a example, #include<stdio.h> void loop (void) { int count; for (count = 0; count <= 10; count++)...
  19. C

    Looking help to export Eagle PCB to gerber files

    I am inexperienced in PCB design so I tried to make something simple. I have eagle 9.3 In the circuit there the two connector one for input and other for output connection, one led and current limiting resistor I think my design is ready to convert into gerber files but I am not sure...
  20. C

    DRC Error in PCB Design

    I am using Eagle cad to design PCB. I am trying to convert schematic into PCB Layout schematic When I check DRC I get three error's I don't understand why I get the error someone, please tell me how to remove all three errors
Top