Posts with «arduino» label

Fixing an enc28J60 based Arduino Mega ethertnet shield

Prototyping my home automation system i ran into troubles. I can’t make work two SPI devices on Arduino Mega. One is an ethernet shield based on enc28J60 made by ekitszone, other is a small module based on Nordic’s nRF24L01+ transceiver. Spot the problem without an oscilloscope was really frustrating, oscilloscopes are not hacker’s best friends for nothing. After checking and rechecking solder joints, my code, astral conjunctions, finally i found the real problem. Trivially MOSI and MISO signals of SPI bus on ethernet shiled are reversed. Detaching the shield from Arduino and using a breadboard to invert MOSI (pin 51) and MISO (pin 50) make everything work (to be true, my code doesn’t use ethernet yet but the transreceiver works like a charm now). I don’t know which batches are affected but if you are in trouble with these shield using enc28J60 datasheet and a tester try to figure out if this is your situation. Happy hacking.

Eraclitux 05 Jun 19:15
arduino  domotics  hardware  tips  

Fixing an enc28J60 based Arduino Mega ethertnet shield

Prototyping my home automation system i ran into troubles. I can’t make work two SPI devices on Arduino Mega. One is an ethernet shield based on enc28J60 made by ekitszone, other is a small module based on Nordic’s nRF24L01+ transceiver. Spot the problem without an oscilloscope was really frustrating, oscilloscopes are not hacker’s best friends for nothing. After checking and rechecking solder joints, my code, astral conjunctions, finally i found the real problem. Trivially MOSI and MISO on ethernet shiled are reversed. Detaching the shield from Arduino and using a breadboard to invert MOSI (pin 51) and MISO (pin 50) make everything work (to be true, my code doesn’t use ethernet yet but the transreceiver works like a charm now). I don’t know which batches are affected but if you are in trouble with these shield using enc28J60 datasheet and a tester try to figure out if this is your situation. Happy hacking.

Eraclitux 05 Jun 19:15
arduino  domotics  hardware  tips  

Large-scale Arduino controlled greenhouse does some serious farming

[Instrument Tek] isn’t messing around with a hobby-sized greenhouse. In fact if it were any bigger we’d call it a commercial operation. But what interests us is the professional-quality greenhouse automation he built around and Arduino board.

The greenhouse is about what you’d expect to see at a nursery, except the footprint is somewhere around 10′x10′. It’s a stick-built frame with walls made of poly. Professional greenhouses monitor and regulate temperature and humidity and this one does just that. The video after the break starts off by showing the controller box. It has temperature, humidity, and light sensors that allow the Arduino to judge growing conditions. If it gets too hot, some slats are opened and a fan exhausts air from the structure. If it gets to cold, a series of light fixtures are energized. They contain heat lamps, as this setup is in northern Alberta, Canada and it can get quite cold some nights. The drip system is also automated, with a solenoid to turn water on and off.

In addition to that 3:26 show-and-tell, we’ve embedded a 27-minute video that shows how to build the controller box. So you can start you plants indoors on the rack, then populate the greenhouse when they get large enough.

[Thanks Ricardo]


Filed under: green hacks
Hack a Day 05 Jun 19:01

Ben Heck makes Super Glove mod for Kinect, takes strain out of gestures (video)

Sick of trying to control your 360 using Kinect, semaphore and advanced flailing? Modgod Ben Heck, deciding he wanted to be more Minority Report and less lunatic, has been working on Power Glove 2.0 to improve the console's navigation experience. The prototype glove is tricked out with Arduino, an accelerometer, a gyroscope and some fingertip buttons. With the addition of IR and a little coding magic, the 360's interface can be controlled via subtle gestures, with increased functionality / style points also apparent. Check out the latest episode of The Ben Heck Show after the break for a detailed walkthrough of the project and a demo of the glove in action.

Continue reading Ben Heck makes Super Glove mod for Kinect, takes strain out of gestures (video)

Ben Heck makes Super Glove mod for Kinect, takes strain out of gestures (video) originally appeared on Engadget on Mon, 04 Jun 2012 17:33:00 EST. Please see our terms for use of feeds.

Permalink | Email this | Comments

Salvius

Primary image

What does it do?

Salvius is my humanoid robotics project that I have been working on over the past year. The robot still requires work before it can move around on its own because I still need to get another motor controller. While I search for another Curtis 12v model: 1204 motor controller I continue to work on many other parts of the robot's design. The robot now has night vision and ultrasonic hearing. You can connect to the robot's computer using any wireless enabled device and control the robots actions.

Cost to build

$650,00

Embedded video

Finished project

Number

Time to build

Type

wheels

URL to more information

Weight

120000 grams

read more

Bike alert tells drivers to back off

Bicycle commuters are often in a battle with drivers for space on the road. [Hammock Boy] does all of his commuting on two human-powered wheels, and is quite interested in not getting hit by a car. He decided to ply his hobby skills to build a device that helps keep him safe. It’s not just a tail light, it’s a sensor that shines brighter the closer a car is to the back of the bike.

The sensor portion is the ultrasonic range finder seen in the center of the protoboard. Surrounding it is a set of LEDs. Each is individually addressable with the whole package controlled by an Arduino. The sketch measures the distance between the back of the bike and whatever’s behind it. If there’s nothing, one Red led is illuminated. If there is an object, the lights shine brighter, and in different patterns as the distance decreases.

Certainly the next iteration could use a standalone chip without the need for the whole Arduino. This could even work with two battery cells and no voltage regulator. We also think the use of any other color than Red LEDs is suspect but we do love the concept.


