element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Members
    Members
    • Achievement Levels
    • Benefits of Membership
    • Feedback and Support
    • Members Area
    • Personal Blogs
    • What's New on element14
  • Learn
    Learn
    • eBooks
    • Learning Center
    • Learning Groups
    • STEM Academy
    • Webinars, Training and Events
  • Technologies
    Technologies
    • 3D Printing
    • Experts & Guidance
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Arduino Projects
    • Design Challenges
    • element14 presents
    • Project14
    • Project Groups
    • Raspberry Pi Projects
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Or choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
Raspberry Pi
  • Products
  • More
Raspberry Pi
Blog Setting up a headless Pi for a workshop.
  • Blog
  • Forum
  • Documents
  • Events
  • Polls
  • Files
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Raspberry Pi requires membership for participation - click to join
Featured Articles
Announcing Pi
Technical Specifications
Raspberry Pi FAQs
Win a Pi
GPIO Pinout
Raspberry Pi Wishlist
Comparison Chart
Quiz
Blog Post Actions
  • Subscribe by email
  • More
  • Cancel
  • Share
  • Subscribe by email
  • More
  • Cancel
Group Actions
  • Group RSS
  • More
  • Cancel
Engagement
  • Author Author: Workshopshed
  • Date Created: 4 May 2016 10:37 AM Date Created
  • Views 624 views
  • Likes 4 likes
  • Comments 1 comment
Related
Recommended

Setting up a headless Pi for a workshop.

Workshopshed
Workshopshed
4 May 2016

For the Gnome Street Gnome event I wanted to be able to run the workshop without the need for lots of HDMI monitors and keyboards. I also wanted the simplest set-up possible as I knew I'd likely need to do it multiple times. The organiser provided me with a pile of Pi3, each with an SDcard containing noobs.

image

I used the latest full Raspian image and flashed it to the SDCards using my laptop and Win32DiskImager. The image contains all the software needed pre-installed so saved me downloading more.

 

The raspberry pi 3 will happily run without a keyboard and monitor but I needed to configure the WiFi adapter before we could connect to them. The easiest way to do this would be to use a keyboard and monitor to do the setup.

 

As I did not have this, I used the console which can be accessed via a serial connection attached to the TX and RX pins on the Pi's header. I used a USB to TTL module, checking that it was 3.3v compliant. Mine was a CH340 based module and seemed to work fine. I connected TX, RX and GND, and powered the board from a second USB port or supply. Some boards also provide 5v power so check your documentation. On the PC you run a serial terminal such as Putty and connect it to the serial port, you can then access it in the same way you'd do from a command prompt on screen or SSH remotely.

 

image

 

To configure the WiFi I edited the wpa-supplicant config file, I then used the raspi-config tool to change the host name.

 

Node-red was already installed so it was set to run on boot using:

 

sudo systemctl enable nodered.service

 

Finally the boards were rebooted and we ready for use.

image

 

To make accessing the node-red designer straightforward, I installed the Bonjour software on the Windows laptop. This allows connection via http://raspberrypi.local:1880 rather than needing to know the IPAddress, this should not be needed if you are accessing via a Mac, Linux PC or tablet. The service part of this capability is already installed in the image.

 

Whilst researching this, I realised that there's quite a few steps that have been improved over the years which made my job a lot simpler than first thought.

I also tried the Raspian Jessie Lite version, that also works but you will need to install Node-Red and it's dependencies.

 

It was a good thing that I did not have to install anything during the workshop as the art centre WiFi required you to accept terms and conditions. I only realised this when we tried to play a WAV file of a police siren and all we got was noise. We had downloaded the file directly onto the Pi using WGET. I opened the file to see if it was corrupt and realised it was HTML! We got around this by downloading the files on PC and coping them over using WinSCP.

 

Summary

  • Install Raspian on SDcard
  • Configure to connect to WiFi
  • Set unique host name
  • Configure Node-Red to auto start

 

Reference

 

Writing SDcard

Access via serial port

Configuring WiFi via Command Line

Change Host Name

Node-Red on Pi

  • Sign in to reply

Top Comments

  • Workshopshed
    Workshopshed over 7 years ago +1
    A great tip from Keith's Pi Tutorials @PiTutorials In the latest version of Raspian, once you've downloaded the image and written it to the SDCard you can open the card from your PC and write a wpa-supplicant…
Parents
  • Workshopshed
    Workshopshed over 7 years ago

    A great tip from Keith's Pi Tutorials @PiTutorials

     

    In the latest version of Raspian, once you've downloaded the image and written it to the SDCard you can open the card from your PC and write a wpa-supplicant.config file to the boot partition, without the need for any special drivers / tools.

     

    Then when the Pi boots it copies this file into /etc where it is used to configure the Wifi. This should mean that you could set up the images more easily without the need for the serial adapter.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Comment
  • Workshopshed
    Workshopshed over 7 years ago

    A great tip from Keith's Pi Tutorials @PiTutorials

     

    In the latest version of Raspian, once you've downloaded the image and written it to the SDCard you can open the card from your PC and write a wpa-supplicant.config file to the boot partition, without the need for any special drivers / tools.

     

    Then when the Pi boots it copies this file into /etc where it is used to configure the Wifi. This should mean that you could set up the images more easily without the need for the serial adapter.

    • Cancel
    • Vote Up +1 Vote Down
    • Sign in to reply
    • More
    • Cancel
Children
No Data
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2023 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube