Wednesday, March 25, 2009

What Did Deborah Sampson Accomplish

Unraveling the Mysteries ...

After much work, we finally have a stable version of the transmission program with which we work. Today we bring the first evidence of communication between the PC and microcontroller. We recommend that you take a tour of the previous entries MIDI bare to be aware of the advances that have so far.

Breadboard with test track.

Well, due to the lack of Linux drivers for serial-USB converter to use to transmit data from the PC, we work on a virtual machine running Windows XP. The application is developed in Java and use NetBeans development environment (you can download the newest version of the IDE with the new version of java here.)

The program works as follows:
  1. Open MIDI file.
  2. Decode. Discriminating
  3. message properties ON / OFF.
  4. Send messages to the microcontroller via RS232.

use the PIC18F4550 microcontroller as receiver of the data, we have no particular reason to use that model rather than the number of free pins you have, plus we already had one, maybe in the future is replaced by a microcontroller a little less "left."

As mentioned in previous entries MIDI naked, data transmission occurs serially. When you load the MIDI data to the microcontroller, the application on the PC serial port sends a string to a press note and the eighth in which it is located. This action is repeated every few minutes depending on the structure of melody charged. The microcontroller works

voltage TTL, which is why when communicating serially with a micro computer to use the MAX232 integrated circuit, the circuit changes the TTL levels to RS-232 standard in TX, and RS-232 levels to TTL RX. The typical circuit is shown in the figure below:
MAX232 Connection Diagram.

The format in which data is sent is the following
  • G4: Note the Sun in the fourth octave.
  • Y4: Note F sharp in the fourth octave. Etc.
Transmission of data from the application.

The microcontroller compares the received string and executes appropriate actions depending on the octave in which the note is received. For these preliminary tests declare an output pin for each note and ignore for now the information octaves. In each output pin connect a LED (the robot would solenoids) that shows whether or not the note is being struck.


Video of the first tests. We are happy to report that they were all satisfactory.

Child: Listen Mr. orc ... Why not try a little harder and informed PC and microphone via USB?
Orc: Why not.


Monday, March 23, 2009

Can I Play Hd Through Vga

Robot Blacksmith's Workshop

In this post we'll talk a little about how the robot will perform a musical piece. To play every note on the keyboard using 19 solenoids (7 in 12 in the harmony and melody), they are mounted on supports that can move through the entire keyboard (as they would a pair of hands). This week two blacksmiths harvested the mineral orcs of middle earth to bring the world two sills that make the role of the media.

Cut a sheet of stainless steel in two parts of 187 mm and two 100 mm, then made small cuts to facilitate assembly. The result was as follows:

view supports the solenoids

As can be seen, solenoids corresponding to the full tones dovetail assembly, such is the practical skills of blacksmiths living in Minas Morgul.

At first, due to its weight, doubted if stainless steel would be the best option to fabricate the supports, but once built, the weight proved to be acceptable, in addition, that weight can help us reduce the error of inertia that could be presented by the nature of the engines. Earrings

:
  • In the following days will be made to drill the sills that hold the solenoid to enable be bolted to them. Weld
  • all creation and a finished surface to remove imperfections.
  • will continue the same steps for the second set of actuators which will serve as harmony, the other hand will be even lighter than the other because they use less solenoids (7 per octave instead of 12 per octave).

Friday, March 20, 2009

Recovery After Laparotomy Ovarian Cyst

Standing by

punks Be patient ... was exam week and delivery of some projects, however we have been working hard on building the base and the first evidence of transmission of MIDI decoding master microcontroller robot ... climb some pictures and videos coming soon!

At the moment we leave this interesting video of the national anthem ... in jazz version!



We send greetings to all the dudes who visit us outside the Mexican Republic, in particular the MetalArgentum brothers.

Thank you all for your support!

Tuesday, March 10, 2009

Mammal And Reptile Cell Respiration

Progress of the Second Part

View more presentations from orcobot .

Monday, March 9, 2009

Is My Dog In Pain With Lymphoma

The H-bridge Indeterminacy

Our fate is quite different under The days pass and the delivery date is drawing near. So to avoid such misfortunes and dirty tricks of fate that the universe so enjoy, we decided to give up certain contingency plans.

One of the most important and unresolved in the construction of the robot is the engine that will move to the actuators. As you have seen in previous posts, we have several options:
  • stepper motor.
  • DC Motors AC Motors
We have been considering the advantages and disadvantages of each, however there are still some loose ends and some tests done. For now we set up and test in proto circuit H bridge interface to Microcontroller.

The circuit is composed of:
  • L293C
  • Optocouplers

resistors circuit is simple and functional enough for the moment we leave the diagram drawn in Multisim circuit and the template developed in Ultiboard.

bridge diagram H in Multisim.

Plan tilla Circuit.

Thursday, March 5, 2009

Tattoo Ideas For Skinny Guys

Serial Communication in Java


