Skip to main content

Posts

LED on Switch using Arduino Nano

A lot of things as newbie to do with Arduino. Today,  we will do a simple circuit using Arduino. Let try.. Code : // set pin numbers: const int buttonPin = 3;     // the number of the push button pin const int ledPin =  11;      // the number of the LED pin // variables will change: int buttonState = 0;         // variable for reading the push button status void setup() {   // initialize the LED pin as an output:   pinMode(ledPin, OUTPUT);   // initialize the pushbutton pin as an input:   pinMode(buttonPin, INPUT); } void loop(){   // read the state of the pushbutton value:   buttonState = digitalRead(buttonPin);   // check if the pushbutton is pressed.   // if it is, the buttonState is HIGH:   if (buttonState == HIGH) {     // turn LED on:     digitalWrite(ledPin,...

LED Blinking With Arduino Nano

Newbie project with Arduino.. Code: #define OUR_LED 12 // the setup function runs once when you press reset or power the board void setup() {   // initialize digital pin LED_BUILTIN as an output.   pinMode(OUR_LED, OUTPUT); } // the loop function runs over and over again forever void loop() {   digitalWrite(OUR_LED, HIGH);    // turn the LED on (HIGH is the voltage level)   delay(1000);                        // wait for a second   digitalWrite(OUR_LED, LOW);     // turn the LED off by making the voltage LOW   delay(1000);                        // wait for a second }

Explanation Of CAN Bus

Modern car today like an a small computer where everything is connected each other in the same network.  It have a few network normally used in car like a Controller area network(CAN), Local Interconnect network(LIN), Media Oriented System Transport(MOST) and FlexRay. The most used is CAN Bus . CAN BUS allow ECU communicate each other without host computer. Before, in Old car, the number of ECU is less because low demand on the technology. Today, with current technology, a modern Car have a more than 70 ECU. How it looks like if everything is connected using old way? Hard wire? That the reason in mid-1980, Bosch design CAN Bus to reduce costs and complexity inside the vehicle. CONTROLLER AREA NETWORK(CAN)        CAN is a serial communication bus where allow ECU in car communicate each other robustly with maximum bit rate of 1Mb/s for high speed. It is a mist suitable for systems where a small amount information needs to be exchange. Instead of automo...

Understanding of Embedded System Concept

An embedded system is a controller with a dedicated function within a larger mechanical or electrical system, often with real-time computing constraints. It is embedded as part of a complete device often including hardware and mechanical parts. Embedded systems control many devices in common use today according to Wikipedia . I am not going to share about definition and etc.. What i am going to share is how it work??😃😃 The three main component is Processor, RAM and Memory..Why? and What is the roles of this component? Imagine... 👷👉 Processor 📁👉 Table as RAM 📕👉 Cabinet as Memory You(Processor) processing data at your table(RAM). Then if you need something, get it from Cabinet(Memory) and put into the table and process it. As simple as That!😁 In automotive industry nowadays, for instance, most of the car using radio which is not a Norma radio but intelligent radio which is connected to each ECU in the car. This radio is most like a mini computer where it ...