Paul Sutton

electronics

Code Club Electronics 8

So following on from the previous post. I had to look this up to remind myself how to specific a pin. Not used Arduino in a while. I found the following code as part of a stackoverflow post

However, in this, the two LEDs flash on and off alternately. Delay is set by a single line.

int delayPeriod = 1000;

So this is more so I can learn how to specify a pin.

int ledPin = 12;
int ledPin2 = 13;
int delayPeriod = 1000;

void setup()
{
  pinMode(ledPin, OUTPUT);
  pinMode(ledPin2, OUTPUT);
}

void loop()
{
  digitalWrite(ledPin, HIGH);
  digitalWrite(ledPin2,LOW);
  delay(delayPeriod);
  digitalWrite(ledPin2, HIGH);
  digitalWrite(ledPin,LOW);
  delay(delayPeriod);
  //delayPeriod = delayPeriod - 10;
}

In the video, I am just changing a single line of code to cause the delay.

Timings are in milliseconds or seconds

Links

Tags

#Electronics,#Code,#Arduino,#Hacking.#LED,#Blink

Code Club Electronics 7

Just having a look at an Arduino add-on board, that has various inputs and outputs built in. The following code (from the default IDE library) flashes an LED on and off. The delays can be changed within the code.

/*
  Blink

  Turns an LED on for one second, then off for one second, repeatedly.

  Most Arduinos have an on-board LED you can control. On the UNO, MEGA and ZERO
  it is attached to digital pin 13, on MKR1000 on pin 6. LED_BUILTIN is set to
  the correct LED pin independent of which board is used.
  If you want to know what pin the on-board LED is connected to on your Arduino
  model, check the Technical Specs of your board at:
  https://www.arduino.cc/en/Main/Products

  modified 8 May 2014
  by Scott Fitzgerald
  modified 2 Sep 2016
  by Arturo Guadalupi
  modified 8 Sep 2016
  by Colby Newman

  This example code is in the public domain.

  https://www.arduino.cc/en/Tutorial/BuiltInExamples/Blink
*/

// the setup function runs once when you press reset or power the board
void setup() {
  // initialize digital pin LED_BUILTIN as an output.
  pinMode(LED_BUILTIN, OUTPUT);
}



// the loop function runs over and over again forever
void loop() {
  digitalWrite(LED_BUILTIN, HIGH);   // turn the LED on (HIGH is the voltage level)
  delay(100);                       // wait for 100 milli seconds
  digitalWrite(LED_BUILTIN, LOW);    // turn the LED off by making the voltage LOW
  delay(100);                       // wait for 250 milli seconds
}

The video just shows the last section of code and what happens when the delay is changed.

Timings are in milliseconds or seconds

e.g. 1000 ms = 1 second 2000 ms = 2 seconds 100 ms = 0.1 seconds 250ms = 0.250 seconds (¼ second) 500ms = 0.500 seconds (½ second)

Links

Tags

#Electronics,#Code,#Arduino,#Hacking.#LED,#Blink

Code Club Electronics 6

Electronics 101 video. I found this on peer tube, an introduction to electronics. I am sharing here as it is appropriate for this series of posts.

More videos from this series

There does seem to be some missing on peer tube, these are the 4 I can find. If I find more, I will update the list & post.

Tags

#CodeClub,#Electronics,#Introduction,#Peertube

Code Club 25/11/2023 Write up

We had a busy session today. As you can see from the photo, we did more work on the netbooks.

code club november 2023

We were also doing more Scratch and some HTML / CSS.

I have added more links below to try and reflect our current set of activities.

I was also helping another attendee with electronics, even though I think what he wants to do is a little complex for the resources available and requires more engineering and or electronics knowledge.

As well as the above, Helen from the STEM group was working on getting the line following robot working and also getting the Lego WeDo working, so we now have a small Lego robot that can detect obstacles, as well as a basic Lego Windmill, which we can look at this during the next STEM group meeting on the 9th December.

Next Code Club

The next code club is on 2/12/2023

Tags

