Category Archives: Uncategorized

AVR-T32U4 Arduino demo code for TV remote control

Image

AVR-T32U4 is easiest way to breadboard your Arduino projects, with this demo we will show you how to connect MOD-IRDA and receive and send IR commands from TV remote control and to TV.

MOD-IRDA have IR receiver and IR LED, in the demo project we will use Jumper wires to connect to Breadboard.

Image

The demo code is at https://github.com/OLIMEX/DUINO/tree/master/AVR/IR-REMOTE

LED is connected to D13 and MOD-IRDA IR receiver is connected to D11.

On the video you can see how LED is switched ON and OFF with ’1′ and ’2′ buttons from the IR remote.

http://www.youtube.com/watch?v=Asbb1Jr1DNs

The same way you can control other stuff with Arduino, for instance connecting Servo motor to move your fences at home etc.

 

Tagged , , ,

AVR-T32U4 ARDUINO demo code for MOD-WII-NUNCHUCK interfacing

Image

 

Wii-Nunchuck is low cost combo of 3 axes accelerometer, 2 axes Joystick and 2 buttons. It communicated via I2C and we made UEXT connector for it so it plugs directly to AVR-T32U4 Arduino compatible breadboard.

The Arduino library is available at: https://github.com/OLIMEX/DUINO/tree/master/AVR/WII-NUNCHUCK with demo code which prints accelerometer, joystick and button status: http://www.youtube.com/watch?v=fodnHXkwpHg

Tagged , , ,

Arduino Breadboarding with AVR-T32U4

Image

 

AVR-T32U4 is the easiest way to do breadboard projects with Arduino. With retail price of EUR 12.95 this is also the Arduino board with best price/performance ratio.

As you see from the picture above AVR-T32U4 snap perfectly to Breadboard-1 and it powers the two power buses with 3.3V and GND and you have access to all Arduino pins A0-A5 and D0-D13 on the breadboard area, so you can easily connect to LEDs, Servo Motors,  Sensors etc.

Here is step by step instructions what you have to do to get started.

1. Download Arduino IDE from http://arduino.cc/en/Main/Software; Unpack the downloaded zip file in main drive C:\arduino-1.0.4

2. Plug AVR-T32U4 to your PC and it will ask for drivers, point it to C:\arduino-1.0.4\drivers

3. After the drivers are installed run C:\arduino-1.0.4\arduino.exe

4. Select the board to be Arduino-Leonardo as per attached picture

Image

 

5. Right mouse click on “My computer” then select Properties-> Hardware-> Device Manager and check which virtual COM port is created when you plug AVR-T32U4.

Image

 

as you see on the picture in this case COM33 is created by Arduino-Leonardo

6. From Arduino menu select the com port as per attached picture:

Image

 

6. Open Blink LED project:

Image

 

7. Upload the sketch by click on -> button

Connect LED with longer led to D13 and shorter leg via 220 ohm to GND.

You should see the LED blinking as on this video: http://www.youtube.com/watch?v=M0cVerSNUDc

Congratulations you just complete your first Arduino project!

We also highly recommend you when you do prototype work to put USB-ISO between your Arduino and PC in this case even if you do some stupid like to make short on your Arduino board or put wrong voltage somewhere your PC will be always protected, so even if your Arduino board burn your computer will be safe.

Tagged , , , ,

Weekend Programming Challenge Issue-9 Solutions

Image

 

We got 7 solutions for the Issue-9 challenge: 

  • 3 C
  • 2 Java
  • 1 C#
  • 1 Python

I’m surprised that we didn’t got more solutions as this challenge was pretty simple. Maybe the picture I put on the Challenge confused you?

What you have to do is to pick random (or first) three points and calc the radius and centre coordinates of the circle which pass through them (3 points always define circle).

Then to check rest of the point if belong to same circle which is trivial using Pythagorean theorem.

Tagged , , ,

Weekend Programming Challenge Issue-9

Image

 

Problem:

Let have N (3..100) points with X,Y coordinates. Make code which checks if there is circle which to pass through all of them.

The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday May 19th.

On Monday we will upload the solutions on GitHub and review https://github.com/OLIMEX/WPC .

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

Good Luck and Have fun!

Tagged , , ,

FRIDAY FREE BOARD QUIZ ISSUE #41 PRIZE IS SERVO MOTOR MS-6-40

Image

MS-6-40 https://www.olimex.com/Products/RobotParts/ServoMotors/MS-6-40/ is 40 gram Analog Servo Motor with 6 kg.cm drive force. You can make lot of interesting projects with it and AVR-T32U4, OLIMEXINO-328, OLIMEXINO-STM32 and PINGUINO have ready to use Servo drive libraries. 

You have chance to win this pack if you answer today’s Quiz question.

Today at 17.00 o’clock our local Bulgarian time (GMT+3) we will post on Twitter our questions.

You have one hour to reply to our tweet with the correct answer.

At 18.00 o’clock we will count the correct answers and ask random.org to generate random number in range then announce the winner and ship the board by airmail in Monday.

Do not forget at 18.00 o’clock we will post our Weekly Programming Challenge #9, yet another way to challenge your programming skills

Tagged

A10S-OLinuXino-MICRO Python GPIO module

Image

 

pyA10S GPIO ports module is available at: https://pypi.python.org/pypi/pyA10S/0.1.2

 

Tagged , ,

Weekend programming challenge issue-8 solutions

Image

 

Here are the Solutions for Issue#8, enjoy them! https://github.com/OLIMEX/WPC/tree/master/ISSUE-8

Although it seems simple on first sight this is really hard to implement for a weekend when you get into details, so congratulations to all who submitted solution!

The exotics this time is the solution written in linux shell language, I would never think this is possible before I saw it :)

 

Tagged , ,

Weekend Programming Challenge Issue-8

Image

 

Problem:

Make All-winner Hangman game :)

Everybody knows Hangman game http://en.wikipedia.org/wiki/Hangman_(game) and it’s very easy to implement one even with ASCII art on the computer text terminal console, so we will not focus on fancy graphics in this challenge.

To generate the guess word you can use some free English word list, for instance from here: http://dreamsteep.com/projects/the-english-open-word-list.html which contains about 128,000 words.

The challenge this weekend is to make the computer unbeatable. How?
Each time the player guess letter, if this letter is in your word you have to scan the dictionary for similar word (if possible and do not break the game rules) which have no such letter and replace it, so player is always wrong :D .

 The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday May 12th.

On Monday we will upload the solutions on GitHub and review https://github.com/OLIMEX/WPC .

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

Good Luck and Have fun!

Tagged , , , ,

FRIDAY FREE BOARD QUIZ ISSUE #40 PRIZE IS BREADBOARD-1 + USB-PWR + JW-200×10

Image

Image

For these who want to experiment with breadboards we have this set for you: BREADBOARD-1, USB-PWR, Jumper Wires JW-200×10.

You have chance to win this pack if you answer today’s Quiz question.

Today at 17.00 o’clock our local Bulgarian time (GMT+3) we will post on Twitter our questions.

You have one hour to reply to our tweet with the correct answer.

At 18.00 o’clock we will count the correct answers and ask random.org to generate random number in range then announce the winner and ship the board by airmail in Monday.

Do not forget at 18.00 o’clock we will post our Weekly Programming Challenge #8, yet another way to challenge your programming skills

Tagged , , ,
Follow

Get every new post delivered to your Inbox.

Join 219 other followers