young druggies Hello, in this post we will talk about a very interesting topic that can be quite useful for many of you. We refer to the serial communication using JAVA programming language. At the entrance

"MIDI naked (Part 3) " define the communication between the microcontroller interface and robot master would serially. This is mainly due to the ease and simplicity of operation compared to the USB protocol.

is true that we are using a USB-Serial adapter , but for the computer that is transparent, ie, the machine is an adapter cable ordinary COM port.

Having said that, let's the interesting part. How to manipulate the flow of data through a COM port using Java? Well, first of all we must install a few libraries that can be found in www.rxtx.org

rxtxSerial Installation (www.rxtx.org) in Linux

Lower package rxtx-2.1-7 -bins-r2.zip (Final) "
librxtxSerial.so copy to / usr / lib
RXTXcomm.jar copy to [JDK-directory] / jre / lib / ext /

rxtxSerial Installation ( www.rxtx.org) in Windows

Lower package rxtx-2.1-7-bins-r2.zip (Final) "
rxtxSerial.dll copy to [JDK-directory] \\ jre \\ bin \\ rxtxSerial.dll
RXTXcomm.jar copy to [JDK-directory] \\ jre \\ lib \\ ext \\ RXTXcomm.jar

And that's it, now I just have to make sure you add the appropriate Imports to the top of its agenda. We recommend you visit the wiki RXTX project, there are a lot of information with many examples and projects to download.

Here is the example on which we rely to jump-start our user interface. This Java program shows how to write the classic "Hello World" on serial port . Remember that both a Java compiler RXTX libraries must be installed on your computer to make this application work.

Wednesday, March 4, 2009

Conceited Cocky Quotes

stepping motor

an option to control the movement of actuators via the keyboard is the use of stepper motors. The advantage of using stepper motors is the high accuracy and repeatability in terms of positioning these possess. Besides, the gods of Middle Earth have blessed us with two copies of large potential.

Motor common steps.

stepper motors are electromechanical devices that convert a series of electrical impulses in discrete angular displacements, ie they are able to move angularly depending on its control inputs (wiki) .

These motors have a torque of detention, a feature not found in a DC motor, this attribute allows the stepper motor is held firmly in place when not turning, as long as it energized.

In contrast to a conventional direct current motor, the control of a stepper motor is not performed by applying a voltage in the coils. These engines have several coils to produce a step forward, need to be fed in a particular sequence. In this way is as following a certain sequence occurs rotation of the motor and applying reverse logic ensures that the motor rotates in the opposite direction. If feeding sequence is incorrect the motor will move randomly without obtaining the expected results.

Sequence of a bipolar stepper motor.

The MC3479 is an integrated circuit designed to drive stepper motors two-phase bipolar mode. This integrated circuit is formed by a series of logic inputs, a decoding and sequencing section, two sections for handling coils engine also has the output terminal phase A.

Diagram MC3479 controller.

The operating characteristics of this IC are as follows:
  • Food: 7.2 to 16.5 V.
  • Supports up to 350 mA / coil.
  • can select the direction of the steps CW / CCW, and controls the sequence of operation Full / Half Step. Tickets
  • compatible with TTL and CMOS families.
  • get hot as hell .

Tuesday, March 3, 2009

Sample Congratulatory Messages For Weddings

MIDI naked (Part 3)

Hello everyone, this day will We have prepared an interesting update on the user interface of the robot.

As mentioned in previous posts, the Orcobot will perform musical pieces previously "loaded" in his memory. However, this process is much more complex than it seems. Try to be very clear to explain.

First, a MIDI file is loaded into the user interface, the interface is responsible for decoding and interpreting MIDI messages (see MIDI input nude 1). Once done, the values \u200b\u200bextracted from each message (statement, note, velocity, etc.) Are sent serially to the microcontroller master, which stores them in its FLASH memory.

El programa del maestro va a ejecutar las instrucciones almacenadas en memoria y buála!! Let’s Rock!!

¿Pero como diablos le vamos a hacer para entender y descifrar un archivo MIDI?

Afortunadamente, existe bastante documentación sobre este estándar y hemos trabajado mucho en comprenderlo. Además, encontramos en la red varios códigos de prueba que nos permiten hacer la decodificación e interpretación del protocolo (Ver entrada MIDI al desnudo 2 ).

Impresión de pantalla de la interfaz de usuario.

Hicimos nuestra interfaz de usuario utilizando dos de estos ejemplos basis (DumpReceiver.java and DumpSequence.java). As you can see in the picture, the decoded data are displayed in the interface, ie, we already have the notes of the song and the speed to be executed.

based programs to interface:

DumpSequence.java
DumpReceiver.java

displays the contents of a MIDI file decoded
Usage: java dumpSequence midifile
We leave pending the transmission
serial data for another entry.

Finally, we thank a very special PiKoS_NaN . Valuable help in the design process and software development made possible this interface.