Home
Workshop documents Prague May 2014
Contents
1. clearPin pin3ChangedHighToLov T clearPin Y Set PIN C Res Example 2 Reading Analogue Values Connect a Potentiomenter OD FEPPEEEVEE ERPERPEP Right lead goes to 5 V E Middle lead goes to AO Ta m OO UNO s Left leads goes to GND e Voltage at AO will vary from OV to 5V when turning HE mi gli LEE wiper turns with dial C Res Example 2 Reading Analogue Values Arduino Analog Digital Converter 10 bit gt 1024 Values Zero Volt Value O 5 Volt value 1023 Important Set periodicADCUpdate to a positive Time in miiliseconds otherwise the ADC is off Properties periodicADC Update 10 pinZMode not used pins Mode not used pini Mode not used pin5Mode not used pinbMode not used pin Mode not used ping Mode not used pindMode not used 3 pinlOMode not used pini Mode not used pinlZMode not used oinlsMode not used FEV ENEM ENEM EMEN COC COENEN er Kamau Example 2 Reading Analogue Values 5V DIGITAL PuH 10k resistor to an analog input sensor GND A voltage divider with a resistive sensor e g LDR Light dependent resistor could also be a force sensor temperature sensor etc Try to print the brightness value in the ARE Window C Xe Example 2 Reading Analogue Values Read a resistive sensor build a voltage divider R1 depends on the Sensor ac
2. 1 button toggle axis X or Y 1 button mouse click short press left click long press right click Rene Project 3 Virtual Keyboard e Realize a keyboard with scanning via the Acceleration Sensor Emi on time and or EMG input Correr Use OSKA with a keyboard grid for writing Use automatic scanning for key selection Use EMG sensor for controlling the scanning e Minimal muscle movement selects key ONSEl ey ik offset F non 0 E E Re Project 4 Environmental Control e Realize an environmental control system Speech Recognition input FS20 for controlling a 220V light Abotic door opener connected via GPO module Rene Project 5 Infrared Control Control a GhettoBlaster via IR device GUI Cellboard with automatic scanning IR Trans for infrared remote control Send commands to HiFi Stereo Radio On Off e Play Stop e Volume control e Next Previous song ec n pe Project 6 Accessible Pong Game Realize a Pong Game Interface via desired input sensors Player 1 uses Accelerometer tilting controls paddle 1 Player 2 uses WebCam Face Tracking up down movement of head controls paddle 2 Rene Project 1 Tips e Connect 3 buttons to your Digitalln as shown e Alternatively you can use an Arduino and use 3 pushbuttons a IES A Va C WA NZ EZ ra TN NV em E f J Rene Project 1 T
3. Other devices akazama i E lie Ardu Update Driver Software lt er Ports Ct ai WEI Disable y E Sound y Uninstall e For Wind 8 AB Sm ator hardware change O r N OWS 1 Universa Scan for hardware changes Properties Reboot without Driver Signature Enter shutdown r o f t OO in shell window Choose troubleshooting gt advanced options gt Startup settings gt reboot without driver signature enforcement See http www makeuseof com tag how can i install hardware with unsigned drivers in windows 8 err Guida Example 2 Using the Arduino for interfacing Breadboard connections allow flexible building test circuits the bars are connected vertically the rails are connected horizontally use cables to connect components and Arduino Pins a To TT oT OU a UI i T 4 iy T ty w aS LI 1 h dedo Wa RO T AERE DENEI E NO AX TEA YA aay MAY C Res Example 2 Connecting a LED to Arduino n Kathode Anode Connect the Anode of the Led to Pin7 positive lead usually the long leg Connect the Kathode of the Led to a 470 Ohm resistor e Connect the resistor s other end to GND 0 Volt GND C Res Example 2 Connecting a LED to Arduino Resistor 470 Ohm limits current to about 10maA to protect the LED Microcontroller can apply 5V high or OV low to a digital output Pin 9 LED Kathode connected to Ground
4. Inthe Arduino processor plugin pericsicancupdate o pin Mode not used pin3Mode input with pullup Select pin3Mode input with pullup ervas net ater Event is triggered when PushButton pinsmicas not used pin Mode not used is pressed high gt low pin8Mode er Event is triggered when PushButton a is relesed low gt high pinliMode not used pinliMode not used pinl3Mode not used eventDisplay pin3ChangedLowToHigh eventDisplay pin3ChangedHighToLow eventDisplay ENEM EEN EM EM MEM ENEM EN ENS er io Example 2 Switching a Led with a Pushbutton Switch is connected to Pin3 internal PullUp za i f LED is connected to Pin7 o E 5 n Switch Open gt LED on a Da O Switch Closed gt LED off O O IOL 4 Properties periodicADCUpdate O pin2Mode not used LT N pin3Mode input with pullup LT piniMode not used LT pin5Mode not used LT pini Mode not used LT pin Mode output default high Lr pin Mode not used LT pind Mode not used LT pini0Mode not used LT piniiMode not used LT pini2Mode not used LT pini3Mode not used LT ore ie sel Example 2 Switching a Led with a Pushbutton Events Ctrl E wf Arduino 1 Arduino 1 setPin2 clearPin2 setPin3 ied clearPins T setPind o clearPin a hd setPin5 clearPinS setPind v clearPin6 setPin pin3ChangedLowToHigl w setPin
5. Deadzone plugin Propertes Ctrl P Component Deadzone 1 4 Internal Properties Component Class Component Name Deadzone 1 Component Type asterics Deadzone Component Descriptic Defines active passive Zone for x y values 4 Properties xLenter g yCenter o radius 10 mode only outer values Kg p fcadem roj jec t 2 a possible SO luti IO n Reet Project 3 Tips Connect the EMG shield to the Arduino Attach electrodes to forearm e Use an Arduino plugin to view analog values of ADO Select an update rate of 5ms 200Hz for the Arduino ADC e Use oscilloscope to view raw singal try it out Reet Project 3 Tips e To calculate the EMG force With a Differentiate processor you to get rid of the DC offsets and slow changes in the EMG signal You can also experiment with the Filter Plugin use a MathEvaluator to get the absolute values of the signal enter abs a as expression in the MathEvaluator properties use an Averager to calculate the average of 30 samples e Use a Threshold processor to create events if the EMG force exceeds a certain level Check reasonable values with oscilloscope or BarDisplay TUR PA Project 3 m Tips gt Add a OSKAlnternalScanning plugin this launches the OSKA on screen keyboard in automatic scanning mode Upload model to ARE to update list of available keyboards Select an appropriate keyboard grid for writi
6. and noseY to mouseY ere my Example 1 Mouse Control by Head Movements e Mouse plugin properties Properties Ctrl P 4 Component Mouse l adjust xMax and yMax Bel Search to the desired values e g screen EE resolution Component Name Mouse 1 Component Type asterics Mouse enter O for xMax and yMax to enable e e incall emis automatic detection of screen resolution Component Class actuator gt 4 Properties deselect absolutePostition cn ated ld case this defines that the X and Y input values absolutePosition are relative changes gt fits the output xMin of the Facetracker component xMax 1366 yMin 0 Max 168 ere im Example 1 Mouse Control by Head Movements Input Ports e Mouse plugin Input Port rider 4 mouseX Input Port mouses 32 41 Search 4 Internal Properties Synchronise Inputs LJ Properties CHI P Input Ports 7 Event Listener Port Label synchronise Inputs Ts Part Alias Select Synchronize Inputs option aioe be PS in the Input Port Riders for both inputs Description qua mouseX and mouseY MustBeConnected 4 mouse gt this will wait for both input coordinates o O GELS EL F to arrive before the mouse position is Be Search updated 4 Internal Properties Port Label e You can try out your model by uploading E LE al it to the ARE and clicking Start Model dela PortDatalype wi D
7. DataConverters IntToString SignalShaping Deadzone SignalTranslate Event amp StringProcessing StringDispatcher x Microcontroller Arduino Needs dedicated HW OSKA or SW driver SignalPathways PathSelector C Res Example 1 Mouse Control by Head Movements e Inthis example we will show how you can control the mouse cursor via head movements We use a webcam and the FacetrackerLK sensor plugin which tracks face movements e Mouse clicks are generated via a period of inactivity no movements Note you find a similar description in the AsteRICS User manual x I 1 Pitch ke o e Roll es as wee just another Cx Mple Tora Res Example 1 Mouse Control by Head Movements How to provide headtracking controlled mouse alternatives for computer input e The x and y position of the local mouse will be controlled by the user s head movement Requirements gt A webcam Remarks Camera position directly in front of the user distance 70 120cm e No other persons face should be in the field of view of the camera Tora Xe Example 1 Mouse Control by Head Movements e Create a new model in the ACS System gt New Model Insert the FacetrackerLK sensor component Components gt Sensors gt ComputerVision gt FacetrackerLK Insert the Mouse actuator Components gt Actuators gt Input Device Emulation gt Mouse Connect ports noseX to mouseX
8. Potential lower potential GND 0 Volt usually Ground Battery minus pole ore academy E Properties periodicADCUpdate 0 Example 2 Connecting a LED to Arduino In the Arduino processor plugin s oinzMode not used i pin3Mode not used properties E pintMode not used pin5 Mode not used ii pin6Mode not used Define pin Mode output default high simimos cc pin Mode not used or output default low ea pe pinl Mode not used Use Events Listeners to set output en ees high or low turn on off pinl3Mode not used setPin clearPin6 m setPin button setPin k clearPin button clearPin m setPing clearPing setPing clearPing setPin10 SCN EMENEN ENEM CN CN ENEN KIENS 0 Xe Example 2 Connecting a PushButton to Arduino Pe NS UENO Oooo Connect one side of e switch to GND and the uniao other side to Pin 3 J These two legs are connected 7 So are these two legs e When switch is pressed all 4 leads connected Is Po 0 Xe Example 2 Connecting a PushButton to Arduino academy Microcontroller can measure voltage high or low at a digital input Pin J These two legs are connected So are these two legs 5V Resistor pulls Pin voltage to 5V high if the switch is not pressed Button connects Pin to OV low T if pressed ere Be seal Example 2 Connecting a PushButton to Arduino ia Properties
9. Rene As TeRICS Workshop HandsOn Part Soe Th ds gt In this Workshop we will use the As TeRICS System First we make sure that everybody has ARE and ACS installed Then we will build some easy models together e After that you can choose an Assistive Technology project and build it together in small groups Welcome arc a Xe The Basics e AsTeRICS can be downloaded from the official site htto www asterics org e The latest source code is available at GitHub httos github com asterics As TeRICS e ACS is the graphical editor which sends models with connected plugins to the ARE the runtime environment e Documentation is avaliable User Manual with step by step model creation guide Developer manual for creating new plugins Use Fl in ACS when plugin is selected to display plugin help e Let s start ACS and ARE and have a look r spre s Xe Some useful plugins short examples e Sensors e Actuators Audio WavePlayer SoeechSyntheziser GUI ButtonGrid Slider Cellboard cd salah IA KADA QUI Oscilloscope BarDisplay NISHAI PEA E EventVisualizer Simulation SignalGenerator Timer HomeControl FS20 IRTrans ComputerVision FaceTrackerLK Generic Digitialln Analogln InputDeviceEmulation Mouse Keyboard e Processors Audio amp Voice Speechprocessor BasicMath MathEvaluator Threshold Averager Constant Dispatcher Comparator Differentiate Integrate
10. USB J LAN COMI 7 come com3 7 coma ditional COM Ports Free Device String E Onl Check 1st LAN Device on startup 7 No USB Reconnect Startup Delay 20000 ms R5232 Baudrate 38400 IRServer Debug Options Loglevel Loglevel 0 Off Show RCV Timing C Show Send Timing 7 Show Hexdump C Show Timestamp General IRServer options XBMC Support W Start Web Interface W Start LIRC Interface IRDB Translator via SEUS Lo IR5erver Commandline Options Save 4 Restart J Save Settings ere academy Project 5 Tips Test sending IR codes Right click on IRTrans symbol in system tray Select Send IR Code Select asterics as remote configuration Select a command Click on Send IRServer Parameter IP Assign LAN Only IR Config USB WIFI IR Datenbank neu laden IRServer beenden IRServer neu starten Diagnostics Loglevel 0 Off Detected IR Commands IR Code lernen IR Code senden gt Device Status Device Datenbank IR Translation HTML Seiten IR Hexcode abrufen Analog Inputs Uber Exit ere Properties Ctrl P academy Component CellBoard 1 Project 5 Tips d Internal Properties Component Name CellBoard 1 Component Type terics CellBoare Component Descriptic GUI component Component Class The CellBoard plugin can be used to make a button matrix with scanning 4 Properties caption Cell Board selec
11. 1 Properties Ctri P Component F3205ender 1 EE 4 Internal Properties Component Name Component Type Component Descriptic Component Class d Properties Housecode Address F6 05ender 1 Sends FS20 commands 11111111 1111 d Tora E Ses Project 4 Tips In the event editor of FS20Sender map recognized commands with FS20 actions off Switch off device onLeveli onLevel16 Switch on device to a certain level toggle Toggles switching on off Events Ctrl E FS 0Sender 1 off oft onLevell onLevel onLevels onLevel4 onLevel5 onLevelb onLevel onLevel8 onLevel onLevellQ onLevelll onLevell onLevell3 onLevell4 onLevell5 onLevell6 onLevell6 ontldLevel toggle dim SpeechProcessor 1 recognizedCommand4 vy recognizedCommands m a 0 E Res Project 4 a possible solution ere academy Project 5 Tips Requirements e Arduino Connect push button as shown in Arduino slides use Internal pullup resistor e IRTrans device Install IRTrans driver and SW from http www irtrans de de download windows php Copy asterics rem remote configuration file to C ProgramData IRTrans remotes Start IRTransServer exe Right click on IRTrans symbol in system tray and choose Startup Parameter Select USB and Save amp Restart Startup Parameter IP Assign IRConfig USB WiFi IR Server starten Uber Exit
12. I GUI Designer Ctrl G Deployment Ctrl D e Upload Model and Start Model to try it out C Res Example 1 Mouse Control by Head Movements academy Further improvement tip e Ifthe mouse cursor is jittering a lot use an averager Components Processors Basic Math Averager with a BufferSize of 5 after Facetracker Outputs C Res Example 1 Mouse Control by Head Movements a ene Academy Example 2 Using the Arduino for interfacing Based on Atmel ATmega328 6 Analog Input Pins 14 Digital I O Pins 32 KB Flash Memory 2 KB SRAM 1 KB EEPROM 16 MHz Clock Speed TE e g o a 6 r d ja am azi Special Firmware supports ARE plugin Processors gt Microcontroller Interface gt Arduino C ree Example 2 Using the Arduino for interfacing academy Device Manager File Acton View Help e s ml alH mlel Ee N G a g USET PC Installation of COM Port Attach Arduino to USB Port Driver must be updated in Device manager to get COM Port Select location of Arduino inf folder CIMs Arduino driver Click Install this driver software anyway y k Computer E Disk drives gt MS Display adapters gt DVD CD ROM drives gt e Human Interface Devices gt og IDE ATA ATAPI controllers EB Keyboards gt P Mice and other pointing devices gt Monitors gt EF Network adapters
13. ademy C Xe Example 2 Control Led with Sensor e Try Switch LED on if Sensor value reaches threshold O O e O O O er academy COMPOR LESCIPLU AFOUINO MICTOCONTONer LLM 4 Properties periodicADCUpdate pin2Mode pin3sMode pind Mode pin5Mode pin Mode pin Mode pin Mode pini Mode pinlOMode pinliMode piniZ2Mode pini3Mode Example 2 Control Led with Sensor d Properties o O condition a greater threshold ET matused cutputMode output a if condition met not used eventMode create event only if conditic 7 not used threshold 800 not used threshold 10 not used output default low not used not used not used not used not used not used e e fa fa fo fofa fa fa fa fa fa Comparator 1 e clearPin conditionFalse av Xe Hands On Projects HANDS ON e Select a project and solve it in small groups We have some sets of hardware which can be used e 6 Project topics are available Re Project 1 Digitally controlled Mouse e Realize a fully working mouse with 3 push buttons 2 buttons left right or up down pressing both buttons selection of axis X or Y 1 button mouse click short press left click long press right click on Xe Project 2 Analog controlled Mouse e Realize a fully working mouse with 2 push buttons and 1 potentiometer potentiometer cursor movement with 2 directions e g X X
14. ect 6 Tips Add the Ponggame actuator and select the mode position Input values of 0 300 are accepted for the paddles The output of the used sensors must be adjusted to match this range of O 300 to control the paddles start event must be connected this event could be generated via a GUI element eg ButtonGrid plugin Add an Accelerometer sensor for paddle1 Use a SignalTranslation processor to map the range of the yAcc output 8192 8192 to 0 300 4 Properties inMin inMax outMin outMax 8192 8192 300 Reet Project 6 Tips e Add the FacetrackerLK sensor plugin The output represents head movements relative changes of postion Use the nose Y output port for up down movement Use a MathEvaluator to invert scale the movement values as desired e Add an Integration processor to accumulate the relative changes of the head movements This creates an absolute position for the paddle 2 control Set upperLimit and lowerLimit of the Integrator to 300 0 4 Properties resetValue 150 upperLimit 300 lowerLimit 0 wrapAround LI Res D roj jec t6 a possible SO luti IO n
15. eechProcessor 1 4 Internal Properties mponent Name Co Component Type Component Descriptic Co omponent Class 4 Properties speechPracessor 1 This plugin allows to genereate recognitionContidence 0 5 activationCommand deactivationtommano helpCommand mode commandi command commands command4 command commands renee la computer listen computer stop computer help Open door Close door Switch on light Switch off ligh Lo re academy Rene Project 4 Tips The DigitalOut plugin expecis action strings set clear toggle and press The command has to be followed by a comma and the port number for example DIGITALOUT set 1 or DIGITALOUT toggle 2 The press command toggles the given output port two times with a delay of 500ms StringDispatcher can be used to construct the string Properties Ctrl P Component StringDispatcher 1 Bg search d Internal Properties mpomnent mpomnent ai Ca a Wa omponent omponent d Properties delay slotl slot slots Name Type Descriptic Class stringDispatcher 1 Send test from chosen s b 300 DIGITALOUT press aih C E Ses Project 4 Tips Enter the housecode and address of the target device in the FS20Sender properties Our FS20Receiver Power Switch is already configured to housecode 11111111 and address 111
16. escription MustBeConnected C Xe Example 1 Mouse Control by Head Movements e No clicking function implemented yet e gt gt further development Add dwell clicking e Adding processing component Deadzone Components Processors Signal Shaping Deadzone Connect noseX noseY outputs of the FacetrackerLK to the inX inY inputs of the Deadzone 0 Xe Example 1 Mouse Control by Head Movements Use the Deadzone component to define a desired movement level to start or stop the timing for the dwell click e Deadzone component fade out x y signal values in an adjustable range and generate event trigger if the x y values are in or outside this range e Parameter radius defines this range gt here it is the amount of nose movement e Leave the radius at the default value of 10 Properties Ctrl P l Component Deadzone l Bg search d Internal Properties Component Name Deadzone l Component Type rics Deadze Component Descriptio Defines active passive Z Component Class 25501 4 Properties xLenter 0 yCenter 0 radius 10 mode only mner values ere lasm Example 1 Mouse Control by Head Movements e Default value 10 movement range is set to 10 pixels from previous to current position e Select Synchronize Inputs option in the Input Port Riders of the Deadzone plugin for inX and inY Input Ports a INA Por
17. g re il Cm m 4 Internal Properties Component Name Component Type Component Descriptic d Properties min max default autosend caption majorTickSpacing minorlickSpacing alignment fontSize Mouse Speed pa m im a slider GUI element which provide 0 100 50 x Mouse Speed 20 LO horizontal 14 Pih PE della Tora Res Example 1 Mouse Control by Head Movements e To modify the x y mouse speed with the slider s values a MathEvaluator processing component is needed Components Processors Basic Math MathEvaluator e First the x signal is modified Delete port connection from nose to mouse Draw new port connection from value Slider to nA MathEvaluator Draw new connection from nose Facetracker to inB MathEvaluator Draw a new connection from output port MathEvaluator to mouse input port ere my Example 1 Mouse Control by Head Movements e MathEvaluator properties Adjust expression property of the MathEvaluator this defines what will be done with the inputs in our case we will multiply inA and inB Slider position lt 50 shall slow down mouse speed slider positions gt 50 shall increase mouse speed gt a 50 b Properties Ctri P Component MathEvaluator 1 4 Internal Properties mponent Name MathEvaluator 1 omponent Type asterics Mat
18. hEvaluator ihi be eh Li i 1 i Eee mponent Descriptic Mathematical expression omponent Class processo iai bi am i l l Ean d Properties expression a 50 b rior C o ry G en academy Example 1 Mouse Control by Head Movements e For modifying the y signal copy and paste Ctrl C amp Ctrl V the MathEvaluator e New connections as for the x direction Delete port connection from noseY to mouseY Draw new connection from value Slider to inA of the second MathEvaluator Draw new connection from noseY Facetracker to inB of the second MathEvaluator Draw a new connection from output port of the second MathEvaluator to mousey input port C Res Example 1 Mouse Control by Head Movements Tora Res Example 1 Mouse Control by Head Movements Adding different mouse click activities via GUI by adding a ButtonGrid to select next click type Informing mouse element about the next desired mouse click by sending an action string to the Mouse element Action strings contain commands which are understood by a number of specialized actuator elements These string contain the addressed component and the desired command e g MOUSE nextclick right Tora Res Example 1 Mouse Control by Head Movements Add the ButtonGrid component Component Sensors Graphical User Interface ButtonGrid ButtonGrid properties Set buttonCaption prope
19. ips e To generate 1 right click with the Mouse actuator you can send the string MOUSE nextclick right to the action input port Use a StringDispatcher processor to send desired strings to other plugins see HeadMouse example Properties Ctrl P A Component StringDispatcher 1 4 Internal Properties Component Class Processor Component Name StringDispatcher 1 Component Type asterics StringDispatcher Component Descriptic Send test from chosen slot 4 Properties l delay 300 slotl MOUSE nextclick right slot zlat Reet Project 1 Tips e Use a Timer sensor to detect a long button press e Ifthe button is held for a desired time defined in the properties the timer can send an event e Attach Events from the Digitalln to the Timer plugin so that Pressing the button starts the timer Releasing the button stops and resets the timer The example shows events from a button connected to Digitalln 3 reset insHigh reset r Events Ctrl E wo Timer 1 2 Digttalln 1 start in3 Low start pm stop in5High stop academy Project 1 Tips Use a ConstantDispatcher processor Properties Ctrl P to create movement Send negative value 1 to Mouse actuator x y for up left end positive value 1 to Mouse actuator x y for right down Component ConstantDispatcher 1 A Coaarh 7 SaLi d Internal Properties Compone
20. ng for example keyboards writing abc xml Select scan speed 4 and highlightStyle InvertKeys 4 Properties port 4546 title OSKA keyboard oskaPath oska start keyboard exe keyboardPath keyboards writing abc xml Ly scanSpeed 4 He highlightStyle InvertKeys F settingsFile settings internal_tcp kst LO windowDecorated x resizeEnabled LI Re D roj jec t3 a possible SO luti IO n Rat Project 4 Tips Requirements e Abotic Door Opener http abotic com en DigitalOut module Plug In Abotic Door Remote to DigitalOut port 1 e Voice recognition Microphone Check signal level Microsoft Speech Platform Server version 11 the SR language and the TTS language pack must be installed too http www microsoft com en us download details aspx id 2 225 e FS20Sender device htto www elv at fs20 funkschaltsystem html academy Docking Mic Realtek High Definition Audio Sense vende microphone External Mic Realtek High Definition Audio a Nicht angeschlossen Mikrofon Realtek High Definition Audio Bereit konfigurieren Als Standard Eigenschaften Lo Select the recognition language In the mode always active the recognition is performed continuously command1 commandN Enter voice commands Properties Ctrl P Project 4 Tips Check the signal level of the Component Sp
21. nt Class Component Name ConstantDispatcher 1 Component Type asterics ConstantDispatcher Component Descriptio Send double values from chosen slot 4 Properties number 2 delay 300 slotl 1 slotz 1 slots 0 slot d Rene Project 1 Tips Dispatch up left or right down movement via connected pushbuttons here Digitalln Pins Events Ctrl E ConstantDispatcher 1 Digitalln 1 dispatchSlotl inSLow x dispatchSlotl dispatchSlot2 in6Low x dispatchSlot2 dispatchSlot3 inSHigh dispatchSlot3 in6High dispatchSlot3 X met com Project 2 Tips a ams orou EEE oco u nono n oco ogh unnum a d kaa Rene Project 2 Tips e Different value ranges of mouse movement and Arduino ADC Mouse relative positive and negative values ADC absolute only positive values 0 1023 12bit e Solution SignalTranslation plugin Component SignalTranslation 1 4 Internal Properties Po Component Class processor Component Name SignalTranslation 1 Component Type astercs SignalTranslation Component Descriptic Translates signals from a certain input range to an output range d Properties inilir O inhMax 1023 outMin 63 outidax 64 Rene Project 2 Tips It s hard to find the exact centre of the potentiometer gt the Cursor is always moving We need a window around the centre where the cursor does not move gt
22. rties of button 1 2 and 3 to e RightClick e DoubleClick e DragClick 4 Properties Choose horizontalOrientation caption Next mouse click is a for the ButtonGrid norizontalOrientation x lt buttonCaptioni Right Click Set a desired caption buttonCaption2 Double Click e g Next click is a buttonCaption3 Drag Click buttonCaption4 hettan metros A Tora Res Example 1 Mouse Control by Head Movements Add the StringDispatcher component Component Processors Event and String Processing StringDispatcher Translates incoming events into outgoing strings If buttons are pressed desired actions strings are generated for the Mouse components Connect event trigger port of ButtonGrid purple to the event listener port of the StringDispatcher green e Click on the event channel and attach button to dispatchsSlott button2 to dispatchSlot2 buttons to dispatchSlot3 Tora Res Example 1 Mouse Control by Head Movements e Define the strings for sloti slot3 in the StringDispatcher properties Slot1 button1 MOUSE nextclick right Slot2 button2 OMOUSE nextclick double Slot3 button3 MOUSE nextclick drag e Connect output port of the StringDispatcher to the action input port of the mouse C Reet Example 1 Mouse Control by Head Movements e Change to GUI Designer tab to define a desired position for the ButtonGrid Possible positions
23. t Label synchronise Inputs Port Alias PortDatalype double E Description Input port for x value MustBelonnected Pd int Input Port inf Ba Search 4 Internal Properties Port Label synchronise Inputs Port Alias PortDatalype double Description Input port for y value a MustBeConnected d radius C Xe Example 1 Mouse Control by Head Movements e How can we measure a certain timespan of low movement to generate a dwell click gt gt Insert a Timer sensor component Sensors Simulation Timer this component measures time generates events if a time period has passed perfoms timing loops Set time period to 1000 in the components properties C Res Example 1 Mouse Control by Head Movements Connect event trigger port of the Deadzone component purple to the event listener of the Timer component green e Click on the event channel connection line is now purple dotted gt Events can be selected from dropdown menu Tora Res Example 1 Mouse Control by Head Movements e Select enterZone event for the start function Select exitZone event for the stop and reset function These event connections control the Timer components f nose movements stay below selected level of 10 pixels the Timer is started Else the Timer is resetted to O and stopped If the movement stays low for the full time period the timer will genera
24. te its periodFinished event Events Ctrl E Timer 1 start start stop stop reset reset Deadzone l enter one exitZone ExitZone C Res Example 1 Mouse Control by Head Movements Draw a channel from the Timer s event trigger port purple to the event listener port of the Mouse green 0 Xe Example 1 Mouse Control by Head Movements e By clicking on the new channel line is now purple dotted the Events can be adjusted Events Ctrl E I e Assign the periodFinished event to the leftClick function Mouse 1 Timer l leftClck leftClick middleClick rightClick After these settings the model is PEPEE usable and provides left click PEE dragRelease wheelDown center activate deactivate ATA TAPA DATA JAJA JA pa pa 4 wheelUp toggle C Ret Example 1 Mouse Control by Head Movements Include GUI elements for adjustable mouse acceleration and dwell timing as well as different click actions ere academy Add a Slider component Components Sensors Graphical Example 1 Mouse Control by Head Movements User Interface Slider slider properties range of value can be defined we can leave it at 0 100 set slider s component name to Mouse Speed set minorTickSpacing to 10 Properties Ctri P Component Mouse Speed a o y pm
25. tion textColor olack P l backgroundColor darkgray scantolor red scanMode row column highlights ene rows first then colums hoverTime o cellTextl start Selections are done via the scanSelect event listener Enter caption and or image for every used button Use a Timer plugin to trigger scanMove events periodically celllmagel actionlTextl cellTexto celllmaqge2 actionlext2 cellText3 celllmage3 actionlext3 cellText4 celllmage4 actionlext4 cellText5 celllmages actionlext5 cellText6 celllmage6 actionlext6 celText AOSKA images homecontrol next png stop orevious vol up vol down Molle a a fa fa a 0 m laws Project 5 Tips Use default hostname and port to connect to the local IR Trans e prestring selects the remote control configuration to use note the comma at the end gt sendi sendN Enter the configured stored IR codes Properties Ctri P Component IrTrans l d Internal Properties Component Name Component Type Component Descriptic Component Class d Properties hostname port prestring send send sends send4 sendi send send send senda ol mi IrTrans 1 Infrared Transmission Module interfaces to the ocalhost 21000 snd asterics rc play rc stop re back rc forward rc volume up rc volume down rc operate Reet _ Project 9 a possible solut roj jec t 5 a possible SO luti IO n Reet Proj
Download Pdf Manuals
Related Search
Related Contents
IC mInI, mInI Crystal Samsung SMART CAMERA DV150F Manuel de l'utilisateur CP44-3 Weldmatic 335 Internal Feeder Manual Solicitud de cambio de datos generales HEAT PUMP SPECIFICATIONS Copyright © All rights reserved.
Failed to retrieve file