Princejude's Posts
Nairaland Forum › Princejude's Profile › Princejude's Posts
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 (of 20 pages)
lordraiden:Am not using whatsapp. I have uninstalled it from my phone. I don't know why. |
lordraiden:Check this thread https://www.nairaland.com/1214892/microcontrollers |
lordraiden:Which of the microcontroller and which language ? |
pricelessmr:Pricelessmr I still remember. I am still waiting for you to send your design so that I will start the pcb fabrication. |
acorntree:Prototyping is better done with vero board or local etching because the cost of one board for standard PCB may not be less than the cost of 3 boards. |
Project 4: Using a switch as digital input Our goal in this project is to create a button that turns on an LED for half a second when pressed. The Algorithm Here is our algorithm: 1. Test to see if the button has been pressed. 2. If the button has been pressed, then turn on the LED for half a second, and then turn it off. 3. If the button has not been pressed, then do nothing. 4. Repeat indefinitely. The Hardware Here’s what you’ll need to create this project: • One push button • One LED • One 560 W resistor • One 10 kW resistor • One 100 nF capacitor • Various connecting wires • One breadboard • Arduino and USB cable The Schematic First we create the circuit on the breadboard with the schematic shown in Figure 4. Notice how the 10 kW resistor is connected between GND and digital pin seven. We call this a pull-down resistor, because it pulls the voltage at the digital pin almost to zero. Furthermore, by adding a 100 nF capacitor across the 10 kW resistor, we create a simple debounce circuit to help filter out the switch bounce. When the button is pressed, the digital pin goes immediately to high. But when the button is released, digital pin seven is pulled down to GND via the 10 kW resistor, and the 100nF capacitor creates a small delay. This effectively covers up the bouncing pulses by slowing down the voltage falling to GND, thereby eliminating most of the false readings due to floating voltage and erratic button behavior. The Sketch For the sketch, enter and upload the code below:
|
Project 3: PWM Example Now let’s try this with our circuit from Project 2. Enter the following sketch into the IDE and upload it to the Arduino:
The LED on digital pin 3 will exhibit a “breathing effect” as the duty cycle increases and decreases. In other words, the LED will turn on, increasing in brightness until fully lit, and then reverse. Experiment with the sketch and circuit. For example, make five LEDs breathe at once, or have them do so sequentially. |
Pulse-Width Modulation(PWM) – Varying led Brightness Rather than just turning LEDs on and off rapidly using digitalWrite(), we can define the level of brightness of an LED by adjusting the amount of time between each LED’s on and off states using pulse-width modulation (PWM). PWM can be used to create the illusion of an LED being on at different levels of brightness by turning the LED on and off rapidly, at around 500 cycles per second. The brightness we perceive is determined by the amount of time the digital output pin is on versus the amount of time it is off—that is, every time the LED is lit or unlit. Because our eyes can’t see flickers faster than 50 cycles per second, the LED appears to have a constant brightness. The greater the duty cycle (the longer the pin is on compared to off in each cycle), the greater the perceived brightness of the LED connected to the digital output pin. The greater the duty cycle (the longer the pin is on compared to off in each cycle), the greater the perceived brightness of the LED connected to the digital output pin. Figure 3 shows various PWM duty cycles. The filled-in gray areas represent the amount of time that the light is on. As you can see, the amount of time per cycle that the light is on increases with the duty cycle. Only digital pins 3, 5, 6, 9, 10, and 11 on a regular Arduino board can be used for PWM. They are marked on the Arduino board with a tilde (~), To create a PWM signal, we use the function analogWrite(x, y), where x is the digital pin and y is a value for the duty cycle, between 0 and 255, where 0 indicates a 0 percent duty cycle and 255 indicates 100 percent duty cycle. To see figures click here because no time to upload http://www.jutronix.com/tutorials/arduino-tutorial/ |
Back to tutorial... Project 2: Using for loops When designing a sketch, you’ll often repeat the same function. You could simply copy and paste the function to duplicate it in a sketch, but that’s inefficient and a waste of your Arduino’s program memory.Instead, you can use for loops. The benefit of using a for loop is that you can determine how many times the code inside the loop will repeat.To see how a for loop works, enter the following code as a new sketch:
The for loop will repeat the code within the curly brackets beneath it as long as some condition is true. Here, we have used two new integer variables, a and b, which starts with the value 2. Every time the code is executed, the a++ will add 1 to the value of a. The loop will continue in this fashion while the value of a is less than 7 (the condition). Once it is equal to or greater than 7, the Arduino moves on and continues with whatever code comes after the for loop. The number of loops that a for loop executes can also be set by counting down from a higher number to a lower number. To demonstrate this, add the following loop to the Project 2 sketch after the second for loop:
|
Note: The above calculation is based on my ready built PIC programmer which its size is 46mm x 81mm. The factors used in calculation are the board's size, weight and dollar to naira rate |
israelpalatoe:Double sided-PCB Board size = 46mm x 81mm 5 pieces = N14250 @ N2850 for one 10 pieces = N15390 @ N1540 for one 20 pieces = N17670 @ N890 for one 50 pieces = N25270 @ N500 for one 100 pieces = N35910 @ N360 for one The choice is yours. |
LordRahl001:Yo can get a starter kit of N7000 or advance kit from N12000 to N20000. The price depends on its content. Am not in Lagos but if you want me to send it to you, you can add N2000 shipment fee |
israelpalatoe:We accept Altium gerber files. The cost depends on the size and quantity. The higher the quantity the lower the prize. |
AlPacino3:We deliver within 2-3 weeks. Minimum acceptable order is 5 pcbs but if the quantity is high the cost will be lower. Just try us you won't regret it. |
Leopantro:The Arduino board is N5000. You can increase the number of LEDs |
9free:Oh! ok do you have the board? |
acorntree:Nice thread....but how many language are you using? Am seeing flowcode, picbasic and assembly. Is it not better to use one programming language here to avoid confusing the learners. |
AlPacino3:We can design and fabricate professional PCBs for you such as the one below: https://i62.tinypic.com/2ur2ner.jpg Check us at: www.jutronix.com |
birdman:You can buy all your components here and we will send it to you within 48hrs : http://www.jutronix.com/shop/ Free tutorials using PIC Microcontrollers: https://www.nairaland.com/2043585/free-online-embedded-system-design or http://www.jutronix.com/tutorials/pic-tutorial/ Free tutorials using Arduino: https://www.nairaland.com/2086628/free-arduino-tutorials or http://www.jutronix.com/tutorials/arduino-tutorial/ |
Double post... thread closed... follow the thread here:https://www.nairaland.com/2086628/free-arduino-tutorials |
AAinEqGuinea:What pi ? |
What is arduino ? Arduino is an open-source electronics prototyping platform based on flexible, easy-to use hardware and software. It’s intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights, motors, and other actuators. The microcontroller on the board is programmed using the Arduino programming language and the Arduino Development Environment. Arduino projects can be stand-alone, or they can communicate with software running on a computer. There are plenty of other microcontrollers available. So you may be asking, why choose the Arduino? Arduino really simplifies the process of building projects on a microcontroller making it a great platform for amateurs. You can easily start working on one with no previous electronics experience. In addition to Arduino’s simplicity, it is also inexpensive, cross-platform and open source. The Arduino is based on Atmel’s ATMEGA328 and ATMEGA168 microcontrollers. Arduino Software Software programs, called sketches, are created on a computer using the Arduino integrated development environment (IDE). The IDE enables you to write and edit code and convert this code into instructions that Arduino hardware understands. The IDE also transfers those instructions to the Arduino board (a process called uploading). [img] http://i60.tinypic.com/2ioyt3.png [/img] Arduino Hardware The Arduino board is where the code you write is executed. The board can only control and respond to electricity, so specific components are attached to it to enable it to interact with the real world. These components can be sensors, which convert some aspect of the physical world to electricity so that the board can sense it, or actuators, which get electricity from the board and convert it into something that changes the world. Examples of sensors include switches, accelerometers, and ultrasound distance sensors. Actuators are things like lights and LEDs, speakers, motors, and displays. There have been a number of Arduino versions, all based on an 8-bit Atmel AVR reduced instruction set computer (RISC) microprocessor. The first board was based on the ATmega8 running at a clock speed of 16 MHz with 8 KB flash memory; later boards such as the Arduino NG plus and the Diecimila (Italian for 10,000) used the ATmega168 with 16 KB flash memory. The most recent Arduino versions, Duemilanove and Uno, use the ATmega328 with 32 KB flash memory and can switch automatically between USB and DC power. For projects requiring more I/O and memory, there’s the Arduino Mega1280 with 128 KB memory or the more recent Arduino Mega2560 with 256 KB memory. The boards have 14 digital pins, each of which can be set as either an input or output, and six analog inputs. In addition, six of the digital pins can be programmed to provide a pulse width modulation (PWM) analog output. A variety of communication protocols are available, including serial, serial peripheral interface bus (SPI), and I2C/ TWI. Included on each board as standard features are an in-circuit serial programming (ICSP) header and reset button. Project 1: Creating a blinking LED wave Let’s put some LEDs and resistors to work. In this project, we’ll use five LEDs to create a kind of wavelike light pattern. The Hardware Here’s what you’ll need to create this project: >> Five LEDs >> Five 560W resistors >> One breadboard >> Various connecting wires >> Arduino and USB cable We will connect the LEDs to digital pins 2 through 6 via the 560-ohm current-limiting resistors. The Sketch Now for our sketch. Enter this code into the IDE: // Project 1 - Creating a Blinking LED Wave void setup() { pinMode(2, OUTPUT); // LED 1 control pin is set up as an output pinMode(3, OUTPUT); // same for LED 2 to LED 5 pinMode(4, OUTPUT); pinMode(5, OUTPUT); pinMode(6, OUTPUT); } void loop() { digitalWrite(2, HIGH); // Turn LED 1 on delay(500); // wait half a second digitalWrite(2, LOW); // Turn LED 1 off digitalWrite(3, HIGH); // and repeat for LED 2 to 5 delay(500); digitalWrite(3, LOW); digitalWrite(4, HIGH); delay(500); digitalWrite(4, LOW); digitalWrite(5, HIGH); delay(500); digitalWrite(5, LOW); digitalWrite(6, HIGH); delay(500); digitalWrite(6, LOW); digitalWrite(5, HIGH); delay(500); digitalWrite(5, LOW); digitalWrite(4, HIGH); delay(500); digitalWrite(4, LOW); digitalWrite(3, HIGH); delay(500); digitalWrite(3, LOW); // the loop() will now loop around and start from the top again } In void setup() the digital I/O pins are set to outputs, because we want them to send current to the LEDs on demand. We specify when to turn on each LED using the digitalWrite() function in the void loop() section of the sketch. Project 2: Repeating with for loops to be contd.... or check here: http://www.jutronix.com/tutorials/arduino-tutorial/ |
What is arduino ? Arduino is an open-source electronics prototyping platform based on flexible, easy-to use hardware and software. It’s intended for artists, designers, hobbyists, and anyone interested in creating interactive objects or environments. Arduino can sense the environment by receiving input from a variety of sensors and can affect its surroundings by controlling lights, motors, and other actuators. The microcontroller on the board is programmed using the Arduino programming language and the Arduino Development Environment. Arduino projects can be stand-alone, or they can communicate with software running on a computer. There are plenty of other microcontrollers available. So you may be asking, why choose the Arduino? Arduino really simplifies the process of building projects on a microcontroller making it a great platform for amateurs. You can easily start working on one with no previous electronics experience. In addition to Arduino’s simplicity, it is also inexpensive, cross-platform and open source. The Arduino is based on Atmel’s ATMEGA328 and ATMEGA168 microcontrollers. Arduino Software Software programs, called sketches, are created on a computer using the Arduino integrated development environment (IDE). The IDE enables you to write and edit code and convert this code into instructions that Arduino hardware understands. The IDE also transfers those instructions to the Arduino board (a process called uploading). https://i60.tinypic.com/2ioyt3.jpg Arduino Hardware The Arduino board is where the code you write is executed. The board can only control and respond to electricity, so specific components are attached to it to enable it to interact with the real world. These components can be sensors, which convert some aspect of the physical world to electricity so that the board can sense it, or actuators, which get electricity from the board and convert it into something that changes the world. Examples of sensors include switches, accelerometers, and ultrasound distance sensors. Actuators are things like lights and LEDs, speakers, motors, and displays. There have been a number of Arduino versions, all based on an 8-bit Atmel AVR reduced instruction set computer (RISC) microprocessor. The first board was based on the ATmega8 running at a clock speed of 16 MHz with 8 KB flash memory; later boards such as the Arduino NG plus and the Diecimila (Italian for 10,000) used the ATmega168 with 16 KB flash memory. The most recent Arduino versions, Duemilanove and Uno, use the ATmega328 with 32 KB flash memory and can switch automatically between USB and DC power. For projects requiring more I/O and memory, there’s the Arduino Mega1280 with 128 KB memory or the more recent Arduino Mega2560 with 256 KB memory. The boards have 14 digital pins, each of which can be set as either an input or output, and six analog inputs. In addition, six of the digital pins can be programmed to provide a pulse width modulation (PWM) analog output. A variety of communication protocols are available, including serial, serial peripheral interface bus (SPI), and I2C/ TWI. Included on each board as standard features are an in-circuit serial programming (ICSP) header and reset button. Project 1: Creating a blinking LED wave Let’s put some LEDs and resistors to work. In this project, we’ll use five LEDs to create a kind of wavelike light pattern. The Hardware Here’s what you’ll need to create this project: >> Five LEDs >> Five 560W resistors >> One breadboard >> Various connecting wires >> Arduino and USB cable We will connect the LEDs to digital pins 2 through 6 via the 560-ohm current-limiting resistors. The Sketch Now for our sketch. Enter this code into the IDE:
In void setup() the digital I/O pins are set to outputs, because we want them to send current to the LEDs on demand. We specify when to turn on each LED using the digitalWrite() function in the void loop() section of the sketch. Project 2: Repeating with for loops to be contd.... or check here: http://www.jutronix.com/tutorials/arduino-tutorial/ |
Simulating with MPLAB Type the following code inside the code editor.
1. Open Tools >> Options >> Output Option, and check the “Generate COFF file” option, and click the OK button. 2. After that, compile the project by clicking the build icon or pressing Ctrl + F9. 3. Next, open MPLAB IDE, and select the appropriate device (P16F887) by choosing Configure >> Select Device… : 4. After device selection, click on the File >> Import. Open file dialog box should appear. Then, go to the project folder and open the generated COFF file, LED.cof : 5. Then, select the MPLAB SIM from the Debugger >> Select Tool menu for software debugging : 6. Click on View >> Watch to open the watch window. Click on the drop down list on left-side, select special function registers TRISA, TRISB and PORTB and click Add SFR to add them. 7. Click the drop down list on right-side, select the variable count and click Add symbol to add it. 8. Now,you can start debugging the code by clicking Step into button on the Debug toolbar, or by pressing F8 : You can then watch the values of the added registers and variable count in the watch window as you step into the code. |
I just stumbled upon this site now lindaikejist (dot) com. Is this site owned by Linda Ikeji or some one trying to use the lady's name. |
. |
Thanks for all your wonderful contributions, the issue has been resolved, the site is online now. Check out the site www.jutronix.com and also comment on the design because I will like to here some professional advice and suggestions from our able webmasters here. |
seunoni34:Arduino tutorial is coming soon, I use pickit2 & pickit3 programmers.. |
Example One: Working with LEDs Type the following Code to bling some LEDs connected on portb of PIC16F887 in our training kit.
|
Don't you have car tracker? If you love your car always equip it with car trackers. There are good testimonies about trackers, you can stop the stolen car with your handset and also get its location. Sorry you will see it |
What Is a Microcontroller? A microcontroller is an inexpensive single-chip computer. Single-chip computer means that the entire computer system lies within the confines of the integrated circuit chip. The microcontroller on the encapsulated sliver of silicon has features similar to those of our standard personal computer. Primarily, the microcontroller is capable of storing and running a program (its most important feature). The microcontroller contains a CPU (central processing unit), RAM (random-access memory), ROM (read only memory), I/O (input/output) lines, serial ports, timers, and sometimes other built-in peripherals such as AD (analog-to-digital) converters. Why Use a Microcontroller? Microcontrollers, as stated, are inexpensive computers. The microcontroller’s ability to store and run unique programs makes it extremely versatile. For instance, one can program a microcontroller to make decisions (perform functions) based on predetermined situations (I/O-line logic) and selections. The microcontroller’s ability to perform math and logic functions allows it to mimic sophisticated logic and electronic circuits. Microcontrollers are responsible for the “intelligence” in most smart devices on the consumer market. Look in any hobbyist electronics magazine from this country or any other. You will see articles that feature the use of microcontrollers, either directly or embedded in the circuit’s design. Because of their versatility, microcontrollers add a lot of power, control, and options at little cost. It therefore becomes essential that the electronics engineer or hobbyist learn to program these microcontrollers to maintain a level of competence and to gain the advantages microcontrollers provide in his or her own circuit designs. If you examine consumer electronics, you will find microcontrollers embedded in just about everything. This is another reason to become familiar with microcontrollers. Microcontroller Systems A microcontroller is a single-chip computer. Micro suggests that the device is small, and controller suggests that it is used in control applications. Another term for microcontroller is embedded controller, since most of the microcontrollers are built into (or embedded in) the devices they control. A microprocessor differs from a microcontroller in a number of ways. The main distinction is that a microprocessor requires several other components for its operation, such as program memory and data memory, input-output devices, and an external clock circuit. A microcontroller, on the other hand, has all the support chips incorporated inside its single chip. All microcontrollers operate on a set of instructions (or the user program) stored in their memory. A microcontroller fetches the instructions from its program memory one by one, decodes these instructions, and then carries out the required operations. Creating new Project The easiest way to create a project is by means of the New Project Wizard, drop-down menu: Project > New Project Start creating your New project, by clicking Next button: Step One – Select the device from the device drop-down list : Step Two – Enter the oscillator frequency value : Step Three – Specify the location where your project will be saved : Step Four – Add project file to the project if they are avaiable at this point. You can always add project files later using Project Manager but if their is no file to add click Next: Step Five – Select Include none in the Library Manager : Step Six – Click Finish button to create your New Project : Please note that there are some pictures under each steps, so check the link below: ....to be contd More info here: http://www.jutronix.com/tutorials/pic-tutorial/ |
War ship for what? |
and pls where can i get it in Lagos