THE FAB ACADEMY 2014

CIRO MEJIA ELIAS





Home



1. Principles and practices, Project Management


2. Computer Aided Design


3. Computer Controller Cutitng


4. Electronics Production


5. 3D Scanning and Printing


6. Electronics Design


7. Computer Controlled Machining


8. Embedded Progamming


9. Molding and Casting


10. Input Devices


11. Composites


12. Output Devices


13. Networking / Communications


14. Mechanical design


15. Machine design


16. Interface and application programming


17. Applications and Implications


18. Invention, Intellectual property, and Income


19. Project Development


Project Presentation


Embedded Programing

In this assignment we need to program "Hello World" board, created in Electronics Design assignment. It must be programmed with different programming languages ​​and environments to do something . I found it difficult to understand the C language,but I was able to practice and understand something about this language. Some guides, here:

- Basic Manual for C + + ( provided by our friend and teacher Francisco Camacho )
- C++ Software

These are the components that will be used in this task:


I tried this assignment in two environments : arduino and ardublock . Below I will explain step by step this experience:

a) Arduino IDE

This environment is easy and if you understand a bit of C + + , there is also lots of information on it. Check the following steps :

- Download the software from here.
- Download Microcontroller Attiny libraries .
- Download drivers and FabISP
- Download drivers FTDI cable

Installing the software is easy and intuitive. 



To install the libraries in the Arduino Microcontroller decompress the file and copy the content into the subfolder "Hardware" where the software is installed , it is commonly in the following path : c:\program files(x86)\arduino\hardware.



I had some problems with FabISP drivers , the operating system did not accept unsigned drivers





So I had to make some changes to the configuration of Windows 8 (Thanks to Isaac Robles for the tip ) :

  • Change PC configuration
  • General Use
  • Advanced Home
  • Reset now
  • Problem Solving
  • Advanced
  • Initial Settings
  • Reset
  • Home config
  • Press 7 (Disable the mandatory use of signed drivers )

Following these steps will be able to install the driver FabISP by the device manager.








For the FTDI Cable had no problem. 

After having installed all the necessary start our own settings in the Arduino hardware. 

  1. In the "Tools" menu, select option 44 ATtiny Card (external 20 MHz clock).

  1. Activate the serial port

  1. In the "Tools" menu, select Scheduler option USBtinyISP


After all these installations and configurations start programming the arduino based on the examples of the software itself. I tested the examples of the button and the LED and they run properly. Then I modified some values ​​in the programming so that pressing the button a few seconds turns on the LED, then turns it off. The code is as follows:



When scheduling you must take into account that the identification of the inputs and outputs of our microcontroller ATtiny44 does not correspond to the same arduino. For this there is a table in order to make the comparison, and according to this program:





After having programmed checked and compile the program:



Then load the program on our plate:



And see if it works on the sequence.



A video sequence is attached.

b) Ardublock

The first step is to obtain the software from this link.

Then you need to copy that file in the arduino folder located in the following path:




Activate the checkbox updates.



Load the "Ardublock" from the Arduino tools.






This software is easy, you just have to have logic in the construction of the diagram. There are established only objects you drag and complete the requested parameters, taking into account the inputs and outputs seen before. Take an example of the LED on and off.

We program in Ardublock and then download the code to the board and go.



Attached is a photo and video