Weekend Programming Challange – Week #65 PCB resistance calculator

pcb3

Make PCB track resistance calculator which takes these input parameters:

  • track width  in units: (mm) or (mils)
  • track thickness in units: (mm) or (mils) or (oz per sq.ft)
  • track length in units: (mm) or (mils)
  • number of vias this track goes through
  • vias plating thickness in units (mm) or (mils)
  • vias drill diameter in units (mm) or (mils)

and displays resistance in Ohms.

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 21th.

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 #97 prize is A20-OLinuXino-LIME2

A20-OLinuXino-LIME2-1

A20-OLinuXino-LIME2 is dual core board with 1GB RAM and Gigabit Ethernet.

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 22nd 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!

Updated Tizen Common Image for A20-OLinuXino-MICRO and Other Sunxi Devices

Tizen-Common-Wayland-Arm-Sunxi

Leon Anavi created image for Tizen:Common for A20-OLinuXino-MICRO.

via TizenExperts

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:

 

 

Previous Older Entries

Follow

Get every new post delivered to your Inbox.

Join 529 other followers