#CodeClub,#Python,#Web,#Hardware,#Software,#Electronics, #STEM

Index

Donate using Liberapay

  1. Click on a link.
  2. Scroll to bottom of page.
    • Any posts / pages within this blog will be displayed.

A #AbsorbtionSpectra #AMOC #Abuse #Academy #Activism #Adenine #Afghanistan #Africa #Alphablocks #AMES #AminoAcid #AmnestyInternational #Analytics #apg #Api #Apt #Aptitude #AralBalkan #Archaeology #Arduino #Artemis #arXiv #AstroBiology #AstroChemistry #Astronify #Astronomy #Astrophysics #AtomicStructure #ARM #Assembler B #bash #BASH #BASHShell #Beamer #better #BibTeX #BigBluButton #BigOil #BioChemistry #Biology #Blender #Blog #Bonfire #Bookworm #Bookwyrm #Browser #Bullseye #Buster C #Castopod #Charity #Chat #Chemistry #Chrome #Chromium #Code #CodeClub #Coding #Commons #Conditions #Conference #Console #Cornwall #Corona #CoronaVirus #Cosmology #Covid19 #cpd #CPD #Creative #CreativeCommons #CreativeEducation #CriticalThinking #CrudeOil #Cryptpad #Crystal #CTAN #CyberSecurity #Cytosine D #DarkMatter #Data #DBS #dcglug #dclug #Debconf #Debian #Decentralised #Decentralized #DeepLearning #Derived #Detox #Development #Devon #Diaspora #Digital #DiodeZone #Discussions #disroot #Disroot #dna #DNA #Docker #Documentation #Donate #Donation #Draft #DRM #Drupal E #Editing #Education #EdX #Electronics #Elements #emacs #Email #EmissionSpectra #Employment #Energy #Engine #Ethics #Ethiopia #EventManagement #Events #EveryonesInvited #Exoplanet #Exploration #Exploration F #FalconsEye #Federated #Fediverse #Firefox #Flockingbird #Football #FootBall #Fosdem #FOSSandCrafts #FossileFuels #Foundation #Framablog #FramaBlog #Framework #FreeBSD #FreeBSD #Freedom #FreeSoftware #Friendica #Friendica #FSF #FSFE #Funkwhale #Fusion #FutureLearn G #Galaxy #Galculator #Games #Gamma #GDPR #GettingStarted #Ghostreply #Gimp #Git #Gitlab #GitLab #gm #GNOME #GNU #GnuSocial #GoAccess #GoatCounter #GoDot #gold #GPL #GraphicsMagick #Greek #Guanine #GUI H #Hack #Hacking #Hardware #Hexchat #HomeChemistry #HomeChemistry1 #HomeChemistry10 #HomeChemistry11 #HomeChemistry12 #HomeChemistry13 #HomeChemistry14 #HomeChemistry15 #HomeChemistry16 #HomeChemistry17 #HomeChemistry18 #HomeChemistry2 #HomeChemistry3 #HomeChemistry4 #HomeChemistry5 #HomeChemistry6 #HomeChemistry7 #HomeChemistry8 #HomeChemistry9 #Hosting #htop #Hubble #Hubzilla #HumanRights #Hypothesis I #Image #ImageManipulation #Index #InfoGraphic #information #Inkscape #Invidious #IRC J #JamesWebb #Jit.si #Jitsi #JoeEditor #jpl #JPL #Jupyter #JupyterNotebook #JWST K #Kanban #kbin #KCSIE #KDE #KeepingChildrenSafeinEducation, #Kenya #kstars L #LaTeX #Law #Learning #Lecture #Legal #Legislation #Lemmy #LGPL #LiberaPay #Libre #LibreAdventure #LibreLounge #Librem #Libreoffice #LibreOffice #LibreOfficeCalc #LibreOfficeDraw #LibreOfficeGettingStarted #LibreOfficeImpres #LibreOfficeWriter #LibrePlanet #Linux #LinuxMint #LXDE #Lynx M #Magnesium #Management #Manganese #Map #Mapscii #Mars #Mastodon #Materials #Matomo #Matrix #Maya #Meeting #Meetings #mercury #Mercury #Meta #Micro.blog #mining #Misskey #mobile #Mobile #Mobilizon #Mobilizon #MolarSolutionCalculator #Moon N #NaCl #Nano #NationsLeague #Nebula #NetHack #network #NewSkillsAcademy #Nextcloud #NFL #NGINX #Nuclear #NuclearFusion #Nucleobases O #Oil #OilProducts #Online #Online #OnlineSafetyBill #Open #OpenData #OpenLearn #OpenStreetMap #OpenUniversity #Orbitals #OU #Overleaf #Owncast #OwnCloud P #Package #PaigntonLibrarySTEMGroup #Pandas #Paper #ParticlePhysics #Particles #Password #Payment #Paypal #PDF #PeerTube #PeriodicTable #Phonics #Photo #Photograph #Photographs #Photos #Physics #pinebook #pinephone #PixelFed #Planet #Plausible #Pleroma #Plume #Podcast #PowderToy #Privacy #Production #Products #Programming #ProtoSchool #Public #Purism #Python #Python3 Q #Quark #Quarks R #RadioAstronomy #Reading #Recovery #RedBubble #Research #Rights #rna #RNA #RocksAndDiamonds #Rookie #RookieCamp #RedCabbage #RISC #RISCV S #Safeguarding #Safety #Salt #Schools #Science #ScienceDaily #Scismic #Scratch #Scratch2 #Scratch3 #SDTJ #Seagl #Security #Simulator #Sitejs #Skymaps #smallweb #Soccer #Social #SocialHome #SocialHub #SodiumChloride #Solarus #Solid #SouthDevonTechJam #Space #Stars #Stellarium #Stickers #Stripe #stsci #Symmetry #Synaptic T #Tailings #Talk #Teaching #TeachingAssistant #Techlearningcollective #Telescope #Terminal #Terms #TeX #TextEditor #TheOpenUniversity #Theory #TheOU #Thesis #Thunar #Thunderbird #Thymine #Tilde #Toot #Top #Topic #Torbay #TorbayTrojans #Transit #Translation #Trojans #Trunk #Tuxiversity U #Ulytsheavy #Umami #UN #UnitedKingdom #UnitedNations #UniverseOfLearning #Uracil #Use #users V #Vaccine #Virgo #VLC #VokoScreen #Volunteer #Volunteering #VultureNethack #vultureseye W #wayland #weatherinfo #Website #wicd #wireless #Wordpress #Work #WorldCup #WorldSpaceWeek #Wormhole #Write.as #Write freely #Writing #WhiteVinegar X #Xchat #XenonLamp #XFCE #XFCE4 #XMPP #xorg #Xournal #xray Y #YearOfTheFediverse Z #Zoo

