jmarsico – Physical Computing https://courses.ideate.cmu.edu/16-223/f2014 Carnegie Mellon University, IDeATe Fri, 11 Aug 2017 21:41:33 +0000 en-US hourly 1 https://wordpress.org/?v=4.7.28 Registering your Raspberry Pi with CMU https://courses.ideate.cmu.edu/16-223/f2014/registering-your-udoo-with-cmu/ Tue, 24 Jun 2014 16:16:37 +0000 http://courses.ideate.cmu.edu/physcomp/f14/16-223/?p=324
  • Find your Pi’s hardware address
    1. open a terminal session on pi: either directly on the rPi or through SSH.
    2. type ifconfig
    3. look for the wlan0 section and copy the HWaddr (it will look something like b8:27:eb:3e:cf:b9)
    4. copy this address someplace handy; you’ll need it later.
  • Go to cmu netreg, click “enter” and sign in with CMU credentials
    1. https://netreg.net.cmu.edu/
  • Click the “Register New Machine” link
  • Under ‘Network’, select ‘wireless network’ and click continue.
  • Choose a name for your machine’s DNS.
  • Enter the hardware address you found earlier in the Hardware Address field and click continue.
  • You should then see a confirmation page with your machine’s hostname. Copy that url. for example: SIMONRASPI.WV.CC.CMU.EDU.
  • It can take up to a day for your machine to be registered, but it usually takes about an hour. Once registered, your raspberry pi will be able to access the internet through its LAN connection.
  • You can now use this hostname for SSH or Samba connections.
  • ** if you change the image on your SD card, you may need to re-register your machine on the wifi network.

    ]]>
    Program UDOO Arduino from External Computer https://courses.ideate.cmu.edu/16-223/f2014/program-udoo-arduino-from-external-computer/ https://courses.ideate.cmu.edu/16-223/f2014/program-udoo-arduino-from-external-computer/#comments Tue, 24 Jun 2014 14:40:02 +0000 http://courses.ideate.cmu.edu/physcomp/f14/16-223/?p=315 Compiling Arduino code on the UDOO is much slower than compiling on your laptop. Writing and compiling Arduino sketches on your laptop and then uploading them to the onboard UDOO Due will speed up your development process.

    To make this possible, you’ll need to set up your computer to work with this specific version of the Arduino.

    Install USB Driver:

    1. Download and install the relevant driver for UDOO’s MicroUSB port (labeled as ‘cn6’ on the UDOO board)
      1. http://www.silabs.com/products/mcu/pages/usbtouartbridgevcpdrivers.aspx
    2. Connect your computer to the UDOO Due with a USB – MicroUSB cable. Make sure you plug the MicroUSB side into the port labeled CN6 on the UDOO board.
    3. Determine if you can detect the UDOO Due device. On OSX, open a terminal and enter system_profiler SPUSBDataType. You should see a listing for CP2104 USB to UART Bridge Controller

    Patch Arduino IDE:

    1.  If you don’t already have it, download Arduino 1.5.x
      1. http://arduino.cc/en/Main/Software ->
      2. if you prefer to use Arduino 1.0.x for other applications, you can rename this version of the application to Arduino_1.5
    2. Download the relevant UDOO IDE patch file from here:
      1. http://www.udoo.org/downloads/#tab4
      2. Download the bossac file for your OS from the section labeled ‘Arduino IDE Patch’
    3. Extract the files and place it in your Arduino app.
      1. For Windows or Linux, place them in <ARDUINO_IDE_PATH>/hardware/tools/ and override the original files
      2. For OSX, right-click the Arduino application icon and select “Show package contents”. then place the bossac file in <ARDUINO_IDE_PACKAGE>/Contents/Resources/Java/hardware/tools/
    4. Open Arduino 1.5.x and copy this simple test sketch:
      1. void setup() {
          Serial.begin(9600);
        }
        void loop() {
          Serial.println("hello");
          delay(100);
        }
    5. Select the correct board under Tools>Board>Arduino Due Programming Port
    6. Select the correct port under Tools>Port>/dev/tty.SLAB_USBtoUART
    7. Remove j18 jumper on UDOO board (near wifi module and heatsink)
    8. Upload the sketch and open the Serial Monitor on the Arduino IDE. You should see “hello” printing repeatedly.

    ]]>
    https://courses.ideate.cmu.edu/16-223/f2014/program-udoo-arduino-from-external-computer/feed/ 2