Project: Seven Segment Display and an Arduino Mega

Seven Segment Display standing on a table

Everyone has one in their house, a clock on your VCR you never set, a timer on your cooker or your microwave, a digital clock. The seven segments of LEDs that light up to form numbers are made up of Seven Segment Displays.

There are all sorts of projects you might want to add these to, but this is a basic introduction with one number.

The pins on these displays may differ, on mine, the first pin did nothing and the middle pin on the top and bottom connected to ground. Each of the other pins was a positive for a different segment on the display.

Seven Segment Display in Breadbord

First things first, look up the data sheet of your display and figure out how much current and voltage it should take, no point burning it out. You will probably need to hook up a resister for safety.

I’m using an Arduino Mega, but you could do it with any Arduino boards or a Raspberry Pi.

Put the display in a breadboard so each pin can be powered separately and first wire up the ground with a resister, then connect it to the Arduino ground.

Then, connect a jumper line to the 3.5V on the Arduino and connect it to each pin on the Display in turn. If everything works, each segment should light up as you power it up.

Seven Segment Display in Breadboard, being tested

To make it more interesting, wire up each segment to a digital pin on the board. For Arduino, I used pins 1-7, which is a bit interesting.

Seven Segment Display with all pins connected to Arduino

Firstly, you can’t connect pin 0 or pin 1 to anything while the sketch is uploading to the board. Once the program is uploaded, you can then connect these pins.

I used pins 1-7, and connected them to the display, skipping the ground pins.

The below code has 2 parts, and is derived from the blink program.

 

// the setup function runs once when you press reset or power the board

void setup() {

pinMode(7, OUTPUT);

pinMode(6, OUTPUT);

pinMode(5, OUTPUT);

pinMode(4, OUTPUT);

pinMode(3, OUTPUT);

pinMode(2, OUTPUT);

pinMode(1, OUTPUT);

// for each pin we want to use, we need to set it to output.

}

// the loop function runs over and over again forever

void loop() {

digitalWrite(7, HIGH); // turn on whatever segment is connected to pin 7

digitalWrite(6, LOW); // turn off whatever segment is connected to pin 6

digitalWrite(5, HIGH);

digitalWrite(4, LOW);

digitalWrite(3, HIGH);

digitalWrite(2, LOW);

digitalWrite(2, HIGH);

delay(4000); // wait for a 4 seconds

digitalWrite(7, LOW); // now whichever segment is connected to pin 7 will turn off

digitalWrite(6, HIGH); // now whichever segment is connected to 6 will turn on

digitalWrite(5, LOW);

digitalWrite(4, HIGH);

digitalWrite(3, LOW);

digitalWrite(2, HIGH);

digitalWrite(1, LOW);

delay(4000); // wait for 4 seconds

}

The display is really simple, it is made up of seven LEDs and you can turn on and off each part at the same time to from numbers. This is a basic introduction, you can add more displays for more advanced features.

Space Upgrade September 2016

We are always doing upgrades and improvements in our space.  Below are some of our latest.

IMG_20160910_160425 IMG_20160910_155922IMG_20160910_155556

We have added in extraction systems in each of our toilets. We have disabled the urinal and changed the toilets to be gender neutral.

 

IMG_20160910_165556

More desks. We have added a new desk near our lathe and another one in the electronics room.

 

 

 

IMG_20160911_183013IMG_20160910_165032

General clear out. We also filled a skip with building waste and general stuff left over from the move.

 

 

 

Check out our gallery for a full photo set of the changes.

Coder Girl Hack Day

Coder Girl Hack Day is a one day tech event focusing on creative wearables, maker magic and web development. It a celebrate of International Day of the Girl and EU Code Week. It brings together the community for an inclusive family event featuring learning sessions for girls & parents. This year, the event will be held on October 15th in Dog Patch Labs, CHQ. The event takes the form of a number of tracks to give participators different flavors of creative endeavors.
ducklightbox
Tog is teaming up with Intel Ireland to add the maker element to the day. Last year, we had the girls create light houses, this year continuing on the light theme we will be making shadow boxes. These boxes can be used to make cool lighting displays or shadow puppets shows.
This is made possible by an eclectic mix of community groups and industry supporters. Here in Tog , we are proud to be one of them. Tickets Below.

September Open Social

teapotOn Saturday 17th September we will be holding our regular Open Social evening. If you’ve never been to our Social, you’ll find it a great alternative Saturday evening in town. Look around….talk to members and visitors about projects or things you’d like to do. Talk about beer brewing to some of our brewer members or about locks to our lock pickers. Have a look at our laser cutter and our motorbike that we’re restoring. Ask about joining as a full member.

Hopefully there’ll be, caint, ceol agus craic as usual. The space stays open until the last member is left……usually the small hours of Sunday morning. The evening is free to attend for members and visitors alike. No booking is required…. just turn up. You can drop in for 10 minutes, or stay the whole night. We have parking available. Bring beer, food, gadgets! Our doors will be open from 7pm. Hope to see you there.

https://www.tog.ie/
https://lists.tog.ie/mailman/listinfo/tog
https://twitter.com/TOG_Dublin
https://www.facebook.com/togdublin

 

Electric Picnic 2016

img_20160903_125547

Electric Picnic marks the end of the Irish summer. Some say its too late and summer is already over by the time it happens due to the amount of rain that typically lands on the festival. We were invited by the Science Gallery to run two different workshops over the course of the festival.  We ran a locking picking session and a field test of the conductivity of liquids.

Over the two days festival goers were entertain by being handcuffed to each other and left to pick their way out  and with the kids being amazed to find out distilled water does not conduct electricity. Check out our gallery for the full photo set.

img_20160903_112721

 

Pew! Pew! 5 things you need to know to start laser cutting

Our own Jeffrey Roe talked to Silicon Republic all about laser cutters. Read an extract of the story below.

 

Ever dreamed of running your very own laser cutter? Here are five tips to get you started cutting shapes into everyday items like wood or paper.

Laser cutting – sometimes called etching or engraving – is not only one of the coolest ways of bringing a design to life but also, by far, the most accurate.

While it might be easy to design and cut out a small sign by hand, a laser cutter can do so much more, such as the kind of multi-layered lettering and design that even a skilled artist would struggle to execute.

 

With so many possibilities, you might be wondering: how does the average person get involved in laser cutting and, more importantly, is it prohibitively expensive?

After all, when it comes to laser cutting, my first thoughts usually veer towards the famous scene in the James Bond film, Goldfinger, in which a giant laser gradually edges towards the groin of the British spy.

In reality, laser cutters are far less powerful – and a lot more realistic. Yet they still have enough power to burn through most thin wood, paper or plastic to create a design you need.

To get a look at one in action, Siliconrepublic.com popped down to the impressive Tog hackerspace in Dublin where its CEO, Jeffrey Roe, was on hand to take us through what you need to get started.

Read the full story on their website -> https://www.siliconrepublic.com/machines/laser-cutting-starter-guide

Continue reading “Pew! Pew! 5 things you need to know to start laser cutting”