#Climate #Science #Ocean #Atlantic #Warming

Resistor boards

This is a repost and update for a previous post. I am posting this here too.

As the next Paignton Library Stem Group meeting is

Date : Saturday 9th April 2022 Times : 11am –> 15:00

In preparation for the next event, I have been working on creating some electronics resources to demonstrate at the event.

These are quite simple to make, solder on headers and which ever component is needed for that particular board

Electronics 1

Various resistors 270ohm 330ohm 1k ohm 10k ohm

As of 23/3/2022 I have made up the following:-

  • 20K
  • 1 M
  • 2,2K
  • 15K
  • 80k

Which I hope to use for demonstrating voltage dividers.

A few pictures of some previous boards, that I have built up.

Electronics 1

Power supply, we need to get power from a battery to the circuit.

Electronics 1

Reed switch (not soldered), 1uF capacitors (soldered) and a switch block, not soldered as I want to figure out which switch block to use (I have a few)

Electronics 1

I have added a 3 way header as this allows for:

  • Components to be attached together
  • Branches in circuits
  • Connection of meters, scopes and other equipment

It should be possible to build a circuit that, internally will flash, for example an LED then use a scope to examine the frequencies at different points in the circuit.

I plan to solder up other component boards. Hopefully I will have something to demonstrate, but other visitors should be able to have a go.

