Dagen a tifi

745 views

Published on

Presentation hel

  • Be the first to comment

Dagen a tifi

  1. 1. VIL DU LAGE EN ROBOT? A L E K S A N D E R G R A N D E - K N O W I T Wednesday, October 27, 2010
  2. 2. Wednesday, October 27, 2010
  3. 3. w00t! Wednesday, October 27, 2010
  4. 4. UTVI KLIN GS PLAT FOR MER 1. Wednesday, October 27, 2010
  5. 5. µC?! Wednesday, October 27, 2010
  6. 6. “A microcontroller (also microcomputer, MCU or µC) is a small computer on a single integrated circuit consisting internally of a relatively simple CPU, clock, timers, I/O ports, and memory.” (wikipedia) Wednesday, October 27, 2010
  7. 7. ARD UINO Billig Enkel AVR Shields Wednesday, October 27, 2010
  8. 8. MSP- 430 BILLIG! IDE Strøm- gjerrig Fin start Wednesday, October 27, 2010
  9. 9. “REN AVR” BILLIG! Skredder- sydd AVR- Freaks Back to basics Wednesday, October 27, 2010
  10. 10. NETD UINO Kjører .net™ IDE Høøøøy- nivå Shields Wednesday, October 27, 2010
  11. 11. ARDUINO FTW! Wednesday, October 27, 2010
  12. 12. ARD UINO IDE Wednesday, October 27, 2010
  13. 13. TALK TO ME BABY 2. Wednesday, October 27, 2010
  14. 14. Seriell I2C XBee Ethernet/ WiFi LØSNI NGER Wednesday, October 27, 2010
  15. 15. Seriell I2C XBee Ethernet/ WiFi LØSNI NGER Wednesday, October 27, 2010
  16. 16. ARDU INOvoid setup(){ Serial.begin(115200); } void loop() { Serial.println("Hello dagen at ifi!"); if (Serial.available() > 0) { char incomingByte = Serial.read(); Serial.print("I received: "); Serial.println(incomingByte); } delay(1000); } Wednesday, October 27, 2010
  17. 17. FRA JAVA import java.io.InputStream; import java.io.OutputStream; import gnu.io.CommPortIdentifier; import gnu.io.SerialPort; import gnu.io.SerialPortEvent; import gnu.io.SerialPortEventListener; import java.util.Enumeration; public class SerialTest implements SerialPortEventListener { SerialPort serialPort; private static final String portName = "/dev/ttyUSB0"; private InputStream input; private OutputStream output; private static final int TIME_OUT = 2000; private static final int DATA_RATE = 115200; public void initialize() { CommPortIdentifier portId = null; Enumeration portEnum = CommPortIdentifier.getPortIdentifiers(); while (portEnum.hasMoreElements()) { CommPortIdentifier currPortId = (CommPortIdentifier) portEnum.nextElement(); if (currPortId.getName().equals(portName)) { portId = currPortId; break; } } try { serialPort = (SerialPort) portId.open(this.getClass().getName(),TIME_OUT); serialPort.setSerialPortParams(DATA_RATE,SerialPort.DATABITS_8,SerialPort.STOPBITS_1,SerialPort.PARITY_NONE); } catch (Exception e) { System.err.println(e.toString()); } } Wednesday, October 27, 2010
  18. 18. FRA JAVApublic void writeMessage(String message){ try{ output.write(message.getBytes()); }Catch(Exception e){ System.out.println("Got error while writing, error was:"+e.getMessage()); } } public String readMessage(){ byte[] readBuffer = new byte[200]; try{ while (input.available() > 0) { int numBytes = inputStream.read(readBuffer); } }catch(Exception e){ System.out.println("Got error while reading, error was:"+e.getMessage()); } return new String(readBuffer); } Wednesday, October 27, 2010
  19. 19. FRA C#private static System.IO.Ports.SerialPort serialPort1; static void Main(string[] args) { System.ComponentModel.IContainer components = new System.ComponentModel.Container(); serialPort1 = new System.IO.Ports.SerialPort(components); serialPort1.PortName = "COM4"; serialPort1.BaudRate = 115200; serialPort1.Open(); if (!serialPort1.IsOpen) { Console.WriteLine("Oops"); return; } serialPort1.DtrEnable = true; } Wednesday, October 27, 2010
  20. 20. FRA C#private void writeMessage(String message){ using(serialPort1){ serialPort1.Write(message); } } private String readMessage(){ using (serialPort1){ return serialPort1.ReadExisting(); } } Wednesday, October 27, 2010
  21. 21. FRA PYimport serial ser = serial.Serial('/dev/ttyUSB0', 115200) message = "dagen"; ser.write(message) message = ser.readline() Wednesday, October 27, 2010
  22. 22. NUTS AND BOLTS 3. Wednesday, October 27, 2010
  23. 23. adafruit.com sparkfun.com eBay.com farnell.com robotshop.us make.com electrokit.se lawicel.se estore.ti.com deal extreme.com dfrobot.com jameco.com evilmad science.com robonor.no elfa.se Wednesday, October 27, 2010
  24. 24. hackaday.com arduino.cc roboticsblog .org avrfreaks.net make.com hacked gadgets.com todbot.com hacknmod .com chiphacker .com youritronics.c om esawdust.com /blog/ e2e.ti.com elektronika.ba robonor.no knowitlabs.no Wednesday, October 27, 2010
  25. 25. knowitlabs.no Wednesday, October 27, 2010
  26. 26. TRON BOT 4. Wednesday, October 27, 2010
  27. 27. TRON BOT Arduino Ultra- sonisk Nevralt- nettverk Scala Wednesday, October 27, 2010
  28. 28. NN Simulerer hjernen Nevroner Lagdeling Input/ output Input1 Input2 Input3 Input4 Input5 Output1 Output1 Wednesday, October 27, 2010
  29. 29. NNAktivering Wednesday, October 27, 2010
  30. 30. GEN ALG Mange nevroner Start Random Test/ muter Rinse and repeat Wednesday, October 27, 2010
  31. 31. Kommando Sensordata Wednesday, October 27, 2010
  32. 32. Funker det da? Wednesday, October 27, 2010
  33. 33. VID EO Etter 30 min Wednesday, October 27, 2010
  34. 34. VID EO Etter 1t+ Wednesday, October 27, 2010
  35. 35. PRO BLEM Tar lang tid Bør overvåkes Simu- lering Genetisk algoritme Wednesday, October 27, 2010
  36. 36. Images used in presentation: http://www.flickr.com/photos/flysi/ http://www.flickr.com/photos/carl-johan/ http://www.flickr.com/photos/mcblood/ http://www.flickr.com/photos/nguyendai/ http://www.flickr.com/photos/oskay/ http://www.flickr.com/photos/jannem/ http://www.flickr.com/photos/rb-rt/ http://www.flickr.com/photos/splorp/ http://www.flickr.com/photos/genewolf/ http://www.flickr.com/photos/cmatsuoka/ http://www.flickr.com/photos/meddygarnet/ http://www.flickr.com/photos/donsolo/ http://www.flickr.com/photos/oskay/ http://www.flickr.com/photos/gozalewis/ http://www.flickr.com/photos/todbot/ http://www.flickr.com/photos/yamagatacamille/ NON CC: http://www.tronguy.net/ Wednesday, October 27, 2010

×