background preloader

Programming

Facebook Twitter

Galileo-chofrock/pyGalileo. Forum: Software & Documentation | Intel Communities. Intel Galileo: Setting Up WiFi | Ionospherics LLC. The Intel Galileo comes with an Ethernet port, that you can use to connect to the internet. But sometimes you want to connect to the Internet without wires. WiFi lets you place your Galileo anywhere, without having to run a wire back to a router, and connect to your host machine or the internet. Parts: Intel N13WiFi / Bluetooth 1/2 Length PCI Card. Many alternate parts and suppliers are available. Installation: An Adapter is needed to allow a half-length N135 Mini PCI Express card to install in the full size Mini PCI Express connector on the Intel Galileo board.

Turn the Intel Galileo over. The PCI Connector slot has a key that fits into key slit in the N135. Press gently but firmly on the N135 Adapter to seat it on the two hooks on the PCI Connector. Attach the two WiFi/Bluetooth antennas. Configuring the Intel Galileo for WiFi Intel Galileo’s WiFi only works with Linux on the SD Card. Execute: ifconfig wpa_passphrase YOUR-SSID YOUR-PASSPHRASE> /etc/wpa_supplicant.conf Execute: ifup wlan0. Ifconfig dhcp : Configure your DHCP from the command line. Linux/UNIX based systems offer an assortment of commands to their users to help them set up local networks as well as connect to the internet. The ifconfig command is the DHCP utility program that is found in Unix-based operating systems.

It allows you to configure your TCP/IP address parameters, and to control and query it in general. If you’re familiar with Windows operating systems, you might recognize the ipconfig command that lets you access the Windows DHCP client. The ifconfig command in UNIX is similar to the ipconfig command. What is DHCP? Before we explain the ifconfig command in detail, do you know what DHCP means exactly?

Some ISPs assign static IP addresses as an alternative to dynamic IPs. Ifconfig Commands to Configure DHCP The most common use of the ifconfig command is to disable or enable an interface and to set up an interface IP address and netmask. We’ll give you ifconfig commands you’re most likely to need if you’re working with a DHCP server. Starting a DHCP client. Galileo board is not detected. | Intel Communities. Java on Yun? Top 10 Of The Best Free Web Services For Text-To-Speech Conversion.

Create text-to-speech (TTS) podcast from RSS feed for iPod, iPhone, MP3 player and mobile phone. Text to Speech | TTS | Free Text to Speech SDK | iSpeech. The World Famous Index of Arduino & Freeduino Knowledge. Scuola - Intel® Galileo, first steps and the Internet of Things. Paraimpu is a social platform for the Internet (of Things). It allows you to quickly connect your smart things and boards, manage and interconnect them to create your IoT apps, also defining data transformation rules and to build your personal Internet of Things in a simplified, smart way.

To experiment with this tutorial you need a Paraimpu account: you can create yours for free here. The free Paraimpu account has some limitations, for example every thing you will add can communicate once per minute with the system. A Premium account type is coming and it will tear down this limitations. Anyway, the free account is enough for our experiments.

The simple app we’re going to build uses Galileo as an actuator to light or switch-off a LED when someone tweets a message with hashtag #paraimpu and containing the words on or off. Thus, the required ingredients are: Once created your Paraimpu account, login into it. Connecting your Galileo Then: Adding a Twitter sensor 1. 2. 1. 2. 3. 4. 5. 6. 7. YEP! IntelGalileo/IntelGalileoGPIO. Programming GPIO pins on Intel Galileo Description: Tutorial Level: INTERMEDIATE Intro This should work with either the Yocto or Debian setup. Set up First we have to make sure the permissions are set up to allow users to manipulate GPIO. SUBSYSTEM=="gpio", ACTION=="add", PROGRAM="/bin/sh -c 'chown -R root:gpio /sys%p; chown -R root:gpio /sys/class/gpio; chmod -R 775 /sys%p; chmod -R 775 /sys/class/gpio'" sudo groupadd -f --system gpio sudo udevadm control --reload-rules Command line test echo -n "3" > /sys/class/gpio/export echo "out" > /sys/class/gpio/gpio3/direction echo "1" > /sys/class/gpio/gpio3/value The LED on the board should turn on echo "0" > /sys/class/gpio/gpio3/value The LED should turn off Control pins with Python Here's a simple Python program to blink the LED: Toggle line numbers See Sergey's Blog for pin mapping.

