pages
home
compiler logo
code compiler
electronics
notes about electronics
laboratory
laboratory
Processing logo
Processing code compiler
Theremino logo
Theremino code compiler
logggin Arduino
accedi o esci

tutorials Arduino

lights Arduino

my first led turns on

led's games

an electronic dice

traffic lights

candle effect

fading effect

red-green-blue 1

red-green-blue 2

7-segment display - Countdown

7-segment display bis

sensors

sensors

Sensor and serial port

sensor PIR

ultrasonic sensor

sound

Theremin

a melody

build a note

switches

buttons

keypad

input via serial port

input via serial port 2

input remote control

input remote control 2

use of variables

custom functions

servos

a robot

a remote-controlled robot

elettronica

mechanics

inglese Italian

handbook

pins

connections

resistors

Scarica Adobe Flash Player

remarkable sketches

remarkable circuits

Arduino pins

error messages

tables

colour's tables

electrical simbols

referenze on-line

reference Arduino

reference Processing

link

www.arduino.cc

fritzing.org/projects

processing.org

links

hardware

base kit

facilitated kits

advanced kits

Theremino

Arduino begins the workshop

review a workshop carried out

my account

info

link

contacts

Theremino

Theremino
Theremino
sommario: to begin
fast actions
HAL
table pin
programming languages
robotic arm
sonorous tomatoes
Arduino and Theremino
Theremino System


introduzione

Theremino Theremino is a different system from Arduino, it can be complementary to it. Even this little board with its software opens up new possibilities for teaching.

On this page some notes. We attempt to enclose all in a single page to show the simplicity of this new system.
Please refer to the official website for further information and more details www.theremino.com

how to begin


*All Theremino apps are portable application. A portable standalone application does not leave its files or settings on the host computer

fast actions:


led's games Arduino

servos Arduino

reading from sensors Arduino Arduino Arduino Arduino



HAL

Arduino
here the download: --> link
--> help

few things to know:




Arduino


pin's table
pin description type examples notes
Dig_out Digital output OUTPUT turn on a LED 3.3 Volt 18mA
Pwm_8 Pwm_16 output PWM (Pulse Width Modulation) OUTPUT average voltage variable. A LED can be directly connected and its light can be adjusted from zero to maximum 3.3 Volt 18mA
Servo_8 Servo_16 servo commands OUTPUT servo commands 3.3 Volt 18mA
Dig_in_pu Dig_in Digital input INPUT buttons
Adc_8 Adc_16 analog voltage input INPUT potenziometers
Cap_8 Cap_16 measuring small capacity, in the order of picofarads INPUT capacitive keypads, tomatoes, apples
Res_8 Res_16 to measure the resistance value of a sensor INPUT Variable Resistors
Counter_pu Counter Counter INPUT
Fast_counter_pu Fast_counter Fast counter INPUT
Period_pu Period measure the period of a repetitive waveform INPUT
Usound_sensor ultrasonic distance sensors INPUT ultrasonic distance sensors
CapSensor_HQ to measure the distance of a conductive object INPUT to measure the distance of a conductive object (typically an hand)


http://www.theremino.com/en/technical/pin-types/


→ uses 8 bits for the transmission of data if you don't need of high precision
→ types with pullup, its name ends with "_pu", allow to connect a device without pullup resistors.
→ To facilitate connections and modular system Theremino transforms all raw values ??in a "range" standard from 0 to 1000




programming languages




--> example: Visual Basic
--> example: C#



Arduino arduinoarduino Theremino ThereminoTheremino Theremino ThereminoTheremino
sends to the Pin DigitalWrite(1,HIGH)
AnalogWrite(1,125)
WriteSlot(1,1000);
WriteSlot(1,500);
WriteSlot(1,1000)
WriteSlot(1,500)
reads from Pin DigitalRead(1)
AnalogRead(1)
ReadSlot(1); ReadSlot(1)
setup void setup(){
pinMode(1,INPUT);
}
the setup is in HAL
main loop void loop(){
...
}
static void EseguiConPause() {
...
}
Sub PausableExecution()
...
End Sub
pause delay(200); PausaMS(200); PausaMS(200)
conditional if(x>125) {
...
}
if x>125
...
End if
repeat a loop for(int i=1;i<=3;i++){
...
}
for i1 as int32=1 to 10
...
Next
variables int x=100; dim x as Integer=100
float x=100.23; dim x as single=100.23








examples:

blink


 arduino
 arduino
void setup(){ 
	pinMode(13,OUTPUT);
} 
void loop(){ 
	digitalWrite(13,HIGH);
	delay(500);
	digitalWrite(13,LOW);
	delay(500);
 }