Filed under: transportation hacks

Arduino Leonardo Pinout Reference

I made this Arduino Leonardo pinout reference for anyone considering building shields for the Leonardo. Please note that shields designed for the UNO, Duemilanove, Diecimila and others will most likely NOT WORK on the Leonardo, because alot of the pin functions have been moved around. This image helps you see some of the differences.

For example, the lower 8 digital pins are no longer all a single port, and many of the pins, with the exception of the RX and TX lines, are moved around. Some of the PWM lines are in the same place, but are now connected to different ports and OC registers than they were before.

On the other hand, you now have access to twice as many ADC pins as you did before, and you don’t have to give up 2 ADCs for I2C. You also get two more low-level interrupt lines and, of course, USB native functionality, which (I personally feel) is exciting!

You can see the full-size image (about 2200×1600) in my Flickr photostream. This pinout was derived from the info found here. The Leonardo image is from the official Arduino Leonardo page.

Happy hacking!

johnginneer 03 Jun 20:13
arduino  

Attiny-Duino or whatever?

Hi geeks ;-)

I am thinking about to shrink some of my projects. That's the deal. I am planning to build a Attiny-Duino.

What would you think about it's usage? For myself I would use it in the Insect bot to reduce the weight, costs and power comsumption.

Starbot

Primary image

What does it do?

Shines toward Spectator

The Starbot is a custom robot made for one of my sons. It is a star that shines and rotates to where the spectator is.

My son found this wooden star-on-a-stick somewhere and played around with it. After a while he came to me and said it would be cool if this star would shine whenever somebody comes close to it.

Bam! Here we go. This is a perfect question for a geek dad. Of course we can! So this little kid and I elaborated a bit more and out came this robot named Starbot.

Cost to build

$40,00

Embedded video

Finished project

Number

Time to build

8 hours

Type

URL to more information

Weight

200 grams

read more

How Arduino helped him win a hackathon: Locksmasher

While browsing Hacker News, I came across this interesting account of Andrei Pop [blog, twitter] which tells about how he won a recent Facebook hackathon using an arduino hack.

It is a recent trend that hardware too has entered the hackathon scenario. Here are interesting excerpts from his honest account!

A few months ago 3 friends and I participated in the facebook hackathon at UBC. It was a 36 hour, redbull-fueled affair in which quite a few teams participated. We won. I’m not telling you this story to brag, I want to share with you what I learned. In all honesty, I was shocked we won, but I think that sticking to a couple of principles helped:

1. Don’t compete with your second best arsenal

2. Solve a real problem

3. Breadth instead of depth can pay off

Yes, you’ve heard this advice before and there are exceptions to every rule… I’m just sharing my personal experience.

Our team consisted of a designer, a biomedical engineer (who didn’t write a single line of code), a CS student (without a doubt the most “qualified” of all of us), and myself (a Political Science grad). I was the only non-engineering-educated person in the room. One essential lesson I have learned over and over in life is that it is futile to compete on a metric that you cannot possibly be the best at. Don’t compete with your second best arsenal. You need to find the edge that nobody else will think of, or where nobody else can be. If the competition can outspend you, outmanouever them. If the guy at the bar is better looking, be funnier. And if most of the guys in the room have PhDs in CS, go for hardware?

The night before the hackathon I picked up an arduino microcontroller, a few LEDs, some alligator clips, and a breadboard. I didn’t really know how things would come together, but I had spent some time hardware hacking and I was really interested in physical computing. I also figured that most of the guys in the room wouldn’t be thinking about hardware (this was a facebook hackathon, most people were looking up the Open Graph API). I hoped hardware would be our edge, and as it turns out, it was.

After a bit of brainstorming and chinese food we agreed to build Locksmasher – an arduino powered unlocking mechanism that would handle authentication through the Open Graph API. We wanted to create a way to grant one-time access to facebook friends that need to get into your house.

Half an hour into our brainstorming, one of my team members had to leave the hackathon to let a friend into his house. This event sparked the idea of locksmasher and outlines my second point – solve a real problem. A craft for a craft’s sake can often be futile. There are definitely exceptions to this, but most of the time, start with a defined problem and apply your craft, instead of the other way around. The judges loved that they could personally relate to the problem of needing to let someone into their house when they weren’t home.

Our hack was very simple – it was nothing more than a glorified switch that talked to facebook. Graeham (our biomedical engineer) hooked up an old door lock to the arduino for our demo. Yazad (the CS student) and I wrote a NodeJS server to talk to facebook. We spent most of our time dealing with authentication, a problem that could have been solved in a few hours by a better hacker who knows the facebook API well. In the meantime Vince (our designer) made everything look very beautiful. This brings me to my last point point, sometimes breadth is better than depth. I want to credit a tremendous amount of our success to Vince’s design work and Graeham’s hardware. By the end of the 36 hours, we had addressed a little bit of everything.

Most of the hackers in the room built some very elegant projects; machine learning algorithms, recommendation algorithms based on your friends likes, data parsing applications. However many of the projects were elegant for elegance sake and didn’t solve a pain point that the judges could relate to. Furthermore, they didn’t look at the whole package (arguably not necessary for a hackathon but I certainly think our sleek UI helped win over the crowd).

It easily highlights arduino’s adaptability to hooking with various technologies. It truly comes out as the bridge between hardware and software.

The project demo lies here.

Any hackathons worldwide in which our readers have used their Arduino? Please do link the demo or your blog We would love to read!

Via:[dedigncodelearn,HackerNews]