I2C and PWM It looks like the kernel needs to be compiled with i2c_std_mode = 1 in order to use I2C, PWM and some of the GPIO pins. Intel Galileo - Programming GPIO From Linux - Malinov Family Web Presence. Most of GPIO capabilities of Galileo board are exposed through Linux Sysfs interface, and can be controlled using file based I/O. I will show how to use some of these capabilities using simple shell commands. Of course instead of shell you can implement I/O using file manipulations from your program written using your favorite programming language.

Digital GPIO - Sysfs Interface The following command gives information about GPIO in the system and shows if an IO port was allocated to a module or Sysfs (user). root@clanton:~# cat /sys/kernel/debug/gpio GPIOs 0-1, platform/sch_gpio.2398, sch_gpio_core: GPIOs 2-7, platform/sch_gpio.2398, sch_gpio_resume: GPIOs 8-15, intel_cln_gip_gpio: gpio-8 (SPI_CS ) out hi gpio-10 (SPI_CS ) out hi gpio-13 (cy8c9540a-int ) in hi GPIOs 16-55, cy8c9540a, can sleep: As you can see from the output all the GPIOs of Galileo board is divided into 4 chunks:GPIOs 0-1 - Intel Quark X1000 - GPIO[9:8] pins. Exporting a GPIO Port to Sysfs Setting GPIO Port Direction Analog Input. Galileo Experiment Guide - learn.sparkfun.com. Contributors: hello_techie Introduction A temperature sensor is exactly what it sounds like – a sensor used to measure ambient temperature. This particular sensor has three pins – a positive, a ground, and a signal.

