₦airaland Forum

Welcome, Guest: Register • Login • With Google • Trending • Recent • New

Stats: 3,345,089 members, 8,515,471 topics. Date: Sunday, 08 November 2026 at 11:52 PM

Toggle theme

Leopantro's Posts

Nairaland Forum › Leopantro's Profile › Leopantro's Posts

1 2 3 4 5 6 7 8 ... 50 51 52 53 54 55 56 57 58 (of 99 pages)

Programming › Re: Free Arduino Tutorials by Leopantro: 1:04pm On Jan 15, 2015
princejude:
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:


// 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/
sorry for quoting the whole post.
how much will it cost to create a unit of this, can it be made to run off batteries and can the number of LEDs be increased?
Programming › Re: Free Arduino Tutorials by Leopantro: 11:35am On Jan 15, 2015
AAinEqGuinea:
Raspberry pi

https://www.cl.cam.ac.uk/projects/raspberrypi/tutorials/robot/images/raspberry_pi.JPG

Have a clusters of them.

but I'm sure you're aware, it doesnt matter what you use.
how much do you sell your raspberry pi and where are you located?
Science/Technology › Re: Electronics Circuit Design From Concept To Implementation by Leopantro: 11:26am On Jan 15, 2015
been following this thread for a while. would love to try my hand on designing and electronics but don't don't have the baseline knowledge and the time to study it. then i came across the video below. considering ordering for the cloudbit pack

https://www.youtube.com/watch?v=6fJRDjaoLIk
Phones › Re: Android, Anyone? Part II by Leopantro: 11:22am On Jan 15, 2015
i see a lot of potentials in this with android but i'm yet to see how i can make money from it

https://www.youtube.com/watch?v=6fJRDjaoLIk
Phones › Re: Android, Anyone? Part II by Leopantro: 11:21am On Jan 15, 2015
tayoast:
I use a galaxy s4.

For the past 1week, the camera has stopped focusing and as such, images captured are all blurry.

I've tried different camera apps (stock, camera zoom fx, perfectly clear) but they're still blurry.

Help pls.
means the camera lens has an issue.
take it for repairs.
Celebrities › Re: Nollywood Actress Linda Ejiofor To Replace Helen Paul On ‘jara’ Set by Leopantro: 4:03pm On Jan 13, 2015
welcome to the good life.

Gaming › Re: Does Anyone Know Where I Can Generate Word Search Puzzles? by Leopantro: 9:47pm On Jan 12, 2015
search for this software "Find that Word" on google. can't recall the site i downloaded it from but it's wonderful in creating custom search word games
Phones › Re: Android, Anyone? Part II by Leopantro: 8:36am On Jan 07, 2015
FOR THOSE THAT USE ADAWAY.

it's a great app that helps in blocking all those internet ads that hijack your browsing session. But the basic block list was made for specific websites outside Africa.
Attached is my block list complied over the span of 5 months.download it, then go to the " your list" option of the app. Click on menu, select import list, navigate to the downloaded file and import it.
Politics › Re: We Are Not With Buhari’s Original Copies Of Certificates — Army by Leopantro: 10:57pm On Jan 02, 2015
why am i not surprised? hold on, let me put on my shocked face.

Phones › Re: How Much Did You Spend On Data Subscription In 2014 ? by Leopantro: 9:13am On Jan 01, 2015
I believe N120,000, give or take N40,000
Business › Re: Nigeria Struggles to Sell Oil Cargoes, Offers Discounts to Asian Buyers by Leopantro: 9:09am On Jan 01, 2015
thinking beyond the election,what can be the worst case scenario regarding the Nigerian economy in light of the current oil crisis.

considering Russia's economy in which their currency has devalued by more than 50% from the middle of last year
Business › Re: Nigeria Struggles to Sell Oil Cargoes, Offers Discounts to Asian Buyers by Leopantro: 6:58pm On Dec 31, 2014
majekdom2:
refining , and making use ... stop importation, we wont have anything like subsidy .... we can then export whatever is left.
I have really enjoyed the discussion so far. for once, intellectual minds are discussing an important issue without stupid political inputs.

In regards to stopping importation, I would like to share a post by MissMeiya