arduino
Theremino
static void EseguiConPause(){
	 	WriteSlot(1,1000);
 		PausaMS(500);
 		WriteSlot(1,0);
		PausaMS(500);
 }
arduino
Theremino
Sub PausableExecution()
	  For i1 As Int32 = 1 to 10
	 	WriteSlot(1,1000)
 		PausaMS(500)
 		WriteSlot(1,0)
		PausaMS(500)
	  Next
End Sub



reading sensors

 arduino
 arduino
void setup(){ 
	pinMode(a1,INPUT); 
	pinMode(2,OUTPUT); 
	pinMode(3,OUTPUT); 
	pinMode(4,OUTPUT); 
	pinMode(5,OUTPUT); 
} 
 void loop(){ 
	X=analogRead(a1);
	if(X>=0 && X<=62){ 
		digitalWrite(2,HIGH);
		digitalWrite(3,LOW);
		digitalWrite(4,LOW);
		digitalWrite(5,LOW);
	} 
	if(X>62 && X<=125){ 
		digitalWrite(2,HIGH);
		digitalWrite(3,HIGH);
		digitalWrite(4,LOW);
		digitalWrite(5,LOW);
	} 
	if(X>125 && X<=187){ 
		digitalWrite(2,HIGH);
		digitalWrite(3,HIGH);
		digitalWrite(4,HIGH);
		digitalWrite(5,LOW);
	} 
	if(X>187 && X<=255){ 
		digitalWrite(2,HIGH);
		digitalWrite(3,HIGH);
		digitalWrite(4,HIGH);
		digitalWrite(5,HIGH);
	} 	
 }
 


arduino
Theremino
 static void EseguiConPause(){
	float X=ReadSlot(1);
	if(X>=0 & X< 250){
		WriteSlot(2,1000);	
		WriteSlot(3,0);
		WriteSlot(4,0);
		WriteSlot(5,0);
	}	
	if(X>=250 & X< 500){
		WriteSlot(2,1000);	
		WriteSlot(3,1000);
		WriteSlot(4,0);
		WriteSlot(5,0);
	}	
	if(X>=500 & X< 750){
		WriteSlot(2,1000);	
		WriteSlot(3,1000);
		WriteSlot(4,1000);
		WriteSlot(5,0);
	}
	if(X>=750 & X<=1000){
		WriteSlot(2,1000);	
		WriteSlot(3,1000);
		WriteSlot(4,1000);
		WriteSlot(5,1000);
	}
}
 


arduino
Theremino
Sub PausableExecution()
	Dim X as single=readSlot(1)
	If X>=0 and X<=250 then
		WriteSlot(2,1000)
		WriteSlot(3,0)
		WriteSlot(4,0)
		WriteSlot(5,0)
	End if
	If X>250 and X<=500 then
		WriteSlot(2,1000)
		WriteSlot(3,1000)
		WriteSlot(4,0)
		WriteSlot(5,0)
	End if
	If X>0 and X<=750 then
		WriteSlot(2,1000)
		WriteSlot(3,1000)
		WriteSlot(4,1000)
		WriteSlot(5,0)
	End if
	If X>750 and X<=1000 then
		WriteSlot(2,1000)
		WriteSlot(3,1000)
		WriteSlot(4,1000)
		WriteSlot(5,1000)
	End if
End Sub

robotic arm Arduino

working in progress

Scarica Adobe Flash Player





http://it.emcelettronica.com/robot-arm-braccio-robotico-economico-con-meccanica-essenziale


In "Arm properties" set lenghts of four links LenX, LenY e LenZ. In cells "Delta" set the angles of the links.

Arduino


sonorous tomatoes Arduino



as the Makey Makey


Arduino

Arduino





Arduino and Theremino

work in progress

Theremino System

Theremino Theremino is an Open Source system for teaching and scientific applications, which allows the PC to interface with the outside world. There are many examples, from the simple (turn on an LED), to complex scientific applications (gamma spectrometry). Can be measured, with cheap sensors, each type of physical quantity, temperature, radiation, magnetic fields to chemical compounds. And you can control servos, motors, LEDs and lamps, ovens, solenoid valves, relays, process controls, robots, etc..
Unlike similar systems (eg Arduino), the system works just turned on and does not require programming the firmware.
Theremino
www.theremino.com





19 euro the price of the board. www.ideegeniali.it/shop/16-theremino



indietro torna all'indice avanti esci logout Licenza Creative Commons

Ultima modifica: Agosto 2016