The TMP36 sensor has a nominal 750 mV at 25°C (about room temperature). Parts Needed You will need the following parts: 1x Breadboard1x Galileo5x Jumper Wires1x Temperature Sensor If you are following through all of the SIK Galileo tutorials we suggest using these parts: Temperature Sensor - TMP36 In stock SEN-10988 This is the same temperature sensor that is included in our [SparkFun Inventor's Kit]( Intel® Galileo In stock DEV-12720 The Intel® Galileo board is based on the Intel® Quark SoC X1000, a 32-bit Intel Pentium®-class system on a chip (SoC).

View the SparkFun Inventor’s Kit for Galileo wishlist, to see the parts needed to go through the all the experiments. Hardware Hookup Ready to start hooking everything up? Fritzing Diagram Code To Note. Before You Buy — Clay and Galileo. DHT workaround for Galileo and Galileo Gen2 usi... | Intel Communities. The main reason the DHT temperature and humidity sensor does not work with the Galileo is because of the tight requirements of one-wire device like the DHT11 and DHT22 sensors. With just one wire, DHT and many other one-wire devices will not work with the Galileo because the Galileo takes too much time when switching a pin from one direction to another. This is because the Galileo uses IO expanders for the gpio that controls the pin direction and those IO expanders are connected to the Galileo via I2C. One way to get the Galileo to play well with one-wire devices is to use two wires. One dedicated for INPUT and another for OUTPUT. The workaround I am going to use only requires one extra hardware, a diode.

For this example, pin2 is connected to the DHT11. Cathode of the diode is connected to pin3. Anode of the diode is connected to the DHT. I modified the Adafruit DHT library to work with the Galileo using two pins which I have attached. Also attached the modified sketch example. Intel-NTU Connected Context Computing Center. Intel® Galileo is an Arduino-compatible application development board based on Intel® Quark X1000 SoC, which is a 32-bit Pentium-class application processor. The hardware and software compatibilities to Arduino shields design makes Galileo a rapid prototyping platform for innovative algorithms and techniques.

A light weight Yocto Project Linux was also released to run on Galileo; however, due to the nature of the light weight OS, the functions available are limited. In order to unleash the potential of Galileo, a full-featured Yocto Project Linux with standard software development kits (SDKs) is required. In addition, Java plays an essential roles in many cross-platform applications. JDK, JVM and Java-based web server are three required features to be integrated to Galileo. Pre-built and verified Yocto Project Linux images: 1. 2. 3. 4. 5. 6. 7. 8. Intel Software Academic Program. Intel Software Academic Program. Analog Inputs for Raspberry Pi Using the MCP3008. Raspberry Pi Temperature and Light Sensor. Required 2 x DS18B20, 2 x 4.7k resistor The DS18B20 is a rather useful sensor because you can read more than one of them using the same GPIO pin.

The Raspberry Pi is able to recognise the input from each separate sensor. This system is called “1-wire”, although the sensor still needs power and GND connections. Breadboarding Basics. The way a breadboard works is like this... There are red and blue rails for power (+ve, red) and ground (-ve, blue). On the main part of the breadboard you have rows of connections with a gap in the middle. So if you plug something into position A1, it’s connected to B1, C1, D1 and E1 as well, but it’s not connected to the other side (F1-J1). Anything you plug into F3 is connected to G3, H3, I3 and J3.

The way a breadboard works is like this... The DS18B20 sensor has three pins which are connected as follows: Pin 1 connects to GNDPin 2 connects to GPIO4 on the Raspberry PiPin 3 connects to the 3.3V supply (3V3) from the Pi The circuit is connected as in the diagram. How to: Create a Raspberry Pi weather station: Part 1. The Raspberry Pi has a number of features that make it ideal for real-world projects. It’s cheap, small and rugged, and it needs only a modest power supply. Here, we’re going to discover how to turn a Pi into a climate-monitoring station that can take measurements of the temperature, air pressure and light levels outside, and save them in a form you can then analyse using a spreadsheet program such as the common Microsoft Excel.

We’re also going to cover how to connect to Dropbox, so that our project can share its results across multiple devices. Finally, we’re going to look at how to use a Raspberry Pi without a keyboard, monitor or mouse, so that you can use your Pi in a wide range of small-scale projects. This project assumes a certain degree of familiarity with Raspbian and the principles of creating programs in Python, but especially advanced skills aren’t required.

Here are some questions for which you might want to design experiments: How to Create a Simple Shell Script on Linux. Shell scripts are short programs that are written in a shell programming language and interpreted by a shell process. They are extremely useful for automating tasks on Linux and other Unix-like operating systems. A shell is a program that provides the traditional, text-only user interface for Unix-like operating systems. Its primary function is to read commands (i.e., instructions) that are typed into a console (i.e., an all-text display mode) or terminal window (i.e., all-text mode window) and then execute (i.e., run) them. The default shell on Linux is the very commonly used and highly versatile bash. A programming language is a precise, artificial language that is used to write computer programs, which are sets of instructions that can be automatically translated (i.e., interpreted or compiled) into a form (i.e., machine language) that is directly understandable by a computer's central processing unit (CPU).

A First Script #! . chmod 755 morning How It Works It Doesn't Work! Experiments. HaikuVM - A Java VM for ARDUINO and other micros using the leJOS runtime. Raspberry Pi Documentation. Adafruit/DHT-sensor-library. Futuretask java example. Java - Access restriction on class due to restriction on required library rt.jar? Sun.misc.Signal Usage, Examples, Demos and Tutorials. Pulse Sensor - SEN-11574. Introduction | Wireless Security Camera with the Arduino Yun. Ever saw these wireless security cameras that you can buy off the shelf?

These are devices that you can setup somewhere in your home or outside, connect to your WiFi network, and then access the video stream from anywhere. However, they are usually using the interface given by the manufacturer, which means you are quite limited with what you can do with your camera. In this project, we are going to build our own DIY version of such devices. The project is based on the Arduino Yun, to which we are going to connect a standard USB webcam and a PIR motion detector to create some cool applications. The first application will be a modern version of standard tasks that you want for a security camera: taking pictures when some motion is detected. Then, we are going to stream video coming from the camera directly on Youtube. How to Setup Wi-Fi On Your Raspberry Pi via the Command Line.

You configured your headless Raspberry Pi just the way you want it, it’s settled in and running smoothly, but suddenly you want to move it away from its Ethernet tether with a Wi-Fi module. Skip hooking it back up to all the peripherals and quickly add in Wi-Fi support from the command line. Why Do I Want to Do This? If you’re a Raspberry Pi enthusiast (or quickly becoming one), you know how annoying it can be to realize that your headless Pi project now needs yet another little tweak that likely necessitates hooking up a monitor and keyboard/mouse to the box. The best way to avoid falling into that trap is to configure your Raspberry Pi for remote access. Once you have that configured, however, you still need to know how to do tasks remotely that would previously be handled by a GUI interface (like turning on the Wi-Fi). Today we’re going to walk you through the technical (but simple) way to remotely connect to your Pi and activate a Wi-Fi add-on dongle. What Do I Need?

Sudo reboot. Quick Guide To nano Text Editor On The Raspberry Pi. If I need to edit text files directly on my Raspberry Pi my text editor of choice is nano. There are other text editors available but I prefer nano’s relatively straightforward interface. As a command line based utility it may feel strange for users who are more familiar with a graphical interface but it is easy to learn the basics. Syntax colouring is available which makes reading and reviewing scripts easy. Launching nano To start nano you can simply type nano at the command prompt. This will launch with a “new buffer”. In other words an empty text file that has no name. In order to launch an existing text file you type nano followed by the file name : nano berryclip_01.py You will see something like this : nano Main Screen If your file is not in the current directory you will need to specify the full path : nano /home/pi/berrryclip/berryclip_01.py If the file is a system file you may need to use elevated permissions : sudo nano -w /etc/fstab Editing Text Once in nano you can start typing.

Installing VNC | Adafruit's Raspberry Pi Lesson 7. Remote Control with VNC. SSH (see is often all you need to control your Raspberry Pi, however sometimes it is useful to be able to remote control your Raspberry Pi using the mouse and seeing just what you would see on the screen of the Raspberry Pi. VNC (Virtual Network Connection) is a standard for doing just this. To use it, you have to install some software on your Pi. There are a number of VNC server applications, and the one we are going to use is called “tightvnc”. We can install the VNC server software using the SSH connection that we established earlier. Enter the following command into your SSH terminal: sudo apt-get update sudo apt-get install tightvncserver sudo apt-get updatesudo apt-get install tightvncserver You will be prompted to confirm installation by typing “Y' and finally when installation is complete, you should see the following: We now need to run the VNC Server, so enter the following command into your SSH window:

Playing with Arduino Yun | Homautomation. Arduino GPS Tutorial - Complete Guide. Arduino Yun Tutorial Book Review. Arduino Step by Step: Your guide to the Internet of Things by Dr Peter Dalmaris. Sound Sensor. PIR Sensor Arduino Alarm. PIR Sensor Arduino Alarm. Starter Kit » Blog Archive Project: Arduino YUN controls things remotely - StarterKit by Nettigo. Bplus-gpio.png (PNG Image, 1157 × 654 pixels) - Scaled (88%) Raspberry Pi Pinout - UART. Guide To…Direct Network Connection | Meltwater's Raspberry Pi Hardware. Linux Command-Line Cheat Sheet | Computerworld. GPIO. DIFFERENT TYPES OF ARDUINO BOARDS AVAILABLE AT TENET TECHNETRONICS | Tenet Technetronics' Blogspot. Check Your Humidity & Temperature From Anywhere - Stogie Addict. Arduino Yún Tutorials - tronixstuff. Control an Arduino from Java. Control an Arduino from Java. Java. Souliss - get in touch with your Things. Studio 6 - Supporting Two Architectures: AVR and ARM, with One Integrated Studio - Overview.

Arduino IDE for Atmel Studio (free ide) Reading Multiple 1-Wire Temperature Sensors Using Java on a Raspberry Pi. RPi Hub. 55 jQuery Animate Resources | Have Fun With jQuery Animate. 10 Java Regular Expression Examples You Should Know. Regular-Expressions.info - Regex Tutorial, Examples and Reference - Regexp Patterns. Regular Expression Library. Java Regex. MockingToolkitComparisonMatrix - jmockit - A feature matrix comparing several mocking toolkits. - A developer testing toolkit for Java. Isolation framework java. Code coverage tools java eclipse.

Develop Android apps

Javascript Libraries. JavaScript sites. Google C++ Style Guide. Hungarian Notation. Java References. Developer Zone. Android units – pixels, density, dpi, dip, dp, dps, sp, sip | Edwin Evans. Wear. HTML/CSS. Dart: Structured web apps. Websites for Learning Programming. Code Academy. Frameworks. Knowing .NET » Blog Archive » 15 Exercises to Know A Programming Language: Part 1. Knowing .NET » Blog Archive » 15 Exercises to Know a Programming Language: Part 2, Data Structures. Knowing .NET » Blog Archive » 15 Exercises to Know a Programming Language: Part 3, Libraries, Frameworks, and Mashups. Exercises In Chronological Order | Programming Praxis. Technish: 15 exercises to learn a new programming language. Learn Ruby, Rails, JavaScript | How to code | CodeQuizzes. Google Code Jam.

Tutorials/classes

Java. Web programming. QA. PHP. Matlab tutorials/documentation. Documentation Graphviz - Graph Visualization Software. Python. Python debugger. Python. Exercices.