Discouraging imports is great for stimulating local
economy: WHEN THE LOCAL PRODUCTION
ACTUALLY EXISTS. For too many things in Nigeria,
the consumption FAR EXCEEDS LOCAL
PRODUCTION. The market actually depends on
importation for SURVIVAL.
You can't buy what doesn't exist.
So what does this mean? People will continue to
import because they HAVE to, even with the
increased import taxes:
• They will just pay the increased cost--defeating
the purported goal of reducing imports
• They will bribe someone--increased corruption
• They will smuggle it in from neighboring
countries--giving more money to other countries
The last is the most likely outcome, as it is already
happening.
case in point,; banning the importation of cars with no established manufacturing company capably of meeting half of the needs of the populace at any set point adequately.
Phones › Re: Top 10 Android Browsers 2014 by Leopantro: 1:11pm On Dec 31, 2014
for all those that use Chrome and Firefox, go to settings, app manager, click on Chrome or Firefox and check the total size of the app.
Woe unto you if you use them on tecno
Politics › Re: “You Speak Like Your Party” – Lagos Blasts Sambo On Allegation Of Heavy Taxation by Leopantro: 7:59pm On Dec 30, 2014
The only thing missing in that publication is "Yo mama"
Phones › Re: Android, Anyone? Part II by Leopantro: 10:35pm On Dec 27, 2014
WEAK CONTROL.

came across this app that mirrors your screen onto a browser on the same Wi-Fi network. Can play videos and music too.

Apparently, it works for some but on my it's slow. S4You guys give it a try
Business › Re: False Information On New ₦100 Website (Photos) by Leopantro: 7:52pm On Dec 27, 2014
tecno4life:
anoda yaba left patient on the loose

I love GEJ till 2019 but this is a disgrace to the nation, shame on who decided that alianz arena pic will be used on the site
The first pro-GEJ that I like. Guy, chop knuckle
Business › Re: False Information On New ₦100 Website (Photos) by Leopantro: 7:10pm On Dec 27, 2014
MissMeiya:
To show you how FREE it is to create a QR code:

I just made this one now. It points to www.nairaland.com.

And I didn't need to contract a foreign company to give me a LINK TO THEIR OWN WEBSITE.
The issue of the QR code been a security check by the Governor of CBN does not good water. Anyone can create a QR code, the link is not a secure site. Wonder how much the contract was?
Business › Re: False Information On New ₦100 Website (Photos) by Leopantro: 7:00pm On Dec 27, 2014
felibrain:
The link I'm still seeing can't prove that FG owns the site or that the site is in anyway affiliated to the FG. Until this is established all the claims here remains baseless. We must be careful with what we say about our country please!!!
Fine. The FG does not own the site and the site is not affiliated with the FG. Who, then, allowed such a site to advertise on a legal tender that the FG mandated by law to circulate in Nigeria and why was such an error (misinformation) allowed to occur?
Business › Re: False Information On New ₦100 Website (Photos) by Leopantro: 6:52pm On Dec 27, 2014
MissMeiya:
Yes, the Federal Government of Nigeria is that unprofessional. Why are you forming?

http://www.slideshare.net/mobile/SagiNadir/site-update-n100-centenary-banknote

The company they contracted is called Visualead, and is based in fucking Tel Aviv. The shame NEVER. ENDS.

And no, it's not hosted by Google, you ídiot.
Never pretend to comprehend the height of ignorance of most Nigerians. Everyone had the right to exhibit such ignorance but some abuse that privilege.