TAGS

#Electronics,#STEM,#STEMGroup,

Building a ping pong ball shooter – part 2

Building a ping pong ball shooter

Further to the previous post, the ball shooter is now built up. I do need to solder this together, at some point. For now, it works as it is. This is the test I did at the library (more space).

Links

TAGS

#YearOfTheFediverse,#FediverseRising,#Science,#Technology,#Engineering,#PingPongBall,#Shooter,#Electronics,#Projects, #LookingForEmployment.#LookingForOpportunities


Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Building a ping pong ball shooter

Building a ping pong ball shooter

As part of an order from Better Equipped, I sent for a ping pong ball shooter. This consists of two rotating disks, which propel a ping pong ball forward.

So far, I have only partly built this. I need to do some soldering to complete. I also want to find a safe place to test it. This project will be demonstrated at the Paignton Library STEM group, but could be used in a school too. This would support, Science, Maths, Design & Technology and possibly other subjects.

Photos

shooter 1

Front showing wheels.

shooter 2

Note : Final wiring will be different to this.

shooter 3

Rear showing motors.

Links

TAGS

#YearOfTheFediverse,#FediverseRising,#Science,#Technology,#Engineering,#PingPongBall,#Shooter,#Electronics,#Projects, #LookingForEmployment.#LookingForOpportunities


Donate using Liberapay

Creative Commons Licence
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License

Code Club 4/12/2021 update

The next Club will be on Saturday 4th December 2021 @ Paignton Library. Please contact the library to book.

We will carry on with what we were doing last session, hopefully expand on what we were doing with the Micro:bit

In order to try and support this further, I have created a little connector board to help connect components to the Micro:bit computer.

Connector Board 1

Board and servo. The issue with the servo normally is that connecting to a Micro:bit with croc clips you need a solid connection. If you remove the connector you are simply left with very thin, multi core wire.

Connector Board 2

This board just bridges the gap, plug the board connector in to the top.

Connector Board 3

Then connect the crocodile clip(s) to the other set of connectors

Connector Board 4

A close up of the connection.

Please note: There is nothing special about doing this, I just soldered this up in the hope it may make things easier at code club. The servo could be swapped out for other sensors, for example a moisture sensor.

Update 2/12/2021

I have also created an LED board to go with the overall set of boards being created.

Connector Board 4

Links

Tags

#CodeClub,#FreeCodeCamp,#Microbit,#Scratch,#Electronics, #Technology,#Problem,#Solving

STEM GROUP MEETING

The Paignton STEM Group's aim is to bring together people who are interested in Science, Technology, Engineering and Maths. Provide a safe space for discussion, showcasing of projects and to encourage and advocate STEM subjects.

The first Paignton Library Stem Group meeting is

Date : Saturday 13th November 2021 Times : 11am –> 1pm & 1pm to 3pm

Booking essential. Under 8's must be accompanied by a parent.

01803 714 460 for details / booking

In preparation for this, I have been working on creating some electronics resources to demonstrate at the event.

These are quite simple to make, solder on headers and which ever component is needed for that particular board

Electronics 1

Various resistors 270ohm 330ohm 1k ohm 10k ohm

Electronics 1

Power supply, we need to get power from a battery to the circuit.

Electronics 1

Reed switch (not soldered), 1uF capacitors (soldered) and a switch block, not soldered as I want to figure out which switch block to use (I have a few)

Electronics 1

Transistor NPN 2n222A

All soldered up so they can just be wired up.

I have added a 3 way header as this allows for:

  • Components to be attached together
  • Branches in circuits
  • Connection of meters, scopes and other equipment

It should be possible to build a circuit that, internally will flash, for example an LED then use a scope to examine the frequencies at different points in the circuit.

I plans to solder up other component boards. Hopefully I will have something to demonstrate, but other visitors should be able to have a go.

TAGS

#Electronics,#STEM,#STEMGroup,