Weekend Programming Challenge – Week #64 solutions

5heApn4

We got 6 solution this weekend:

  • Pascal x1
  • C x2
  • Python x2
  • Matlab x1

I will admit that the idea for this WCP came after reading these interesting web pages with analyze of different algorithms:

http://www.tannerhelland.com/3643/grayscale-image-algorithm-vb6/

http://www.johndcook.com/blog/2009/08/24/algorithms-convert-color-grayscale/

http://www.johndcook.com/blog/2009/08/24/more-on-colors-and-grayscale/

The solutions are as usual on GitHub

Weekend Programming Challenge – Week #64 Color to Gray scale converter

5heApn4

To convert color to gray scale image is easy all you have to do is to find function which converts (R,G,B) to gray levels. There are many algorithms, simple is average grayscale = (r+g+b)/3 which works somehow but not quite well as with this algorithm all color R,G,B are translated to same grayscale level (255,0,0) = (0,255,0) = (0,0,255) but human eye have different sensitivity for the different colors, which may be taken into account to make better converter.

What can you invent?

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 September 14th.

On Monday we will upload the solutions on GitHub 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.

Friday Give Away Quiz – Week #96 prize is SNS-IR-3-80 adjustable infrared proximity switch 3-80 cm

SNS-IR-3-80

SNS-IR-3-80 is adjustable infrared proximity switch. You can change sensitivity with potentiometer and it’s very easy to embed in your next project.

To participate in the Quiz is enough to Re-tweet the Twitter Quiz announcement message.

To double your chances you have to answer the Quiz question :)

Today we will post on Twitter our question.

You have time to re-tweet until Monday 15th of September.

In Monday 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.

Good Luck!

PIC32MX220D Code Generator Project

PIC32

Few days ago Antonio Leite sent me this e-mail:

Dear Mr. Tsvetan Usunov

A few weeks ago I purchased a board PIC32-Pinguino-MX220 and started working on it.

As I was new to PICs 32 microcontrollers, I started searching code and samples on the internet, besides reading the user manual and the library pdf to have the minimum code to make a led to blink and understand how this pic32 family works.

I started thinking that lots of people must overtake the same boring tasks before having the board fully functional.

Then I started writing an application that generates code automatically for me and my colleagues. The application was a success and everybody started saying that Olimex should be interested in this application.

I am sending a pdf that I would like Mr Usunov to have a view and see if this kind of application has some interest for Olimex.

I am attaching a project so that it can be open on the MPLABX environment. The files .c and .h generated by the application are ADCDrv, CoreTimerDrv, GPIODrv, PWMDrv, UARTDrv and configurator.xml.

To connect the board to the computer I used a USB-Serial-Cable-F

Best regards

Project files are available here.

Project description is here.

On this video you can see how it works:

 

 

Three New Projects sumbitted: Telescope controller and Olimexino-85-kit build and SOS transmitter

Completo

We got three new Projects submitted on our web Project section

Home made Telescope controller

How to Build Olimexino-85-kit

Olimexino-85 sends SOS signal

 

Weekend Programming Challenge – Week #63 solutions

DSC_4050-MR-Braille

We got 11 solutions this weekend:

  • Python x4
  • C x2
  • Ada x1
  • Ruby x1
  • Groovy x1
  • Haxe x1
  • Fortran77 x1

Last time I wrote in Fortran 30 years ago it had no characters data type :)

Now I only have to find 8 micro actuators which to drive the tactile feeling and to connect Camera +  OpenCV + OLinuXino to make Braille reader!

The solutions are on GitHub as usual.

 

ESP8266 WIFI chips and modules arrived

ESP

Recently we blogged about the new ultra low cost UART to WIFI modules based on ESP8266 ICs. Today the WIFI modules and sample chips arrived so we can finally test them.

The low cost $5 modules focused the interest of many people. We already have translated datasheet, forum and some people even started write code for Arduino without having these modules at all :)

One problem I see is that there are no official schematic with components with values nor reference design. We are going to change this as we already got 3 different modules and the components around ESP8266 are not so many, so we will capture the schematic and make reference PCB layout in the next few days.

Hackaday.io 

ATcommands

Tutorial

Forum

Previous Older Entries

Follow

Get every new post delivered to your Inbox.

Join 528 other followers