In his rush to defend this master, he exposed himself even more. Wonder what else he would say?
Business › Re: False Information On New ₦100 Website (Photos) by Leopantro: 6:40pm On Dec 27, 2014
felibrain:
WHAT IS THIS ONE SAYING? What prove do you have that the site you posted was created by the FGhuh As a tech savy you claim to be, is it not rather disgraceful that you don't know that links that begin with sites.anything.soso shows that it's a free website hosted by Google (which any body can create and upload whatever he feels likehuh Do you think if FG wanted a site they are too broke to pay for hosting? Please stop seeking unnecessary attention.
Guy, stop showing yourself. This is a picture of the new 100 naira note. Scan it yourself and ask who put the QRcode there.

Business › Re: False Information On New ₦100 Website (Photos) by Leopantro: 6:06pm On Dec 27, 2014
Godwinsilas:
But you should know that the site is not Administer/Moderated by Government, and as such the person in charge made that mistake and also it just an area view which the said stadium is not better of AI stadium in picture.
So why is the bar code on a legal tender, made and circulated by the Federal Government. Considering that anyone can get access to it, those pictures are copyrighted so they can be sued by those countries. And I may be wrong but a mistake was done on a centenary note, the cost of making, recalling and reprinting of the notes....
Phones › Re: Android, Anyone? Part II by Leopantro: 10:34pm On Dec 21, 2014
Okay, more research came up with the below.

I have an issue with disappearing phone
storage. Over the course of a week I realized that I
was losing about 1MB a day. My phone would
basically be dormant and I would still see my
storage space dropping by this amount everyday.
Cache cleaning didn't work. Later I realized that
Android creates a bunch of log files in Data/
System/Dropbox that was responsible for the
disappearing phone storage trick I've been seeing
for a while now.
I know now that Google has incorporated into
Android as of the 2.2 iteration, a DropBox Manager
that's responsible for logging all of the events that
take place during the course of a running Android
session. Everything from what took place at boot to
force close details.

TO SOLVE THIS

The first thing I tried was changing the permissions
on the "Data/System/Dropbox" directory and it
worked. But I didn't use CHMOD and console
command line to do it.
I have a program called Root Explorer that allows
me to permanently change the permissions on any
file or folder I select. I set all of the offending
folders to read only and the log files stopped being
written to those folders.
These are the directories I set to read only:
1. "Data/System/Dropbox"
2. "Data/System/UsageStats"
3. "Data/Tombstones"
Since changing the permissions on these folders
my phone storage has stopped dwindling out of
control. No additional programming necessary.

Seems like any crash files and logcats all
get dumped in the data / tombstone files, after
more searching , one member with a Samsung
moment had a tombstone file 200 mb.

FOR NON ROOTED PHONES

You can download
connectbot from the market , for people with low
storage space warnings
Phones › Re: Android, Anyone? Part II by Leopantro: 10:11pm On Dec 21, 2014
4llerbuntu:
Read the logs.

seems to me that something is harvesting info on your devices and sending them home.
Came across this while searching on it. Would be beneficial to those with tecno phones having "insufficient memory" issues.

/data/system/dropbox is not part
of "DropBox" it is part of the Android
OS DropBoxManager (not related at all
to "DropBox"wink.
This puts data from application
crashes and kernel logs and such in
this log directory. I know the market
uses this directory (See #4) as well,
probably to report application crashes.
You could probably remove the data in
this directory, but DO NOT delete the
directory and you may see logcat
errors from parts of the OS/Apps
looking for specific files in this
directory.
edit : I deleted everything from this
folder and rebooted my device
afterwards, I had no issues with any
applications, and it actually freed up
some space on the device.
Culture › The Centenary Naira Note by Leopantro(op): 6:22pm On Dec 21, 2014
I just got a couple of the new centenary note and noticed a QR code at the back. Scanned it and was directed to a website. I'm impressed with the info on the site.

Modern-day Nigeria came into being on January 1, 1914, with the formal amalgamation of the Northern and Southern Protectorates of the former British colony. Therefore January 1, this year marks 100 years of the Union.
The Centenary celebration therefore gives us an opportunity to highlight our achievements as a nation, celebrate our dexterity, resilience as a people and determination to launch Nigeria into the next century with greater expectations.
In line with this, the Central Bank of Nigeria has redesigned the ₦100 note to commemorate the attainment of this milestone.

Phones › Re: Android, Anyone? Part II by Leopantro: 12:49pm On Dec 20, 2014
Why is there a dropbox folder in /data/system/ and why is it filled with over 250mb of event logs?
Food › Re: 10 Delicious Foods That Were Invented By Accident by Leopantro: 4:20pm On Dec 18, 2014
Coca Cola

The most famous liquid, after water, the popular, carbonated Coke actually started out as an alcoholic beverage.

Invented by Dr. John Stith Pemberton in 1885 as a means in which to calm his patients, the drink then known as Pemberton’s French Wine Coca was forced to change its alcoholic ingredient with the onset of Prohibition.

While the drink had been created as a means to deal with ailments like headaches, impotence and morphine addiction, the first sales of the beverage assured its early popularity and today it remains the most popular of carbonated beverages.
If you read the book "the Coke Machine", you would know that the original coca cola was made with cocaine in it. It was so wonderful that even the pope at that time blessed it. To this day, a certain extract from the cocaine plant is utilized in the making of coca cola and is labeled "extract number 5", extracted in New Jersey.
Events › Re: Beautiful Hand Designed Light Lamps by Leopantro(op): 3:32pm On Dec 18, 2014
I accept your logic. Currently talking with some marketers about distribution; once that is established, the price would go down. Besides, I created it as a hobby.considering my main job is time consuming, it takes 4 days to create one.even at that price I have four orders I'm battling to finish before Christmas day and I hate disappointing anyone. Will eventually employ some hands to help but once logistics are in place the prices would fall.
Please note that the lamps have different prices based on the design and sizes.

Thanks for your interest and suggestions.
Events › Re: Beautiful Hand Designed Light Lamps by Leopantro(op): 2:00pm On Dec 18, 2014
PerfectFortune:
How much does it cost and how can you be reached?
cost N15000 each. currently establishing a contact in lagos; that would be ready by the second week of January.

BBM : 7F0C3F92
Technology Market › Re: Portable Hand Sized Projector; Fits Into Your Pocket SOLD by Leopantro(op): 1:29pm On Dec 17, 2014
Bump
Health › Re: Beautiful Nurses Fob Watch Available by Leopantro(op): 1:29pm On Dec 17, 2014
Available

1 2 3 4 5 6 7 8 ... 50 51 52 53 54 55 56 57 58 (of 99 pages)