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

    My guess is that if i give a 5v supply across the Base to emitter junction, transistor will be damaged.
  3. 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
  4. C

    AC Power wiring to Light Bulb

    How would you connect this light bulb...
  5. 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 ?
  6. 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...
  7. 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"...
  8. C

    synchronization

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

    Dangling pointers

    I am getting output 20 even after freeing pointer dp without calling malloc #include<stdio.h> #include<stdlib.h> int main() { int *dp = malloc(sizeof(*dp)); *dp = 10; free(dp); *dp = 20; printf(" %d", *dp); }
  10. 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...
  11. C

    How tasks are broken down into smaller task's

    I have no problem, you can also take an example of your choice to explain. I am just trying to understand how to apply concept in practical situation
  12. C

    How tasks are broken down into smaller task's

    Agreed This project can be done with RTOS and without RTOS. I take the situation that we have to do this project with RTOS. Now we come back to the original question, we have to split the task for the RTOS. Can you offer any help in understanding how the tasks would be divided for this application
  13. C

    How tasks are broken down into smaller task's

    @Harald Kapp as per your advice i choose a real time system https://www.electronics-notes.com/articles/test-methods/spectrum-analyzer/realtime-spectrum-analyser.php I have broken tasks into three tasks Sampling FFT processing Display Any idea How all tasks will execute in real-time
  14. 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...
  15. 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...
  16. 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 ?
  17. 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...
  18. 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...
  19. 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...
  20. 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?
Top