Skip to main content

Posts

Showing posts with the label arduino programing

Interrupts

Interrupts Interrupts are the signal to the microcontroller or processor to mark the event that requires immediate attention. An interrupt is “requesting" the processor to stop to perform the current program and to “make time” to execute a special code(interrupt code). Whenever any device needs its interrupt service, the device notifies the microcontroller by sending it an interrupt signal. Upon receiving an interrupt signal, the microcontroller program_counter will go to the Interrupt vector table in that it will fetch the ISR address (interrupt service routine) and it will execute the ISR program and it will return to the main program where it stopped and it will start executing main program . Interrupts An interrupt is an exception, a change of the normal progression, or interruption  in the normal flow of program execution.   An interrupt is essentially a hardware generated function call. Interrupts are caused by both internal and external...

How to program arduino for beginner's 2

How to program arduino for beginner's part 2 Analog  signal read: Today am going to write the program to read  analog signal serially using analog inputs . first we have to connect the any one analog sensor or potentiometer to the one of analog input A0 to A5. In this program am going to connect the potentiometer to A0 pin. program: void setup() { serial.begin(9600); } void loop() { int sensorValue = analodRead(A0); Serial.println(sensorValue); delay(1); }   

How to program arduino for beginner's

How to program arduino for beginner's Hi,   today am going explain about arduino controller and its programming . Arduino is the one of the most popular micro controller board in the world.It is the open source electronic prototyping platform and it is easy use hardware and software.   In arduino different type of controller are there like  arduino UNO arduino Mega arduino Leonardo arduino due arduino yum arduino zero  arduino robot arduino micro arduino mini arduino nano  etc. This controller are programmed by using Arduino IDE or sketch it is the free software we can download it from arduino official web site  arduino.com . Hear am going to show you how to initialize the arduino taking the example of arduino UNO  To program the arduino UNO we have to download the arduino sketch  after download install that  it will open like this  nex...