From ceri.clatworthy at gmail.com Wed May 6 16:37:43 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Wed, 6 May 2015 16:37:43 +0100 Subject: [Swansea Hackspace] Hackers poster Message-ID: Just had a look for a poster, to put in a few strategic places, Can't seem to find one, found stuff for swamp fest, and some business cards, But no poster. Is there one ?? (approved) Cheers Ceri -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at swansea.hackspace.org.uk Wed May 6 20:41:48 2015 From: justin at swansea.hackspace.org.uk (Justin Mitchell) Date: Wed, 06 May 2015 20:41:48 +0100 Subject: [Swansea Hackspace] Hackers poster In-Reply-To: References: Message-ID: <1430941308.30328.2.camel@emerald.geode.org.uk> On Wed, 2015-05-06 at 16:37 +0100, Ceri Clatworthy wrote: > Just had a look for a poster, to put in a few strategic places, > > > Can't seem to find one, found stuff for swamp fest, > and some business cards, > > > But no poster. > > > Is there one ?? (approved) No, this is something that really needs doing. but it needs doing by someone that's actually good at graphic design, unlike my previous attempts. Once we have a good design then we need members to go and find interesting places to put them to spread the word. From paul at harwood-leon.com Wed May 6 20:46:05 2015 From: paul at harwood-leon.com (Paul Harwood) Date: Wed, 6 May 2015 20:46:05 +0100 Subject: [Swansea Hackspace] Hackers poster In-Reply-To: <1430941308.30328.2.camel@emerald.geode.org.uk> References: <1430941308.30328.2.camel@emerald.geode.org.uk> Message-ID: <171D6228-62C2-4367-AECF-E10EBD1D075C@harwood-leon.com> If someone can give us a hand to get the hallway screens working, pretty trivial job - we can do a skill swap for designing the posters. ? Paul > On 6 May 2015, at 20:41, Justin Mitchell wrote: > > On Wed, 2015-05-06 at 16:37 +0100, Ceri Clatworthy wrote: >> Just had a look for a poster, to put in a few strategic places, >> >> >> Can't seem to find one, found stuff for swamp fest, >> and some business cards, >> >> >> But no poster. >> >> >> Is there one ?? (approved) > > No, this is something that really needs doing. > > but it needs doing by someone that's actually good at graphic design, > unlike my previous attempts. > > Once we have a good design then we need members to go and find > interesting places to put them to spread the word. > > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace From timmoore47 at gmail.com Fri May 8 17:58:56 2015 From: timmoore47 at gmail.com (Tim Moore) Date: Fri, 8 May 2015 17:58:56 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: References: <77cee00f-d08d-44bc-83f3-403b60b4bf66@email.android.com> <1429383539.17143.1.camel@emerald.geode.org.uk> Message-ID: Well made sort of progress:- Got a 3D stepper type 17H16-2994S in the hope it would be powerful enough to drive the thing I want to rotate. Based on an Arduino Uno with a L298N stepper controller, I found this software which I adapted for just one motor. quote // connect motor controller pins to Arduino digital pins // motor one int enA = 10; int in1 = 9; int in2 = 8; // motor two // int enB = 5; // int in3 = 7; // int in4 = 6; void setup() { // set all the motor control pins to outputs pinMode(enA, OUTPUT); // pinMode(enB, OUTPUT); pinMode(in1, OUTPUT); pinMode(in2, OUTPUT); // pinMode(in3, OUTPUT); // pinMode(in4, OUTPUT); } void demoOne() { // this function will run the motors in both directions at a fixed speed // turn on motor A digitalWrite(in1, HIGH); digitalWrite(in2, LOW); // set speed to 200 out of possible range 0~255 analogWrite(enA, 200); // turn on motor B // digitalWrite(in3, HIGH); // digitalWrite(in4, LOW); // set speed to 200 out of possible range 0~255 // analogWrite(enB, 200); delay(2000); // now change motor directions digitalWrite(in1, LOW); digitalWrite(in2, HIGH); // digitalWrite(in3, LOW); // digitalWrite(in4, HIGH); //delay(2000); // now turn off motors digitalWrite(in1, LOW); digitalWrite(in2, LOW); // digitalWrite(in3, LOW); // digitalWrite(in4, LOW); } void demoTwo() { // this function will run the motors across the range of possible speeds // note that maximum speed is determined by the motor itself and the operating voltage // the PWM values sent by analogWrite() are fractions of the maximum speed possible // by your hardware // turn on motors digitalWrite(in1, LOW); digitalWrite(in2, HIGH); // digitalWrite(in3, LOW); // digitalWrite(in4, HIGH); // accelerate from zero to maximum speed for (int i = 0; i < 256; i++) { analogWrite(enA, i); // analogWrite(enB, i); delay(20); } // decelerate from maximum speed to zero for (int i = 255; i >= 0; --i) { analogWrite(enA, i); // analogWrite(enB, i); delay(20); } // now turn off motors digitalWrite(in1, LOW); digitalWrite(in2, LOW); // digitalWrite(in3, LOW); // digitalWrite(in4, LOW); } void loop() { demoOne(); delay(1000); demoTwo(); delay(1000); } Wired it all up with a 12V 5A power supply and the stepper shaft twitched a bit , but the L298N emitted a puff of smoke and the heatsink got very hot ! Now I've checked the Arduino Uno and it seems aok. The stepper motor measure 2.7 Ohm from the +12v rail to nearest motor pin, ditto earth to nearest pin. Applying 1.5V at 0.8 Amp to the each of the pair of wires the shaft stops being rotatable. the two motor wires are at infinity. I've assumed that's a sign that I've not killed the stepper motor. Now before I get another L298N, I thought a few precautions are worth while ! Slaying a series of L298N's doesn't seem that smart !!! *LOL* Any thoughts from anyone as to what to investigate next ? (I thought perhaps the software was wrong for this model of stepper motor ? I'm capable of making crass errors here..) : ) Tim_1 On 19 April 2015 at 11:41, Ceri Clatworthy wrote: > Reverse. .. > > If ULN 2003... > The wiggle pins in other direction! !! > On 19 Apr 2015 11:23, "Tim Moore" wrote: > >> Many thanks Ceri for the tip ! Greatly appreciated ! >> >> : ))) >> >> Tim_1 >> >> On 19 April 2015 at 11:21, Tim Moore wrote: >> >>> Update:- >>> >>> It may not be very riveting but the change to 6400 (and the deletion of >>> */ at the top of the code worked fine ! >>> >>> the count for >>> 90 deg was 500 and time 52.5 secs >>> 180 deg was 1000 105 >>> 270 deg was 1500 157.5 >>> 360 deg was 2000 210 secs ( 3m 30 secs) approx >>> >>> (I hope !) >>> >>> Now this might be very boring, but it also might help a Newbie to >>> stepper motors test their new purchase out too ! >>> >>> Anyone know if the controller board can make it go in reverse ? >>> >>> : ))) >>> >>> Tim_1 >>> >>> On 19 April 2015 at 10:23, Tim Moore wrote: >>> >>>> I've been trying to get this working on a 28BYJ-48 with ULN2003 >>>> cheapest stepper motor set up. >>>> >>>> Created 30 Nov. 2009 >>>> by Tom Igoe >>>> >>>> */ >>>> >>>> #include >>>> >>>> const int stepsPerRevolution = 1440; // change this to fit the number >>>> of steps per revolution >>>> // for your motor >>>> >>>> // initialize the stepper library on pins 8 through 11: >>>> Stepper myStepper(stepsPerRevolution, 8,9,10,11); >>>> >>>> int stepCount = 0; // number of steps the motor has taken >>>> >>>> void setup() { >>>> // initialize the serial port: >>>> Serial.begin(9600); >>>> } >>>> >>>> void loop() { >>>> // step one step: >>>> myStepper.step(1); >>>> Serial.print("steps:" ); >>>> Serial.println(stepCount); >>>> stepCount++; >>>> delay(100); >>>> } >>>> >>>> >>>> Spec:- >>>> >>>> >>>> >>>> - >>>> - Voltage : 5V >>>> - Diameter : 28mm >>>> - Step angle : 5.625 x 1 / 64 >>>> - Reduction ratio : 1 / 64 >>>> - 5 Line 4 phase >>>> - Current draw : 92mA >>>> - Operating Frequency : 100pps >>>> - Dimensions : 35mm x 28mm >>>> - 4 mounting holes >>>> - ULN2003 chip >>>> - A, B, C, D four-phase status LED >>>> >>>> ___ >>>> >>>> >>>> Now the divide by 64 seems to be a stumbling block ? >>>> >>>> What I'm trying to do is use the 1.8 degree characteristic to get 100 >>>> pulses to achieve a total rotation of 180 degrees to the shaft. >>>> >>>> A period of anything up to two minutes is fine for the 180 degree >>>> rotation. >>>> >>>> So far it twitches a bit but not much else e.g. not very exciting. >>>> >>>> Should the stepsPerRevolution = 1440 be changed to stepsPerRevolution >>>> = 6400 ? >>>> >>>> Maybe I've got the Arduino pins a tad wrong ? >>>> >>>> : ) >>>> >>>> >>>> Tim_1 >>>> >>>> >>>> >>>> On 18 April 2015 at 19:58, Justin Mitchell < >>>> justin at swansea.hackspace.org.uk> wrote: >>>> >>>>> Yes, one motor one step-stick. >>>>> >>>>> Control it from an arduino, or any other micro, just needs two GPIO >>>>> lines. >>>>> >>>>> >>>>> On Sat, 2015-04-18 at 16:04 +0100, Tim Moore wrote: >>>>> > So a single 'step-stick' would do it ? >>>>> > >>>>> > >>>>> > Many thanks for responding ! >>>>> > >>>>> > : ))) >>>>> > >>>>> > >>>>> > Tim_1 >>>>> > >>>>> > >>>>> > On 18 April 2015 at 15:09, Justin Mitchell >>>>> > wrote: >>>>> > It's an interface for all the stuff you need to drive a 3d >>>>> > printer, takes 5 step-sticks for stepper driving, has power >>>>> > MOSFETs to pwm the hotends and heated bed, and a bunch of >>>>> > inputs for end stops and thermistors. You plug it into an >>>>> > Arduino mega board, install some software like Marlin and it >>>>> > can run your printer, or mixed to control a CNC mill or laser >>>>> > cutter. >>>>> > >>>>> > Way over kill for driving one motor :) >>>>> > >>>>> > On 18 Apr 2015 2:51 pm, Tim Moore >>>>> > wrote: >>>>> > > >>>>> > > Wow ! Loads of interesting links and ideas ! >>>>> > > >>>>> > > Its a very slow rotation, so inertia is not a problem. >>>>> > > >>>>> > > Is a 'RAMPS 1.4' useful ? what does it do ? >>>>> > > >>>>> > > Many thanks to all who have responded ! >>>>> > > >>>>> > > : ))) >>>>> > > >>>>> > > Tim_1 >>>>> > > >>>>> > > On 18 April 2015 at 13:57, oliver Oliver >>>>> > wrote: >>>>> > >> >>>>> > >> Think about pulleys or gears. I don't know if you want >>>>> the >>>>> > pole to stop at a particular point or not. Inertia in 1m >>>>> pole >>>>> > will be higher than braking force of a stepper motor. So it >>>>> > will continue to spin after you stop the motor. Giving you an >>>>> > unpredictable 180 plus rotation. >>>>> > >> >>>>> > >> For a pulley arrangement look at t5 timing belts. you >>>>> can >>>>> > easily print the pulleys using a reprap. There are libraries >>>>> > on thingiverse. >>>>> > >> >>>>> > >> A worm gear would be better, but you can't print those. >>>>> > >> >>>>> > >> Oli >>>>> > >> >>>>> > >> On 18 Apr 2015 12:33, "Tim Moore" >>>>> > wrote: >>>>> > >>> >>>>> > >>> I'm trying to carefully rorate a metre long light weight >>>>> > pole through 180 degrees. >>>>> > >>> >>>>> > >>> I've got a Stepper Motor type 28BYJ-48 working fine, but >>>>> > I'm sure I need one that is a bit more chunky ! >>>>> > >>> >>>>> > >>> I've got a 17HS16-2004S NEMA 17 (42 x 42 mm) high torque >>>>> > 1.8 degree stepper motor on the way with a controller card >>>>> > >>> >>>>> > >>> But I've not got a very clear vision yet what else I >>>>> might >>>>> > need and if there is any Arduino example software listing >>>>> that >>>>> > would be good to use to get it to work ? >>>>> > >>> >>>>> > >>> I don't want to reinvent the wheel ! *LOL* >>>>> > >>> >>>>> > >>> Any thoughts anyone ? >>>>> > >>> >>>>> > >>> : ))) >>>>> > >>> >>>>> > >>> Tim_1 >>>>> > >>> >>>>> > >>> _______________________________________________ >>>>> > >>> Hackspace mailing list >>>>> > >>> Hackspace at swansea.hackspace.org.uk >>>>> > >>> >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> > >>> >>>>> > >> >>>>> > >> _______________________________________________ >>>>> > >> Hackspace mailing list >>>>> > >> Hackspace at swansea.hackspace.org.uk >>>>> > >> >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> > >> >>>>> > > >>>>> > _______________________________________________ >>>>> > Hackspace mailing list >>>>> > Hackspace at swansea.hackspace.org.uk >>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> > >>>>> > >>>>> > >>>>> > _______________________________________________ >>>>> > Hackspace mailing list >>>>> > Hackspace at swansea.hackspace.org.uk >>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>> >>>> >>> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ceri.clatworthy at gmail.com Fri May 8 22:03:23 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Fri, 8 May 2015 22:03:23 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: References: <77cee00f-d08d-44bc-83f3-403b60b4bf66@email.android.com> <1429383539.17143.1.camel@emerald.geode.org.uk> Message-ID: Fetch in in Monday an we will get it going Unless the magic blue smoke has been released Ceri On 8 May 2015 17:59, "Tim Moore" wrote: > Well made sort of progress:- > > Got a 3D stepper type 17H16-2994S in the hope it would be powerful > enough to drive the thing I want to rotate. > > Based on an Arduino Uno with a L298N stepper controller, > > I found this software which I adapted for just one motor. > > quote > > // connect motor controller pins to Arduino digital pins > // motor one > int enA = 10; > int in1 = 9; > int in2 = 8; > // motor two > // int enB = 5; > // int in3 = 7; > // int in4 = 6; > void setup() > { > // set all the motor control pins to outputs > pinMode(enA, OUTPUT); > // pinMode(enB, OUTPUT); > pinMode(in1, OUTPUT); > pinMode(in2, OUTPUT); > // pinMode(in3, OUTPUT); > // pinMode(in4, OUTPUT); > } > void demoOne() > { > // this function will run the motors in both directions at a fixed speed > // turn on motor A > digitalWrite(in1, HIGH); > digitalWrite(in2, LOW); > // set speed to 200 out of possible range 0~255 > analogWrite(enA, 200); > // turn on motor B > // digitalWrite(in3, HIGH); > // digitalWrite(in4, LOW); > // set speed to 200 out of possible range 0~255 > // analogWrite(enB, 200); > delay(2000); > // now change motor directions > digitalWrite(in1, LOW); > digitalWrite(in2, HIGH); > // digitalWrite(in3, LOW); > // digitalWrite(in4, HIGH); > //delay(2000); > // now turn off motors > digitalWrite(in1, LOW); > digitalWrite(in2, LOW); > // digitalWrite(in3, LOW); > // digitalWrite(in4, LOW); > } > void demoTwo() > { > // this function will run the motors across the range of possible speeds > // note that maximum speed is determined by the motor itself and the > operating voltage > // the PWM values sent by analogWrite() are fractions of the maximum > speed possible > // by your hardware > // turn on motors > digitalWrite(in1, LOW); > digitalWrite(in2, HIGH); > // digitalWrite(in3, LOW); > // digitalWrite(in4, HIGH); > // accelerate from zero to maximum speed > for (int i = 0; i < 256; i++) > { > analogWrite(enA, i); > // analogWrite(enB, i); > delay(20); > } > // decelerate from maximum speed to zero > for (int i = 255; i >= 0; --i) > { > analogWrite(enA, i); > // analogWrite(enB, i); > delay(20); > } > // now turn off motors > digitalWrite(in1, LOW); > digitalWrite(in2, LOW); > // digitalWrite(in3, LOW); > // digitalWrite(in4, LOW); > } > void loop() > { > demoOne(); > delay(1000); > demoTwo(); > delay(1000); > } > > > Wired it all up with a 12V 5A power supply and the stepper shaft twitched > a bit , but the L298N emitted a puff of smoke and the heatsink got very hot > ! > > Now I've checked the Arduino Uno and it seems aok. > > The stepper motor measure 2.7 Ohm from the +12v rail to nearest motor pin, > ditto earth to nearest pin. > > Applying 1.5V at 0.8 Amp to the each of the pair of wires the shaft stops > being rotatable. the two motor wires are at infinity. > > I've assumed that's a sign that I've not killed the stepper motor. > > Now before I get another L298N, I thought a few precautions are worth > while ! Slaying a series of L298N's doesn't seem that smart !!! *LOL* > > Any thoughts from anyone as to what to investigate next ? (I thought > perhaps the software was wrong for this model of stepper motor ? I'm > capable of making crass errors here..) > > : ) > > Tim_1 > > On 19 April 2015 at 11:41, Ceri Clatworthy > wrote: > >> Reverse. .. >> >> If ULN 2003... >> The wiggle pins in other direction! !! >> On 19 Apr 2015 11:23, "Tim Moore" wrote: >> >>> Many thanks Ceri for the tip ! Greatly appreciated ! >>> >>> : ))) >>> >>> Tim_1 >>> >>> On 19 April 2015 at 11:21, Tim Moore wrote: >>> >>>> Update:- >>>> >>>> It may not be very riveting but the change to 6400 (and the deletion of >>>> */ at the top of the code worked fine ! >>>> >>>> the count for >>>> 90 deg was 500 and time 52.5 secs >>>> 180 deg was 1000 105 >>>> 270 deg was 1500 157.5 >>>> 360 deg was 2000 210 secs ( 3m 30 secs) approx >>>> >>>> (I hope !) >>>> >>>> Now this might be very boring, but it also might help a Newbie to >>>> stepper motors test their new purchase out too ! >>>> >>>> Anyone know if the controller board can make it go in reverse ? >>>> >>>> : ))) >>>> >>>> Tim_1 >>>> >>>> On 19 April 2015 at 10:23, Tim Moore wrote: >>>> >>>>> I've been trying to get this working on a 28BYJ-48 with ULN2003 >>>>> cheapest stepper motor set up. >>>>> >>>>> Created 30 Nov. 2009 >>>>> by Tom Igoe >>>>> >>>>> */ >>>>> >>>>> #include >>>>> >>>>> const int stepsPerRevolution = 1440; // change this to fit the number >>>>> of steps per revolution >>>>> // for your motor >>>>> >>>>> // initialize the stepper library on pins 8 through 11: >>>>> Stepper myStepper(stepsPerRevolution, 8,9,10,11); >>>>> >>>>> int stepCount = 0; // number of steps the motor has taken >>>>> >>>>> void setup() { >>>>> // initialize the serial port: >>>>> Serial.begin(9600); >>>>> } >>>>> >>>>> void loop() { >>>>> // step one step: >>>>> myStepper.step(1); >>>>> Serial.print("steps:" ); >>>>> Serial.println(stepCount); >>>>> stepCount++; >>>>> delay(100); >>>>> } >>>>> >>>>> >>>>> Spec:- >>>>> >>>>> >>>>> >>>>> - >>>>> - Voltage : 5V >>>>> - Diameter : 28mm >>>>> - Step angle : 5.625 x 1 / 64 >>>>> - Reduction ratio : 1 / 64 >>>>> - 5 Line 4 phase >>>>> - Current draw : 92mA >>>>> - Operating Frequency : 100pps >>>>> - Dimensions : 35mm x 28mm >>>>> - 4 mounting holes >>>>> - ULN2003 chip >>>>> - A, B, C, D four-phase status LED >>>>> >>>>> ___ >>>>> >>>>> >>>>> Now the divide by 64 seems to be a stumbling block ? >>>>> >>>>> What I'm trying to do is use the 1.8 degree characteristic to get 100 >>>>> pulses to achieve a total rotation of 180 degrees to the shaft. >>>>> >>>>> A period of anything up to two minutes is fine for the 180 degree >>>>> rotation. >>>>> >>>>> So far it twitches a bit but not much else e.g. not very exciting. >>>>> >>>>> Should the stepsPerRevolution = 1440 be changed to stepsPerRevolution >>>>> = 6400 ? >>>>> >>>>> Maybe I've got the Arduino pins a tad wrong ? >>>>> >>>>> : ) >>>>> >>>>> >>>>> Tim_1 >>>>> >>>>> >>>>> >>>>> On 18 April 2015 at 19:58, Justin Mitchell < >>>>> justin at swansea.hackspace.org.uk> wrote: >>>>> >>>>>> Yes, one motor one step-stick. >>>>>> >>>>>> Control it from an arduino, or any other micro, just needs two GPIO >>>>>> lines. >>>>>> >>>>>> >>>>>> On Sat, 2015-04-18 at 16:04 +0100, Tim Moore wrote: >>>>>> > So a single 'step-stick' would do it ? >>>>>> > >>>>>> > >>>>>> > Many thanks for responding ! >>>>>> > >>>>>> > : ))) >>>>>> > >>>>>> > >>>>>> > Tim_1 >>>>>> > >>>>>> > >>>>>> > On 18 April 2015 at 15:09, Justin Mitchell >>>>> > >>>>>> > wrote: >>>>>> > It's an interface for all the stuff you need to drive a 3d >>>>>> > printer, takes 5 step-sticks for stepper driving, has power >>>>>> > MOSFETs to pwm the hotends and heated bed, and a bunch of >>>>>> > inputs for end stops and thermistors. You plug it into an >>>>>> > Arduino mega board, install some software like Marlin and it >>>>>> > can run your printer, or mixed to control a CNC mill or >>>>>> laser >>>>>> > cutter. >>>>>> > >>>>>> > Way over kill for driving one motor :) >>>>>> > >>>>>> > On 18 Apr 2015 2:51 pm, Tim Moore >>>>>> > wrote: >>>>>> > > >>>>>> > > Wow ! Loads of interesting links and ideas ! >>>>>> > > >>>>>> > > Its a very slow rotation, so inertia is not a problem. >>>>>> > > >>>>>> > > Is a 'RAMPS 1.4' useful ? what does it do ? >>>>>> > > >>>>>> > > Many thanks to all who have responded ! >>>>>> > > >>>>>> > > : ))) >>>>>> > > >>>>>> > > Tim_1 >>>>>> > > >>>>>> > > On 18 April 2015 at 13:57, oliver Oliver >>>>>> > wrote: >>>>>> > >> >>>>>> > >> Think about pulleys or gears. I don't know if you want >>>>>> the >>>>>> > pole to stop at a particular point or not. Inertia in 1m >>>>>> pole >>>>>> > will be higher than braking force of a stepper motor. So it >>>>>> > will continue to spin after you stop the motor. Giving you >>>>>> an >>>>>> > unpredictable 180 plus rotation. >>>>>> > >> >>>>>> > >> For a pulley arrangement look at t5 timing belts. you >>>>>> can >>>>>> > easily print the pulleys using a reprap. There are >>>>>> libraries >>>>>> > on thingiverse. >>>>>> > >> >>>>>> > >> A worm gear would be better, but you can't print those. >>>>>> > >> >>>>>> > >> Oli >>>>>> > >> >>>>>> > >> On 18 Apr 2015 12:33, "Tim Moore" >>>>>> > wrote: >>>>>> > >>> >>>>>> > >>> I'm trying to carefully rorate a metre long light weight >>>>>> > pole through 180 degrees. >>>>>> > >>> >>>>>> > >>> I've got a Stepper Motor type 28BYJ-48 working fine, but >>>>>> > I'm sure I need one that is a bit more chunky ! >>>>>> > >>> >>>>>> > >>> I've got a 17HS16-2004S NEMA 17 (42 x 42 mm) high torque >>>>>> > 1.8 degree stepper motor on the way with a controller card >>>>>> > >>> >>>>>> > >>> But I've not got a very clear vision yet what else I >>>>>> might >>>>>> > need and if there is any Arduino example software listing >>>>>> that >>>>>> > would be good to use to get it to work ? >>>>>> > >>> >>>>>> > >>> I don't want to reinvent the wheel ! *LOL* >>>>>> > >>> >>>>>> > >>> Any thoughts anyone ? >>>>>> > >>> >>>>>> > >>> : ))) >>>>>> > >>> >>>>>> > >>> Tim_1 >>>>>> > >>> >>>>>> > >>> _______________________________________________ >>>>>> > >>> Hackspace mailing list >>>>>> > >>> Hackspace at swansea.hackspace.org.uk >>>>>> > >>> >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> > >>> >>>>>> > >> >>>>>> > >> _______________________________________________ >>>>>> > >> Hackspace mailing list >>>>>> > >> Hackspace at swansea.hackspace.org.uk >>>>>> > >> >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> > >> >>>>>> > > >>>>>> > _______________________________________________ >>>>>> > Hackspace mailing list >>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> > >>>>>> > >>>>>> > >>>>>> > _______________________________________________ >>>>>> > Hackspace mailing list >>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Hackspace mailing list >>>>>> Hackspace at swansea.hackspace.org.uk >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> >>>>> >>>>> >>>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From djdavies83 at hotmail.com Fri May 8 22:14:44 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Fri, 8 May 2015 22:14:44 +0100 Subject: [Swansea Hackspace] CHIP, world's first $9 computer Message-ID: Has anyone seen this thing? It's storming it's way passed the funding goal.... https://www.kickstarter.com/projects/1598272670/chip-the-worlds-first-9-computer I was about to pledge for a single CHIP but shipping pushes the price to $29, there is a pledge for Kernel hackers only which gives the pocket chip, a pre-release alfa chips and 10 regular CHIPs. I'm sure there is at least one kernel hacker in our midst, if so, shall we club together for that pledge?? If we can do something really smart with Kernel or projects we may even wind up with some publicity. No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. -------------- next part -------------- An HTML attachment was scrubbed... URL: From timmoore47 at gmail.com Sat May 9 07:09:10 2015 From: timmoore47 at gmail.com (Tim Moore) Date: Sat, 9 May 2015 07:09:10 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: References: <77cee00f-d08d-44bc-83f3-403b60b4bf66@email.android.com> <1429383539.17143.1.camel@emerald.geode.org.uk> Message-ID: Magic blue smoke was released ! : ((( So I've ordered another from China. I'll double check everything, as H configuration can short +12V to ground so easily ! Software can do that ! ? On another matter the L298N has two little cans marked '220 35V UT', I've pnly recently come across them. What are they ? Is there any favoured software to drive them that is known to work Arduino friendly? Many many thanks for responding ! : ))) Tim_1 On 8 May 2015 at 22:03, Ceri Clatworthy wrote: > Fetch in in Monday an we will get it going > > Unless the magic blue smoke has been released > Ceri > On 8 May 2015 17:59, "Tim Moore" wrote: > >> Well made sort of progress:- >> >> Got a 3D stepper type 17H16-2994S in the hope it would be powerful >> enough to drive the thing I want to rotate. >> >> Based on an Arduino Uno with a L298N stepper controller, >> >> I found this software which I adapted for just one motor. >> >> quote >> >> // connect motor controller pins to Arduino digital pins >> // motor one >> int enA = 10; >> int in1 = 9; >> int in2 = 8; >> // motor two >> // int enB = 5; >> // int in3 = 7; >> // int in4 = 6; >> void setup() >> { >> // set all the motor control pins to outputs >> pinMode(enA, OUTPUT); >> // pinMode(enB, OUTPUT); >> pinMode(in1, OUTPUT); >> pinMode(in2, OUTPUT); >> // pinMode(in3, OUTPUT); >> // pinMode(in4, OUTPUT); >> } >> void demoOne() >> { >> // this function will run the motors in both directions at a fixed speed >> // turn on motor A >> digitalWrite(in1, HIGH); >> digitalWrite(in2, LOW); >> // set speed to 200 out of possible range 0~255 >> analogWrite(enA, 200); >> // turn on motor B >> // digitalWrite(in3, HIGH); >> // digitalWrite(in4, LOW); >> // set speed to 200 out of possible range 0~255 >> // analogWrite(enB, 200); >> delay(2000); >> // now change motor directions >> digitalWrite(in1, LOW); >> digitalWrite(in2, HIGH); >> // digitalWrite(in3, LOW); >> // digitalWrite(in4, HIGH); >> //delay(2000); >> // now turn off motors >> digitalWrite(in1, LOW); >> digitalWrite(in2, LOW); >> // digitalWrite(in3, LOW); >> // digitalWrite(in4, LOW); >> } >> void demoTwo() >> { >> // this function will run the motors across the range of possible speeds >> // note that maximum speed is determined by the motor itself and the >> operating voltage >> // the PWM values sent by analogWrite() are fractions of the maximum >> speed possible >> // by your hardware >> // turn on motors >> digitalWrite(in1, LOW); >> digitalWrite(in2, HIGH); >> // digitalWrite(in3, LOW); >> // digitalWrite(in4, HIGH); >> // accelerate from zero to maximum speed >> for (int i = 0; i < 256; i++) >> { >> analogWrite(enA, i); >> // analogWrite(enB, i); >> delay(20); >> } >> // decelerate from maximum speed to zero >> for (int i = 255; i >= 0; --i) >> { >> analogWrite(enA, i); >> // analogWrite(enB, i); >> delay(20); >> } >> // now turn off motors >> digitalWrite(in1, LOW); >> digitalWrite(in2, LOW); >> // digitalWrite(in3, LOW); >> // digitalWrite(in4, LOW); >> } >> void loop() >> { >> demoOne(); >> delay(1000); >> demoTwo(); >> delay(1000); >> } >> >> >> Wired it all up with a 12V 5A power supply and the stepper shaft twitched >> a bit , but the L298N emitted a puff of smoke and the heatsink got very hot >> ! >> >> Now I've checked the Arduino Uno and it seems aok. >> >> The stepper motor measure 2.7 Ohm from the +12v rail to nearest motor >> pin, ditto earth to nearest pin. >> >> Applying 1.5V at 0.8 Amp to the each of the pair of wires the shaft stops >> being rotatable. the two motor wires are at infinity. >> >> I've assumed that's a sign that I've not killed the stepper motor. >> >> Now before I get another L298N, I thought a few precautions are worth >> while ! Slaying a series of L298N's doesn't seem that smart !!! *LOL* >> >> Any thoughts from anyone as to what to investigate next ? (I thought >> perhaps the software was wrong for this model of stepper motor ? I'm >> capable of making crass errors here..) >> >> : ) >> >> Tim_1 >> >> On 19 April 2015 at 11:41, Ceri Clatworthy >> wrote: >> >>> Reverse. .. >>> >>> If ULN 2003... >>> The wiggle pins in other direction! !! >>> On 19 Apr 2015 11:23, "Tim Moore" wrote: >>> >>>> Many thanks Ceri for the tip ! Greatly appreciated ! >>>> >>>> : ))) >>>> >>>> Tim_1 >>>> >>>> On 19 April 2015 at 11:21, Tim Moore wrote: >>>> >>>>> Update:- >>>>> >>>>> It may not be very riveting but the change to 6400 (and the deletion >>>>> of */ at the top of the code worked fine ! >>>>> >>>>> the count for >>>>> 90 deg was 500 and time 52.5 secs >>>>> 180 deg was 1000 105 >>>>> 270 deg was 1500 157.5 >>>>> 360 deg was 2000 210 secs ( 3m 30 secs) approx >>>>> >>>>> (I hope !) >>>>> >>>>> Now this might be very boring, but it also might help a Newbie to >>>>> stepper motors test their new purchase out too ! >>>>> >>>>> Anyone know if the controller board can make it go in reverse ? >>>>> >>>>> : ))) >>>>> >>>>> Tim_1 >>>>> >>>>> On 19 April 2015 at 10:23, Tim Moore wrote: >>>>> >>>>>> I've been trying to get this working on a 28BYJ-48 with ULN2003 >>>>>> cheapest stepper motor set up. >>>>>> >>>>>> Created 30 Nov. 2009 >>>>>> by Tom Igoe >>>>>> >>>>>> */ >>>>>> >>>>>> #include >>>>>> >>>>>> const int stepsPerRevolution = 1440; // change this to fit the >>>>>> number of steps per revolution >>>>>> // for your motor >>>>>> >>>>>> // initialize the stepper library on pins 8 through 11: >>>>>> Stepper myStepper(stepsPerRevolution, 8,9,10,11); >>>>>> >>>>>> int stepCount = 0; // number of steps the motor has taken >>>>>> >>>>>> void setup() { >>>>>> // initialize the serial port: >>>>>> Serial.begin(9600); >>>>>> } >>>>>> >>>>>> void loop() { >>>>>> // step one step: >>>>>> myStepper.step(1); >>>>>> Serial.print("steps:" ); >>>>>> Serial.println(stepCount); >>>>>> stepCount++; >>>>>> delay(100); >>>>>> } >>>>>> >>>>>> >>>>>> Spec:- >>>>>> >>>>>> >>>>>> >>>>>> - >>>>>> - Voltage : 5V >>>>>> - Diameter : 28mm >>>>>> - Step angle : 5.625 x 1 / 64 >>>>>> - Reduction ratio : 1 / 64 >>>>>> - 5 Line 4 phase >>>>>> - Current draw : 92mA >>>>>> - Operating Frequency : 100pps >>>>>> - Dimensions : 35mm x 28mm >>>>>> - 4 mounting holes >>>>>> - ULN2003 chip >>>>>> - A, B, C, D four-phase status LED >>>>>> >>>>>> ___ >>>>>> >>>>>> >>>>>> Now the divide by 64 seems to be a stumbling block ? >>>>>> >>>>>> What I'm trying to do is use the 1.8 degree characteristic to get 100 >>>>>> pulses to achieve a total rotation of 180 degrees to the shaft. >>>>>> >>>>>> A period of anything up to two minutes is fine for the 180 degree >>>>>> rotation. >>>>>> >>>>>> So far it twitches a bit but not much else e.g. not very exciting. >>>>>> >>>>>> Should the stepsPerRevolution = 1440 be changed to stepsPerRevolution >>>>>> = 6400 ? >>>>>> >>>>>> Maybe I've got the Arduino pins a tad wrong ? >>>>>> >>>>>> : ) >>>>>> >>>>>> >>>>>> Tim_1 >>>>>> >>>>>> >>>>>> >>>>>> On 18 April 2015 at 19:58, Justin Mitchell < >>>>>> justin at swansea.hackspace.org.uk> wrote: >>>>>> >>>>>>> Yes, one motor one step-stick. >>>>>>> >>>>>>> Control it from an arduino, or any other micro, just needs two GPIO >>>>>>> lines. >>>>>>> >>>>>>> >>>>>>> On Sat, 2015-04-18 at 16:04 +0100, Tim Moore wrote: >>>>>>> > So a single 'step-stick' would do it ? >>>>>>> > >>>>>>> > >>>>>>> > Many thanks for responding ! >>>>>>> > >>>>>>> > : ))) >>>>>>> > >>>>>>> > >>>>>>> > Tim_1 >>>>>>> > >>>>>>> > >>>>>>> > On 18 April 2015 at 15:09, Justin Mitchell < >>>>>>> justin at discordia.org.uk> >>>>>>> > wrote: >>>>>>> > It's an interface for all the stuff you need to drive a 3d >>>>>>> > printer, takes 5 step-sticks for stepper driving, has power >>>>>>> > MOSFETs to pwm the hotends and heated bed, and a bunch of >>>>>>> > inputs for end stops and thermistors. You plug it into an >>>>>>> > Arduino mega board, install some software like Marlin and >>>>>>> it >>>>>>> > can run your printer, or mixed to control a CNC mill or >>>>>>> laser >>>>>>> > cutter. >>>>>>> > >>>>>>> > Way over kill for driving one motor :) >>>>>>> > >>>>>>> > On 18 Apr 2015 2:51 pm, Tim Moore >>>>>>> > wrote: >>>>>>> > > >>>>>>> > > Wow ! Loads of interesting links and ideas ! >>>>>>> > > >>>>>>> > > Its a very slow rotation, so inertia is not a problem. >>>>>>> > > >>>>>>> > > Is a 'RAMPS 1.4' useful ? what does it do ? >>>>>>> > > >>>>>>> > > Many thanks to all who have responded ! >>>>>>> > > >>>>>>> > > : ))) >>>>>>> > > >>>>>>> > > Tim_1 >>>>>>> > > >>>>>>> > > On 18 April 2015 at 13:57, oliver Oliver >>>>>>> > wrote: >>>>>>> > >> >>>>>>> > >> Think about pulleys or gears. I don't know if you want >>>>>>> the >>>>>>> > pole to stop at a particular point or not. Inertia in 1m >>>>>>> pole >>>>>>> > will be higher than braking force of a stepper motor. So >>>>>>> it >>>>>>> > will continue to spin after you stop the motor. Giving you >>>>>>> an >>>>>>> > unpredictable 180 plus rotation. >>>>>>> > >> >>>>>>> > >> For a pulley arrangement look at t5 timing belts. you >>>>>>> can >>>>>>> > easily print the pulleys using a reprap. There are >>>>>>> libraries >>>>>>> > on thingiverse. >>>>>>> > >> >>>>>>> > >> A worm gear would be better, but you can't print those. >>>>>>> > >> >>>>>>> > >> Oli >>>>>>> > >> >>>>>>> > >> On 18 Apr 2015 12:33, "Tim Moore" >>>>>> > >>>>>>> > wrote: >>>>>>> > >>> >>>>>>> > >>> I'm trying to carefully rorate a metre long light >>>>>>> weight >>>>>>> > pole through 180 degrees. >>>>>>> > >>> >>>>>>> > >>> I've got a Stepper Motor type 28BYJ-48 working fine, >>>>>>> but >>>>>>> > I'm sure I need one that is a bit more chunky ! >>>>>>> > >>> >>>>>>> > >>> I've got a 17HS16-2004S NEMA 17 (42 x 42 mm) high >>>>>>> torque >>>>>>> > 1.8 degree stepper motor on the way with a controller card >>>>>>> > >>> >>>>>>> > >>> But I've not got a very clear vision yet what else I >>>>>>> might >>>>>>> > need and if there is any Arduino example software listing >>>>>>> that >>>>>>> > would be good to use to get it to work ? >>>>>>> > >>> >>>>>>> > >>> I don't want to reinvent the wheel ! *LOL* >>>>>>> > >>> >>>>>>> > >>> Any thoughts anyone ? >>>>>>> > >>> >>>>>>> > >>> : ))) >>>>>>> > >>> >>>>>>> > >>> Tim_1 >>>>>>> > >>> >>>>>>> > >>> _______________________________________________ >>>>>>> > >>> Hackspace mailing list >>>>>>> > >>> Hackspace at swansea.hackspace.org.uk >>>>>>> > >>> >>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> > >>> >>>>>>> > >> >>>>>>> > >> _______________________________________________ >>>>>>> > >> Hackspace mailing list >>>>>>> > >> Hackspace at swansea.hackspace.org.uk >>>>>>> > >> >>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> > >> >>>>>>> > > >>>>>>> > _______________________________________________ >>>>>>> > Hackspace mailing list >>>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > _______________________________________________ >>>>>>> > Hackspace mailing list >>>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Hackspace mailing list >>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> >>>>>> >>>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ceri.clatworthy at gmail.com Sat May 9 08:22:50 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Sat, 9 May 2015 08:22:50 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: References: <77cee00f-d08d-44bc-83f3-403b60b4bf66@email.android.com> <1429383539.17143.1.camel@emerald.geode.org.uk> Message-ID: I am guessing that they are capacitors On 9 May 2015 07:09, "Tim Moore" wrote: > Magic blue smoke was released ! : ((( So I've ordered another from > China. > > I'll double check everything, as H configuration can short +12V to ground > so easily ! Software can do that ! ? > > On another matter the L298N has two little cans marked '220 35V UT', I've > pnly recently come across them. What are they ? > > Is there any favoured software to drive them that is known to work Arduino > friendly? > > Many many thanks for responding ! > > : ))) > > Tim_1 > > On 8 May 2015 at 22:03, Ceri Clatworthy wrote: > >> Fetch in in Monday an we will get it going >> >> Unless the magic blue smoke has been released >> Ceri >> On 8 May 2015 17:59, "Tim Moore" wrote: >> >>> Well made sort of progress:- >>> >>> Got a 3D stepper type 17H16-2994S in the hope it would be powerful >>> enough to drive the thing I want to rotate. >>> >>> Based on an Arduino Uno with a L298N stepper controller, >>> >>> I found this software which I adapted for just one motor. >>> >>> quote >>> >>> // connect motor controller pins to Arduino digital pins >>> // motor one >>> int enA = 10; >>> int in1 = 9; >>> int in2 = 8; >>> // motor two >>> // int enB = 5; >>> // int in3 = 7; >>> // int in4 = 6; >>> void setup() >>> { >>> // set all the motor control pins to outputs >>> pinMode(enA, OUTPUT); >>> // pinMode(enB, OUTPUT); >>> pinMode(in1, OUTPUT); >>> pinMode(in2, OUTPUT); >>> // pinMode(in3, OUTPUT); >>> // pinMode(in4, OUTPUT); >>> } >>> void demoOne() >>> { >>> // this function will run the motors in both directions at a fixed >>> speed >>> // turn on motor A >>> digitalWrite(in1, HIGH); >>> digitalWrite(in2, LOW); >>> // set speed to 200 out of possible range 0~255 >>> analogWrite(enA, 200); >>> // turn on motor B >>> // digitalWrite(in3, HIGH); >>> // digitalWrite(in4, LOW); >>> // set speed to 200 out of possible range 0~255 >>> // analogWrite(enB, 200); >>> delay(2000); >>> // now change motor directions >>> digitalWrite(in1, LOW); >>> digitalWrite(in2, HIGH); >>> // digitalWrite(in3, LOW); >>> // digitalWrite(in4, HIGH); >>> //delay(2000); >>> // now turn off motors >>> digitalWrite(in1, LOW); >>> digitalWrite(in2, LOW); >>> // digitalWrite(in3, LOW); >>> // digitalWrite(in4, LOW); >>> } >>> void demoTwo() >>> { >>> // this function will run the motors across the range of possible >>> speeds >>> // note that maximum speed is determined by the motor itself and the >>> operating voltage >>> // the PWM values sent by analogWrite() are fractions of the maximum >>> speed possible >>> // by your hardware >>> // turn on motors >>> digitalWrite(in1, LOW); >>> digitalWrite(in2, HIGH); >>> // digitalWrite(in3, LOW); >>> // digitalWrite(in4, HIGH); >>> // accelerate from zero to maximum speed >>> for (int i = 0; i < 256; i++) >>> { >>> analogWrite(enA, i); >>> // analogWrite(enB, i); >>> delay(20); >>> } >>> // decelerate from maximum speed to zero >>> for (int i = 255; i >= 0; --i) >>> { >>> analogWrite(enA, i); >>> // analogWrite(enB, i); >>> delay(20); >>> } >>> // now turn off motors >>> digitalWrite(in1, LOW); >>> digitalWrite(in2, LOW); >>> // digitalWrite(in3, LOW); >>> // digitalWrite(in4, LOW); >>> } >>> void loop() >>> { >>> demoOne(); >>> delay(1000); >>> demoTwo(); >>> delay(1000); >>> } >>> >>> >>> Wired it all up with a 12V 5A power supply and the stepper shaft >>> twitched a bit , but the L298N emitted a puff of smoke and the heatsink got >>> very hot ! >>> >>> Now I've checked the Arduino Uno and it seems aok. >>> >>> The stepper motor measure 2.7 Ohm from the +12v rail to nearest motor >>> pin, ditto earth to nearest pin. >>> >>> Applying 1.5V at 0.8 Amp to the each of the pair of wires the shaft >>> stops being rotatable. the two motor wires are at infinity. >>> >>> I've assumed that's a sign that I've not killed the stepper motor. >>> >>> Now before I get another L298N, I thought a few precautions are worth >>> while ! Slaying a series of L298N's doesn't seem that smart !!! *LOL* >>> >>> Any thoughts from anyone as to what to investigate next ? (I thought >>> perhaps the software was wrong for this model of stepper motor ? I'm >>> capable of making crass errors here..) >>> >>> : ) >>> >>> Tim_1 >>> >>> On 19 April 2015 at 11:41, Ceri Clatworthy >>> wrote: >>> >>>> Reverse. .. >>>> >>>> If ULN 2003... >>>> The wiggle pins in other direction! !! >>>> On 19 Apr 2015 11:23, "Tim Moore" wrote: >>>> >>>>> Many thanks Ceri for the tip ! Greatly appreciated ! >>>>> >>>>> : ))) >>>>> >>>>> Tim_1 >>>>> >>>>> On 19 April 2015 at 11:21, Tim Moore wrote: >>>>> >>>>>> Update:- >>>>>> >>>>>> It may not be very riveting but the change to 6400 (and the deletion >>>>>> of */ at the top of the code worked fine ! >>>>>> >>>>>> the count for >>>>>> 90 deg was 500 and time 52.5 secs >>>>>> 180 deg was 1000 105 >>>>>> 270 deg was 1500 157.5 >>>>>> 360 deg was 2000 210 secs ( 3m 30 secs) approx >>>>>> >>>>>> (I hope !) >>>>>> >>>>>> Now this might be very boring, but it also might help a Newbie to >>>>>> stepper motors test their new purchase out too ! >>>>>> >>>>>> Anyone know if the controller board can make it go in reverse ? >>>>>> >>>>>> : ))) >>>>>> >>>>>> Tim_1 >>>>>> >>>>>> On 19 April 2015 at 10:23, Tim Moore wrote: >>>>>> >>>>>>> I've been trying to get this working on a 28BYJ-48 with ULN2003 >>>>>>> cheapest stepper motor set up. >>>>>>> >>>>>>> Created 30 Nov. 2009 >>>>>>> by Tom Igoe >>>>>>> >>>>>>> */ >>>>>>> >>>>>>> #include >>>>>>> >>>>>>> const int stepsPerRevolution = 1440; // change this to fit the >>>>>>> number of steps per revolution >>>>>>> // for your motor >>>>>>> >>>>>>> // initialize the stepper library on pins 8 through 11: >>>>>>> Stepper myStepper(stepsPerRevolution, 8,9,10,11); >>>>>>> >>>>>>> int stepCount = 0; // number of steps the motor has taken >>>>>>> >>>>>>> void setup() { >>>>>>> // initialize the serial port: >>>>>>> Serial.begin(9600); >>>>>>> } >>>>>>> >>>>>>> void loop() { >>>>>>> // step one step: >>>>>>> myStepper.step(1); >>>>>>> Serial.print("steps:" ); >>>>>>> Serial.println(stepCount); >>>>>>> stepCount++; >>>>>>> delay(100); >>>>>>> } >>>>>>> >>>>>>> >>>>>>> Spec:- >>>>>>> >>>>>>> >>>>>>> >>>>>>> - >>>>>>> - Voltage : 5V >>>>>>> - Diameter : 28mm >>>>>>> - Step angle : 5.625 x 1 / 64 >>>>>>> - Reduction ratio : 1 / 64 >>>>>>> - 5 Line 4 phase >>>>>>> - Current draw : 92mA >>>>>>> - Operating Frequency : 100pps >>>>>>> - Dimensions : 35mm x 28mm >>>>>>> - 4 mounting holes >>>>>>> - ULN2003 chip >>>>>>> - A, B, C, D four-phase status LED >>>>>>> >>>>>>> ___ >>>>>>> >>>>>>> >>>>>>> Now the divide by 64 seems to be a stumbling block ? >>>>>>> >>>>>>> What I'm trying to do is use the 1.8 degree characteristic to get >>>>>>> 100 pulses to achieve a total rotation of 180 degrees to the shaft. >>>>>>> >>>>>>> A period of anything up to two minutes is fine for the 180 degree >>>>>>> rotation. >>>>>>> >>>>>>> So far it twitches a bit but not much else e.g. not very exciting. >>>>>>> >>>>>>> Should the stepsPerRevolution = 1440 be changed to stepsPerRevolution >>>>>>> = 6400 ? >>>>>>> >>>>>>> Maybe I've got the Arduino pins a tad wrong ? >>>>>>> >>>>>>> : ) >>>>>>> >>>>>>> >>>>>>> Tim_1 >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 18 April 2015 at 19:58, Justin Mitchell < >>>>>>> justin at swansea.hackspace.org.uk> wrote: >>>>>>> >>>>>>>> Yes, one motor one step-stick. >>>>>>>> >>>>>>>> Control it from an arduino, or any other micro, just needs two GPIO >>>>>>>> lines. >>>>>>>> >>>>>>>> >>>>>>>> On Sat, 2015-04-18 at 16:04 +0100, Tim Moore wrote: >>>>>>>> > So a single 'step-stick' would do it ? >>>>>>>> > >>>>>>>> > >>>>>>>> > Many thanks for responding ! >>>>>>>> > >>>>>>>> > : ))) >>>>>>>> > >>>>>>>> > >>>>>>>> > Tim_1 >>>>>>>> > >>>>>>>> > >>>>>>>> > On 18 April 2015 at 15:09, Justin Mitchell < >>>>>>>> justin at discordia.org.uk> >>>>>>>> > wrote: >>>>>>>> > It's an interface for all the stuff you need to drive a 3d >>>>>>>> > printer, takes 5 step-sticks for stepper driving, has >>>>>>>> power >>>>>>>> > MOSFETs to pwm the hotends and heated bed, and a bunch of >>>>>>>> > inputs for end stops and thermistors. You plug it into an >>>>>>>> > Arduino mega board, install some software like Marlin and >>>>>>>> it >>>>>>>> > can run your printer, or mixed to control a CNC mill or >>>>>>>> laser >>>>>>>> > cutter. >>>>>>>> > >>>>>>>> > Way over kill for driving one motor :) >>>>>>>> > >>>>>>>> > On 18 Apr 2015 2:51 pm, Tim Moore >>>>>>>> > wrote: >>>>>>>> > > >>>>>>>> > > Wow ! Loads of interesting links and ideas ! >>>>>>>> > > >>>>>>>> > > Its a very slow rotation, so inertia is not a problem. >>>>>>>> > > >>>>>>>> > > Is a 'RAMPS 1.4' useful ? what does it do ? >>>>>>>> > > >>>>>>>> > > Many thanks to all who have responded ! >>>>>>>> > > >>>>>>>> > > : ))) >>>>>>>> > > >>>>>>>> > > Tim_1 >>>>>>>> > > >>>>>>>> > > On 18 April 2015 at 13:57, oliver Oliver >>>>>>>> > wrote: >>>>>>>> > >> >>>>>>>> > >> Think about pulleys or gears. I don't know if you >>>>>>>> want the >>>>>>>> > pole to stop at a particular point or not. Inertia in 1m >>>>>>>> pole >>>>>>>> > will be higher than braking force of a stepper motor. So >>>>>>>> it >>>>>>>> > will continue to spin after you stop the motor. Giving >>>>>>>> you an >>>>>>>> > unpredictable 180 plus rotation. >>>>>>>> > >> >>>>>>>> > >> For a pulley arrangement look at t5 timing belts. >>>>>>>> you can >>>>>>>> > easily print the pulleys using a reprap. There are >>>>>>>> libraries >>>>>>>> > on thingiverse. >>>>>>>> > >> >>>>>>>> > >> A worm gear would be better, but you can't print >>>>>>>> those. >>>>>>>> > >> >>>>>>>> > >> Oli >>>>>>>> > >> >>>>>>>> > >> On 18 Apr 2015 12:33, "Tim Moore" < >>>>>>>> timmoore47 at gmail.com> >>>>>>>> > wrote: >>>>>>>> > >>> >>>>>>>> > >>> I'm trying to carefully rorate a metre long light >>>>>>>> weight >>>>>>>> > pole through 180 degrees. >>>>>>>> > >>> >>>>>>>> > >>> I've got a Stepper Motor type 28BYJ-48 working fine, >>>>>>>> but >>>>>>>> > I'm sure I need one that is a bit more chunky ! >>>>>>>> > >>> >>>>>>>> > >>> I've got a 17HS16-2004S NEMA 17 (42 x 42 mm) high >>>>>>>> torque >>>>>>>> > 1.8 degree stepper motor on the way with a controller >>>>>>>> card >>>>>>>> > >>> >>>>>>>> > >>> But I've not got a very clear vision yet what else I >>>>>>>> might >>>>>>>> > need and if there is any Arduino example software listing >>>>>>>> that >>>>>>>> > would be good to use to get it to work ? >>>>>>>> > >>> >>>>>>>> > >>> I don't want to reinvent the wheel ! *LOL* >>>>>>>> > >>> >>>>>>>> > >>> Any thoughts anyone ? >>>>>>>> > >>> >>>>>>>> > >>> : ))) >>>>>>>> > >>> >>>>>>>> > >>> Tim_1 >>>>>>>> > >>> >>>>>>>> > >>> _______________________________________________ >>>>>>>> > >>> Hackspace mailing list >>>>>>>> > >>> Hackspace at swansea.hackspace.org.uk >>>>>>>> > >>> >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> > >>> >>>>>>>> > >> >>>>>>>> > >> _______________________________________________ >>>>>>>> > >> Hackspace mailing list >>>>>>>> > >> Hackspace at swansea.hackspace.org.uk >>>>>>>> > >> >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> > >> >>>>>>>> > > >>>>>>>> > _______________________________________________ >>>>>>>> > Hackspace mailing list >>>>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>>>> > >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > _______________________________________________ >>>>>>>> > Hackspace mailing list >>>>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Hackspace mailing list >>>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ceri.clatworthy at gmail.com Sat May 9 08:23:10 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Sat, 9 May 2015 08:23:10 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: References: <77cee00f-d08d-44bc-83f3-403b60b4bf66@email.android.com> <1429383539.17143.1.camel@emerald.geode.org.uk> Message-ID: Add a photo! !!! On 9 May 2015 08:22, "Ceri Clatworthy" wrote: > I am guessing that they are capacitors > On 9 May 2015 07:09, "Tim Moore" wrote: > >> Magic blue smoke was released ! : ((( So I've ordered another from >> China. >> >> I'll double check everything, as H configuration can short +12V to ground >> so easily ! Software can do that ! ? >> >> On another matter the L298N has two little cans marked '220 35V UT', >> I've pnly recently come across them. What are they ? >> >> Is there any favoured software to drive them that is known to work >> Arduino friendly? >> >> Many many thanks for responding ! >> >> : ))) >> >> Tim_1 >> >> On 8 May 2015 at 22:03, Ceri Clatworthy >> wrote: >> >>> Fetch in in Monday an we will get it going >>> >>> Unless the magic blue smoke has been released >>> Ceri >>> On 8 May 2015 17:59, "Tim Moore" wrote: >>> >>>> Well made sort of progress:- >>>> >>>> Got a 3D stepper type 17H16-2994S in the hope it would be powerful >>>> enough to drive the thing I want to rotate. >>>> >>>> Based on an Arduino Uno with a L298N stepper controller, >>>> >>>> I found this software which I adapted for just one motor. >>>> >>>> quote >>>> >>>> // connect motor controller pins to Arduino digital pins >>>> // motor one >>>> int enA = 10; >>>> int in1 = 9; >>>> int in2 = 8; >>>> // motor two >>>> // int enB = 5; >>>> // int in3 = 7; >>>> // int in4 = 6; >>>> void setup() >>>> { >>>> // set all the motor control pins to outputs >>>> pinMode(enA, OUTPUT); >>>> // pinMode(enB, OUTPUT); >>>> pinMode(in1, OUTPUT); >>>> pinMode(in2, OUTPUT); >>>> // pinMode(in3, OUTPUT); >>>> // pinMode(in4, OUTPUT); >>>> } >>>> void demoOne() >>>> { >>>> // this function will run the motors in both directions at a fixed >>>> speed >>>> // turn on motor A >>>> digitalWrite(in1, HIGH); >>>> digitalWrite(in2, LOW); >>>> // set speed to 200 out of possible range 0~255 >>>> analogWrite(enA, 200); >>>> // turn on motor B >>>> // digitalWrite(in3, HIGH); >>>> // digitalWrite(in4, LOW); >>>> // set speed to 200 out of possible range 0~255 >>>> // analogWrite(enB, 200); >>>> delay(2000); >>>> // now change motor directions >>>> digitalWrite(in1, LOW); >>>> digitalWrite(in2, HIGH); >>>> // digitalWrite(in3, LOW); >>>> // digitalWrite(in4, HIGH); >>>> //delay(2000); >>>> // now turn off motors >>>> digitalWrite(in1, LOW); >>>> digitalWrite(in2, LOW); >>>> // digitalWrite(in3, LOW); >>>> // digitalWrite(in4, LOW); >>>> } >>>> void demoTwo() >>>> { >>>> // this function will run the motors across the range of possible >>>> speeds >>>> // note that maximum speed is determined by the motor itself and the >>>> operating voltage >>>> // the PWM values sent by analogWrite() are fractions of the maximum >>>> speed possible >>>> // by your hardware >>>> // turn on motors >>>> digitalWrite(in1, LOW); >>>> digitalWrite(in2, HIGH); >>>> // digitalWrite(in3, LOW); >>>> // digitalWrite(in4, HIGH); >>>> // accelerate from zero to maximum speed >>>> for (int i = 0; i < 256; i++) >>>> { >>>> analogWrite(enA, i); >>>> // analogWrite(enB, i); >>>> delay(20); >>>> } >>>> // decelerate from maximum speed to zero >>>> for (int i = 255; i >= 0; --i) >>>> { >>>> analogWrite(enA, i); >>>> // analogWrite(enB, i); >>>> delay(20); >>>> } >>>> // now turn off motors >>>> digitalWrite(in1, LOW); >>>> digitalWrite(in2, LOW); >>>> // digitalWrite(in3, LOW); >>>> // digitalWrite(in4, LOW); >>>> } >>>> void loop() >>>> { >>>> demoOne(); >>>> delay(1000); >>>> demoTwo(); >>>> delay(1000); >>>> } >>>> >>>> >>>> Wired it all up with a 12V 5A power supply and the stepper shaft >>>> twitched a bit , but the L298N emitted a puff of smoke and the heatsink got >>>> very hot ! >>>> >>>> Now I've checked the Arduino Uno and it seems aok. >>>> >>>> The stepper motor measure 2.7 Ohm from the +12v rail to nearest motor >>>> pin, ditto earth to nearest pin. >>>> >>>> Applying 1.5V at 0.8 Amp to the each of the pair of wires the shaft >>>> stops being rotatable. the two motor wires are at infinity. >>>> >>>> I've assumed that's a sign that I've not killed the stepper motor. >>>> >>>> Now before I get another L298N, I thought a few precautions are worth >>>> while ! Slaying a series of L298N's doesn't seem that smart !!! *LOL* >>>> >>>> Any thoughts from anyone as to what to investigate next ? (I thought >>>> perhaps the software was wrong for this model of stepper motor ? I'm >>>> capable of making crass errors here..) >>>> >>>> : ) >>>> >>>> Tim_1 >>>> >>>> On 19 April 2015 at 11:41, Ceri Clatworthy >>>> wrote: >>>> >>>>> Reverse. .. >>>>> >>>>> If ULN 2003... >>>>> The wiggle pins in other direction! !! >>>>> On 19 Apr 2015 11:23, "Tim Moore" wrote: >>>>> >>>>>> Many thanks Ceri for the tip ! Greatly appreciated ! >>>>>> >>>>>> : ))) >>>>>> >>>>>> Tim_1 >>>>>> >>>>>> On 19 April 2015 at 11:21, Tim Moore wrote: >>>>>> >>>>>>> Update:- >>>>>>> >>>>>>> It may not be very riveting but the change to 6400 (and the deletion >>>>>>> of */ at the top of the code worked fine ! >>>>>>> >>>>>>> the count for >>>>>>> 90 deg was 500 and time 52.5 secs >>>>>>> 180 deg was 1000 105 >>>>>>> 270 deg was 1500 157.5 >>>>>>> 360 deg was 2000 210 secs ( 3m 30 secs) approx >>>>>>> >>>>>>> (I hope !) >>>>>>> >>>>>>> Now this might be very boring, but it also might help a Newbie to >>>>>>> stepper motors test their new purchase out too ! >>>>>>> >>>>>>> Anyone know if the controller board can make it go in reverse ? >>>>>>> >>>>>>> : ))) >>>>>>> >>>>>>> Tim_1 >>>>>>> >>>>>>> On 19 April 2015 at 10:23, Tim Moore wrote: >>>>>>> >>>>>>>> I've been trying to get this working on a 28BYJ-48 with ULN2003 >>>>>>>> cheapest stepper motor set up. >>>>>>>> >>>>>>>> Created 30 Nov. 2009 >>>>>>>> by Tom Igoe >>>>>>>> >>>>>>>> */ >>>>>>>> >>>>>>>> #include >>>>>>>> >>>>>>>> const int stepsPerRevolution = 1440; // change this to fit the >>>>>>>> number of steps per revolution >>>>>>>> // for your motor >>>>>>>> >>>>>>>> // initialize the stepper library on pins 8 through 11: >>>>>>>> Stepper myStepper(stepsPerRevolution, 8,9,10,11); >>>>>>>> >>>>>>>> int stepCount = 0; // number of steps the motor has taken >>>>>>>> >>>>>>>> void setup() { >>>>>>>> // initialize the serial port: >>>>>>>> Serial.begin(9600); >>>>>>>> } >>>>>>>> >>>>>>>> void loop() { >>>>>>>> // step one step: >>>>>>>> myStepper.step(1); >>>>>>>> Serial.print("steps:" ); >>>>>>>> Serial.println(stepCount); >>>>>>>> stepCount++; >>>>>>>> delay(100); >>>>>>>> } >>>>>>>> >>>>>>>> >>>>>>>> Spec:- >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> - >>>>>>>> - Voltage : 5V >>>>>>>> - Diameter : 28mm >>>>>>>> - Step angle : 5.625 x 1 / 64 >>>>>>>> - Reduction ratio : 1 / 64 >>>>>>>> - 5 Line 4 phase >>>>>>>> - Current draw : 92mA >>>>>>>> - Operating Frequency : 100pps >>>>>>>> - Dimensions : 35mm x 28mm >>>>>>>> - 4 mounting holes >>>>>>>> - ULN2003 chip >>>>>>>> - A, B, C, D four-phase status LED >>>>>>>> >>>>>>>> ___ >>>>>>>> >>>>>>>> >>>>>>>> Now the divide by 64 seems to be a stumbling block ? >>>>>>>> >>>>>>>> What I'm trying to do is use the 1.8 degree characteristic to get >>>>>>>> 100 pulses to achieve a total rotation of 180 degrees to the shaft. >>>>>>>> >>>>>>>> A period of anything up to two minutes is fine for the 180 degree >>>>>>>> rotation. >>>>>>>> >>>>>>>> So far it twitches a bit but not much else e.g. not very exciting. >>>>>>>> >>>>>>>> Should the stepsPerRevolution = 1440 be changed to stepsPerRevolution >>>>>>>> = 6400 ? >>>>>>>> >>>>>>>> Maybe I've got the Arduino pins a tad wrong ? >>>>>>>> >>>>>>>> : ) >>>>>>>> >>>>>>>> >>>>>>>> Tim_1 >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> On 18 April 2015 at 19:58, Justin Mitchell < >>>>>>>> justin at swansea.hackspace.org.uk> wrote: >>>>>>>> >>>>>>>>> Yes, one motor one step-stick. >>>>>>>>> >>>>>>>>> Control it from an arduino, or any other micro, just needs two GPIO >>>>>>>>> lines. >>>>>>>>> >>>>>>>>> >>>>>>>>> On Sat, 2015-04-18 at 16:04 +0100, Tim Moore wrote: >>>>>>>>> > So a single 'step-stick' would do it ? >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > Many thanks for responding ! >>>>>>>>> > >>>>>>>>> > : ))) >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > Tim_1 >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > On 18 April 2015 at 15:09, Justin Mitchell < >>>>>>>>> justin at discordia.org.uk> >>>>>>>>> > wrote: >>>>>>>>> > It's an interface for all the stuff you need to drive a >>>>>>>>> 3d >>>>>>>>> > printer, takes 5 step-sticks for stepper driving, has >>>>>>>>> power >>>>>>>>> > MOSFETs to pwm the hotends and heated bed, and a bunch of >>>>>>>>> > inputs for end stops and thermistors. You plug it into an >>>>>>>>> > Arduino mega board, install some software like Marlin >>>>>>>>> and it >>>>>>>>> > can run your printer, or mixed to control a CNC mill or >>>>>>>>> laser >>>>>>>>> > cutter. >>>>>>>>> > >>>>>>>>> > Way over kill for driving one motor :) >>>>>>>>> > >>>>>>>>> > On 18 Apr 2015 2:51 pm, Tim Moore >>>>>>>>> > wrote: >>>>>>>>> > > >>>>>>>>> > > Wow ! Loads of interesting links and ideas ! >>>>>>>>> > > >>>>>>>>> > > Its a very slow rotation, so inertia is not a problem. >>>>>>>>> > > >>>>>>>>> > > Is a 'RAMPS 1.4' useful ? what does it do ? >>>>>>>>> > > >>>>>>>>> > > Many thanks to all who have responded ! >>>>>>>>> > > >>>>>>>>> > > : ))) >>>>>>>>> > > >>>>>>>>> > > Tim_1 >>>>>>>>> > > >>>>>>>>> > > On 18 April 2015 at 13:57, oliver Oliver >>>>>>>>> > wrote: >>>>>>>>> > >> >>>>>>>>> > >> Think about pulleys or gears. I don't know if you >>>>>>>>> want the >>>>>>>>> > pole to stop at a particular point or not. Inertia in >>>>>>>>> 1m pole >>>>>>>>> > will be higher than braking force of a stepper motor. >>>>>>>>> So it >>>>>>>>> > will continue to spin after you stop the motor. Giving >>>>>>>>> you an >>>>>>>>> > unpredictable 180 plus rotation. >>>>>>>>> > >> >>>>>>>>> > >> For a pulley arrangement look at t5 timing belts. >>>>>>>>> you can >>>>>>>>> > easily print the pulleys using a reprap. There are >>>>>>>>> libraries >>>>>>>>> > on thingiverse. >>>>>>>>> > >> >>>>>>>>> > >> A worm gear would be better, but you can't print >>>>>>>>> those. >>>>>>>>> > >> >>>>>>>>> > >> Oli >>>>>>>>> > >> >>>>>>>>> > >> On 18 Apr 2015 12:33, "Tim Moore" < >>>>>>>>> timmoore47 at gmail.com> >>>>>>>>> > wrote: >>>>>>>>> > >>> >>>>>>>>> > >>> I'm trying to carefully rorate a metre long light >>>>>>>>> weight >>>>>>>>> > pole through 180 degrees. >>>>>>>>> > >>> >>>>>>>>> > >>> I've got a Stepper Motor type 28BYJ-48 working fine, >>>>>>>>> but >>>>>>>>> > I'm sure I need one that is a bit more chunky ! >>>>>>>>> > >>> >>>>>>>>> > >>> I've got a 17HS16-2004S NEMA 17 (42 x 42 mm) high >>>>>>>>> torque >>>>>>>>> > 1.8 degree stepper motor on the way with a controller >>>>>>>>> card >>>>>>>>> > >>> >>>>>>>>> > >>> But I've not got a very clear vision yet what else I >>>>>>>>> might >>>>>>>>> > need and if there is any Arduino example software >>>>>>>>> listing that >>>>>>>>> > would be good to use to get it to work ? >>>>>>>>> > >>> >>>>>>>>> > >>> I don't want to reinvent the wheel ! *LOL* >>>>>>>>> > >>> >>>>>>>>> > >>> Any thoughts anyone ? >>>>>>>>> > >>> >>>>>>>>> > >>> : ))) >>>>>>>>> > >>> >>>>>>>>> > >>> Tim_1 >>>>>>>>> > >>> >>>>>>>>> > >>> _______________________________________________ >>>>>>>>> > >>> Hackspace mailing list >>>>>>>>> > >>> Hackspace at swansea.hackspace.org.uk >>>>>>>>> > >>> >>>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>>> > >>> >>>>>>>>> > >> >>>>>>>>> > >> _______________________________________________ >>>>>>>>> > >> Hackspace mailing list >>>>>>>>> > >> Hackspace at swansea.hackspace.org.uk >>>>>>>>> > >> >>>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>>> > >> >>>>>>>>> > > >>>>>>>>> > _______________________________________________ >>>>>>>>> > Hackspace mailing list >>>>>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>>>>> > >>>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > >>>>>>>>> > _______________________________________________ >>>>>>>>> > Hackspace mailing list >>>>>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>>> >>>>>>>>> >>>>>>>>> _______________________________________________ >>>>>>>>> Hackspace mailing list >>>>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Hackspace mailing list >>>>>> Hackspace at swansea.hackspace.org.uk >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> >>>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at discordia.org.uk Sat May 9 10:32:09 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Sat, 09 May 2015 10:32:09 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: Message-ID: <037427b5-e5ae-479d-83cc-4298ec86c762@email.android.com> This does seem the hard way to do things when something like an A4988 stepstick is a similar price and way simpler to use. Did you need some specifically higher current or other requirement? On 9 May 2015 7:09 am, Tim Moore wrote: > > Magic blue smoke was released !? :? (((?? So I've ordered another from China. > > I'll double check everything, as H configuration can short +12V to ground so easily !?? Software can do that ! ? > > On another matter the L298N has two little cans marked '220 35V UT',? I've pnly recently come across them.? What are they ? > > Is there any favoured software to drive them that is known to work Arduino friendly? > > Many many thanks for responding ! > > :? ))) > > Tim_1 > > On 8 May 2015 at 22:03, Ceri Clatworthy wrote: >> >> Fetch in in Monday an we will get it going >> >> Unless the magic blue smoke has been released >> Ceri >> >> On 8 May 2015 17:59, "Tim Moore" wrote: >>> >>> Well made sort of progress:- >>> >>> Got a 3D stepper type?? 17H16-2994S? in the hope it would be powerful enough to drive the thing I want to rotate. >>> >>> Based on an Arduino Uno with a L298N stepper controller, >>> >>> I found this software which I adapted for just one motor. >>> >>> quote >>> >>> // connect motor controller pins to Arduino digital pins >>> // motor one >>> int enA = 10; >>> int in1 = 9; >>> int in2 = 8; >>> // motor two >>> // int enB = 5; >>> // int in3 = 7; >>> // int in4 = 6; >>> void setup() >>> { >>> ? // set all the motor control pins to outputs >>> ? pinMode(enA, OUTPUT); >>> ? // pinMode(enB, OUTPUT); >>> ? pinMode(in1, OUTPUT); >>> ? pinMode(in2, OUTPUT); >>> ? // pinMode(in3, OUTPUT); >>> ? // pinMode(in4, OUTPUT); >>> } >>> void demoOne() >>> { >>> ? // this function will run the motors in both directions at a fixed speed >>> ? // turn on motor A >>> ? digitalWrite(in1, HIGH); >>> ? digitalWrite(in2, LOW); >>> ? // set speed to 200 out of possible range 0~255 >>> ? analogWrite(enA, 200); >>> ? // turn on motor B >>> ? // digitalWrite(in3, HIGH); >>> ? // digitalWrite(in4, LOW); >>> ? // set speed to 200 out of possible range 0~255 >>> ? // analogWrite(enB, 200); >>> ? delay(2000); >>> ? // now change motor directions >>> ? digitalWrite(in1, LOW); >>> ? digitalWrite(in2, HIGH);? >>> ? // digitalWrite(in3, LOW); >>> ? // digitalWrite(in4, HIGH); >>> ? //delay(2000); >>> ? // now turn off motors >>> ? digitalWrite(in1, LOW); >>> ? digitalWrite(in2, LOW);? >>> ? // digitalWrite(in3, LOW); >>> ? // digitalWrite(in4, LOW); >>> } >>> void demoTwo() >>> { >>> ? // this function will run the motors across the range of possible speeds >>> ? // note that maximum speed is determined by the motor itself and the operating voltage >>> ? // the PWM values sent by analogWrite() are fractions of the maximum speed possible >>> ? // by your hardware >>> ? // turn on motors >>> ? digitalWrite(in1, LOW); >>> ? digitalWrite(in2, HIGH);? >>> ? // digitalWrite(in3, LOW); >>> ? // digitalWrite(in4, HIGH); >>> ? // accelerate from zero to maximum speed >>> ? for (int i = 0; i < 256; i++) >>> ? { >>> ??? analogWrite(enA, i); >>> ??? // analogWrite(enB, i); >>> ??? delay(20); >>> ? } >>> ? // decelerate from maximum speed to zero >>> ? for (int i = 255; i >= 0; --i) >>> ? { >>> ??? analogWrite(enA, i); >>> ??? // analogWrite(enB, i); >>> ??? delay(20); >>> ? } >>> ? // now turn off motors >>> ? digitalWrite(in1, LOW); >>> ? digitalWrite(in2, LOW);? >>> ? // digitalWrite(in3, LOW); >>> ? // digitalWrite(in4, LOW);? >>> } >>> void loop() >>> { >>> ? demoOne(); >>> ? delay(1000); >>> ? demoTwo(); >>> ? delay(1000); >>> } >>> >>> >>> Wired it all up with a 12V 5A power supply and the stepper shaft twitched a bit , but the L298N emitted a puff of smoke and the heatsink got very hot ! >>> >>> Now I've checked the Arduino Uno and it seems aok. >>> >>> The stepper motor measure 2.7 Ohm from the +12v rail to nearest motor pin, ditto earth to nearest pin. >>> >>> Applying 1.5V at 0.8 Amp to the each of the pair of wires the shaft stops being rotatable.? the two motor wires are at infinity. >>> >>> I've assumed that's a sign that I've not killed the stepper motor. >>> >>> Now before I get another L298N, I thought a few precautions are worth while !? Slaying a series of L298N's doesn't seem that smart !!!? *LOL* >>> >>> Any thoughts from anyone as to what to investigate next ?? (I thought perhaps the software was wrong for this model of stepper motor ?? I'm capable of making crass errors here..) >>> >>> :? ) >>> >>> Tim_1 >>> >>> On 19 April 2015 at 11:41, Ceri Clatworthy wrote: >>>> >>>> Reverse. .. >>>> >>>> If ULN 2003... >>>> The wiggle pins in other direction! !! >>>> >>>> On 19 Apr 2015 11:23, "Tim Moore" wrote: >>>>> >>>>> Many thanks Ceri for the tip !? Greatly appreciated ! >>>>> >>>>> :? ))) >>>>> >>>>> Tim_1 >>>>> >>>>> On 19 April 2015 at 11:21, Tim Moore wrote: >>>>>> >>>>>> Update:- >>>>>> >>>>>> It may not be very riveting but the change to 6400 (and the deletion of */ at the top of the code worked fine ! >>>>>> >>>>>> the count for >>>>>> 90? deg was 500? and? time 52.5 secs >>>>>> 180 deg was 1000???????????? 105 >>>>>> 270 deg was 1500???????????? 157.5 >>>>>> 360 deg was 2000??????? ? ?? 210 secs ( 3m 30 secs)? approx >>>>>> >>>>>> (I hope !) >>>>>> >>>>>> Now this might be very boring, but it also might help a Newbie to stepper motors test their new purchase out too ! >>>>>> >>>>>> Anyone know if the controller board can make it go in reverse ? >>>>>> >>>>>> :? ))) >>>>>> >>>>>> Tim_1 >>>>>> >>>>>> On 19 April 2015 at 10:23, Tim Moore wrote: >>>>>>> >>>>>>> I've been trying to get this working on a?? 28BYJ-48 with ULN2003 cheapest stepper motor set up. >>>>>>> >>>>>>> ?Created 30 Nov. 2009 >>>>>>> ?by Tom Igoe >>>>>>> ? >>>>>>> ?*/ >>>>>>> >>>>>>> #include >>>>>>> >>>>>>> const int stepsPerRevolution = 1440;? // change this to fit the number of steps per revolution >>>>>>> ???????????????????????????????????? // for your motor >>>>>>> >>>>>>> // initialize the stepper library on pins 8 through 11: >>>>>>> Stepper myStepper(stepsPerRevolution, 8,9,10,11);??????????? >>>>>>> >>>>>>> int stepCount = 0;???????? // number of steps the motor has taken >>>>>>> >>>>>>> void setup() { >>>>>>> ? // initialize the serial port: >>>>>>> ? Serial.begin(9600); >>>>>>> } >>>>>>> >>>>>>> void loop() { >>>>>>> ? // step one step: >>>>>>> ? myStepper.step(1); >>>>>>> ? Serial.print("steps:" ); >>>>>>> ? Serial.println(stepCount); >>>>>>> ? stepCount++; >>>>>>> ? delay(100); >>>>>>> } >>>>>>> >>>>>>> >>>>>>> Spec:- >>>>>>> >>>>>>> >>>>>>> >>>>>>> Voltage : 5V >>>>>>> Diameter : 28mm >>>>>>> Step angle : 5.625 x 1 / 64 >>>>>>> Reduction ratio : 1 / 64 >>>>>>> 5 Line 4 phase >>>>>>> Current draw : 92mA >>>>>>> Operating Frequency : 100pps >>>>>>> Dimensions : 35mm x 28mm >>>>>>> 4 mounting holes >>>>>>> ULN2003 chip >>>>>>> A, B, C, D four-phase status LED >>>>>>> >>>>>>> ___ >>>>>>> >>>>>>> >>>>>>> Now the divide by 64 seems to be a stumbling block ? >>>>>>> >>>>>>> What I'm trying to do is use the 1.8 degree characteristic to get 100 pulses to achieve a total rotation of 180 degrees to the shaft. >>>>>>> >>>>>>> A period of anything up to two minutes is fine for the 180 degree rotation. >>>>>>> >>>>>>> So far it twitches a bit but not much else e.g. not very exciting. >>>>>>> >>>>>>> Should the?? stepsPerRevolution = 1440 be changed to stepsPerRevolution = 6400 ? >>>>>>> >>>>>>> Maybe I've got the Arduino pins a tad wrong ? >>>>>>> >>>>>>> :? ) >>>>>>> >>>>>>> >>>>>>> Tim_1 >>>>>>> >>>>>>> >>>>>>> >>>>>>> >>>>>>> On 18 April 2015 at 19:58, Justin Mitchell wrote: >>>>>>>> >>>>>>>> Yes, one motor one step-stick. >>>>>>>> >>>>>>>> Control it from an arduino, or any other micro, just needs two GPIO >>>>>>>> lines. >>>>>>>> >>>>>>>> >>>>>>>> On Sat, 2015-04-18 at 16:04 +0100, Tim Moore wrote: >>>>>>>> > So a single 'step-stick' would do it ? >>>>>>>> > >>>>>>>> > >>>>>>>> > Many thanks for responding ! >>>>>>>> > >>>>>>>> > :? ))) >>>>>>>> > >>>>>>>> > >>>>>>>> > Tim_1 >>>>>>>> > >>>>>>>> > >>>>>>>> > On 18 April 2015 at 15:09, Justin Mitchell >>>>>>>> > wrote: >>>>>>>> >? ? ? ? ?It's an interface for all the stuff you need to drive a 3d >>>>>>>> >? ? ? ? ?printer, takes 5 step-sticks for stepper driving, has power >>>>>>>> >? ? ? ? ?MOSFETs to pwm the hotends and heated bed, and a bunch of >>>>>>>> >? ? ? ? ?inputs for end stops and thermistors. You plug it into an >>>>>>>> >? ? ? ? ?Arduino mega board, install some software like Marlin and it >>>>>>>> >? ? ? ? ?can run your printer, or mixed to control a CNC mill or laser >>>>>>>> >? ? ? ? ?cutter. >>>>>>>> > >>>>>>>> >? ? ? ? ?Way over kill for driving one motor :) >>>>>>>> > >>>>>>>> >? ? ? ? ?On 18 Apr 2015 2:51 pm, Tim Moore >>>>>>>> >? ? ? ? ?wrote: >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?> Wow !? Loads of interesting links and ideas ! >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?> Its a very slow rotation, so inertia is not a problem. >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?> Is a 'RAMPS 1.4' useful ?? what does it do ? >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?> Many thanks to all who have responded ! >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?> :? ))) >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?> Tim_1 >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?> On 18 April 2015 at 13:57, oliver Oliver >>>>>>>> >? ? ? ? ? wrote: >>>>>>>> >? ? ? ? ?>> >>>>>>>> >? ? ? ? ?>> Think about pulleys or gears.? I don't know if you want the >>>>>>>> >? ? ? ? ?pole to stop at a particular point or not.? Inertia in 1m pole >>>>>>>> >? ? ? ? ?will be higher than braking force of a stepper motor.? So it >>>>>>>> >? ? ? ? ?will continue to spin after you stop the motor. Giving you an >>>>>>>> >? ? ? ? ?unpredictable 180 plus rotation. >>>>>>>> >? ? ? ? ?>> >>>>>>>> >? ? ? ? ?>> For a pulley arrangement look at t5? timing belts.? you can >>>>>>>> >? ? ? ? ?easily print the pulleys using a reprap.? There are libraries >>>>>>>> >? ? ? ? ?on thingiverse. >>>>>>>> >? ? ? ? ?>> >>>>>>>> >? ? ? ? ?>> A worm gear would be better,? but you can't print those. >>>>>>>> >? ? ? ? ?>> >>>>>>>> >? ? ? ? ?>> Oli >>>>>>>> >? ? ? ? ?>> >>>>>>>> >? ? ? ? ?>> On 18 Apr 2015 12:33, "Tim Moore" >>>>>>>> >? ? ? ? ?wrote: >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> I'm trying to carefully rorate a metre long light weight >>>>>>>> >? ? ? ? ?pole through 180 degrees. >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> I've got a Stepper Motor type 28BYJ-48 working fine, but >>>>>>>> >? ? ? ? ?I'm sure I need one that is a bit more chunky ! >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> I've got a 17HS16-2004S NEMA 17 (42 x 42 mm) high torque >>>>>>>> >? ? ? ? ?1.8 degree stepper motor? on the way with a controller card >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> But I've not got a very clear vision yet what else I might >>>>>>>> >? ? ? ? ?need and if there is any Arduino example software listing that >>>>>>>> >? ? ? ? ?would be good to use to get it to work ? >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> I don't want to reinvent the wheel !? *LOL* >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> Any thoughts anyone ? >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> :? ))) >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> Tim_1 >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>>> _______________________________________________ >>>>>>>> >? ? ? ? ?>>> Hackspace mailing list >>>>>>>> >? ? ? ? ?>>> Hackspace at swansea.hackspace.org.uk >>>>>>>> >? ? ? ? ?>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> >? ? ? ? ?>>> >>>>>>>> >? ? ? ? ?>> >>>>>>>> >? ? ? ? ?>> _______________________________________________ >>>>>>>> >? ? ? ? ?>> Hackspace mailing list >>>>>>>> >? ? ? ? ?>> Hackspace at swansea.hackspace.org.uk >>>>>>>> >? ? ? ? ?>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> >? ? ? ? ?>> >>>>>>>> >? ? ? ? ?> >>>>>>>> >? ? ? ? ?_______________________________________________ >>>>>>>> >? ? ? ? ?Hackspace mailing list >>>>>>>> >? ? ? ? ?Hackspace at swansea.hackspace.org.uk >>>>>>>> >? ? ? ? ?http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > _______________________________________________ >>>>>>>> > Hackspace mailing list >>>>>>>> > Hackspace at swansea.hackspace.org.uk >>>>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Hackspace mailing list >>>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> >>>>>>> >>>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> > From timmoore47 at gmail.com Sat May 9 14:09:14 2015 From: timmoore47 at gmail.com (Tim Moore) Date: Sat, 9 May 2015 14:09:14 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: <037427b5-e5ae-479d-83cc-4298ec86c762@email.android.com> References: <037427b5-e5ae-479d-83cc-4298ec86c762@email.android.com> Message-ID: What sort of current can a A4988 carry ? Many thanks for responding. (Can it support the Stepper Motor I'm using?) : ) Tim_1 On 9 May 2015 at 10:32, Justin Mitchell wrote: > This does seem the hard way to do things when something like an A4988 > stepstick is a similar price and way simpler to use. > > Did you need some specifically higher current or other requirement? > > On 9 May 2015 7:09 am, Tim Moore wrote: > > > > Magic blue smoke was released ! : ((( So I've ordered another from > China. > > > > I'll double check everything, as H configuration can short +12V to > ground so easily ! Software can do that ! ? > > > > On another matter the L298N has two little cans marked '220 35V UT', > I've pnly recently come across them. What are they ? > > > > Is there any favoured software to drive them that is known to work > Arduino friendly? > > > > Many many thanks for responding ! > > > > : ))) > > > > Tim_1 > > > > On 8 May 2015 at 22:03, Ceri Clatworthy > wrote: > >> > >> Fetch in in Monday an we will get it going > >> > >> Unless the magic blue smoke has been released > >> Ceri > >> > >> On 8 May 2015 17:59, "Tim Moore" wrote: > >>> > >>> Well made sort of progress:- > >>> > >>> Got a 3D stepper type 17H16-2994S in the hope it would be powerful > enough to drive the thing I want to rotate. > >>> > >>> Based on an Arduino Uno with a L298N stepper controller, > >>> > >>> I found this software which I adapted for just one motor. > >>> > >>> quote > >>> > >>> // connect motor controller pins to Arduino digital pins > >>> // motor one > >>> int enA = 10; > >>> int in1 = 9; > >>> int in2 = 8; > >>> // motor two > >>> // int enB = 5; > >>> // int in3 = 7; > >>> // int in4 = 6; > >>> void setup() > >>> { > >>> // set all the motor control pins to outputs > >>> pinMode(enA, OUTPUT); > >>> // pinMode(enB, OUTPUT); > >>> pinMode(in1, OUTPUT); > >>> pinMode(in2, OUTPUT); > >>> // pinMode(in3, OUTPUT); > >>> // pinMode(in4, OUTPUT); > >>> } > >>> void demoOne() > >>> { > >>> // this function will run the motors in both directions at a fixed > speed > >>> // turn on motor A > >>> digitalWrite(in1, HIGH); > >>> digitalWrite(in2, LOW); > >>> // set speed to 200 out of possible range 0~255 > >>> analogWrite(enA, 200); > >>> // turn on motor B > >>> // digitalWrite(in3, HIGH); > >>> // digitalWrite(in4, LOW); > >>> // set speed to 200 out of possible range 0~255 > >>> // analogWrite(enB, 200); > >>> delay(2000); > >>> // now change motor directions > >>> digitalWrite(in1, LOW); > >>> digitalWrite(in2, HIGH); > >>> // digitalWrite(in3, LOW); > >>> // digitalWrite(in4, HIGH); > >>> //delay(2000); > >>> // now turn off motors > >>> digitalWrite(in1, LOW); > >>> digitalWrite(in2, LOW); > >>> // digitalWrite(in3, LOW); > >>> // digitalWrite(in4, LOW); > >>> } > >>> void demoTwo() > >>> { > >>> // this function will run the motors across the range of possible > speeds > >>> // note that maximum speed is determined by the motor itself and the > operating voltage > >>> // the PWM values sent by analogWrite() are fractions of the maximum > speed possible > >>> // by your hardware > >>> // turn on motors > >>> digitalWrite(in1, LOW); > >>> digitalWrite(in2, HIGH); > >>> // digitalWrite(in3, LOW); > >>> // digitalWrite(in4, HIGH); > >>> // accelerate from zero to maximum speed > >>> for (int i = 0; i < 256; i++) > >>> { > >>> analogWrite(enA, i); > >>> // analogWrite(enB, i); > >>> delay(20); > >>> } > >>> // decelerate from maximum speed to zero > >>> for (int i = 255; i >= 0; --i) > >>> { > >>> analogWrite(enA, i); > >>> // analogWrite(enB, i); > >>> delay(20); > >>> } > >>> // now turn off motors > >>> digitalWrite(in1, LOW); > >>> digitalWrite(in2, LOW); > >>> // digitalWrite(in3, LOW); > >>> // digitalWrite(in4, LOW); > >>> } > >>> void loop() > >>> { > >>> demoOne(); > >>> delay(1000); > >>> demoTwo(); > >>> delay(1000); > >>> } > >>> > >>> > >>> Wired it all up with a 12V 5A power supply and the stepper shaft > twitched a bit , but the L298N emitted a puff of smoke and the heatsink got > very hot ! > >>> > >>> Now I've checked the Arduino Uno and it seems aok. > >>> > >>> The stepper motor measure 2.7 Ohm from the +12v rail to nearest motor > pin, ditto earth to nearest pin. > >>> > >>> Applying 1.5V at 0.8 Amp to the each of the pair of wires the shaft > stops being rotatable. the two motor wires are at infinity. > >>> > >>> I've assumed that's a sign that I've not killed the stepper motor. > >>> > >>> Now before I get another L298N, I thought a few precautions are worth > while ! Slaying a series of L298N's doesn't seem that smart !!! *LOL* > >>> > >>> Any thoughts from anyone as to what to investigate next ? (I thought > perhaps the software was wrong for this model of stepper motor ? I'm > capable of making crass errors here..) > >>> > >>> : ) > >>> > >>> Tim_1 > >>> > >>> On 19 April 2015 at 11:41, Ceri Clatworthy > wrote: > >>>> > >>>> Reverse. .. > >>>> > >>>> If ULN 2003... > >>>> The wiggle pins in other direction! !! > >>>> > >>>> On 19 Apr 2015 11:23, "Tim Moore" wrote: > >>>>> > >>>>> Many thanks Ceri for the tip ! Greatly appreciated ! > >>>>> > >>>>> : ))) > >>>>> > >>>>> Tim_1 > >>>>> > >>>>> On 19 April 2015 at 11:21, Tim Moore wrote: > >>>>>> > >>>>>> Update:- > >>>>>> > >>>>>> It may not be very riveting but the change to 6400 (and the > deletion of */ at the top of the code worked fine ! > >>>>>> > >>>>>> the count for > >>>>>> 90 deg was 500 and time 52.5 secs > >>>>>> 180 deg was 1000 105 > >>>>>> 270 deg was 1500 157.5 > >>>>>> 360 deg was 2000 210 secs ( 3m 30 secs) approx > >>>>>> > >>>>>> (I hope !) > >>>>>> > >>>>>> Now this might be very boring, but it also might help a Newbie to > stepper motors test their new purchase out too ! > >>>>>> > >>>>>> Anyone know if the controller board can make it go in reverse ? > >>>>>> > >>>>>> : ))) > >>>>>> > >>>>>> Tim_1 > >>>>>> > >>>>>> On 19 April 2015 at 10:23, Tim Moore wrote: > >>>>>>> > >>>>>>> I've been trying to get this working on a 28BYJ-48 with ULN2003 > cheapest stepper motor set up. > >>>>>>> > >>>>>>> Created 30 Nov. 2009 > >>>>>>> by Tom Igoe > >>>>>>> > >>>>>>> */ > >>>>>>> > >>>>>>> #include > >>>>>>> > >>>>>>> const int stepsPerRevolution = 1440; // change this to fit the > number of steps per revolution > >>>>>>> // for your motor > >>>>>>> > >>>>>>> // initialize the stepper library on pins 8 through 11: > >>>>>>> Stepper myStepper(stepsPerRevolution, 8,9,10,11); > >>>>>>> > >>>>>>> int stepCount = 0; // number of steps the motor has taken > >>>>>>> > >>>>>>> void setup() { > >>>>>>> // initialize the serial port: > >>>>>>> Serial.begin(9600); > >>>>>>> } > >>>>>>> > >>>>>>> void loop() { > >>>>>>> // step one step: > >>>>>>> myStepper.step(1); > >>>>>>> Serial.print("steps:" ); > >>>>>>> Serial.println(stepCount); > >>>>>>> stepCount++; > >>>>>>> delay(100); > >>>>>>> } > >>>>>>> > >>>>>>> > >>>>>>> Spec:- > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> Voltage : 5V > >>>>>>> Diameter : 28mm > >>>>>>> Step angle : 5.625 x 1 / 64 > >>>>>>> Reduction ratio : 1 / 64 > >>>>>>> 5 Line 4 phase > >>>>>>> Current draw : 92mA > >>>>>>> Operating Frequency : 100pps > >>>>>>> Dimensions : 35mm x 28mm > >>>>>>> 4 mounting holes > >>>>>>> ULN2003 chip > >>>>>>> A, B, C, D four-phase status LED > >>>>>>> > >>>>>>> ___ > >>>>>>> > >>>>>>> > >>>>>>> Now the divide by 64 seems to be a stumbling block ? > >>>>>>> > >>>>>>> What I'm trying to do is use the 1.8 degree characteristic to get > 100 pulses to achieve a total rotation of 180 degrees to the shaft. > >>>>>>> > >>>>>>> A period of anything up to two minutes is fine for the 180 degree > rotation. > >>>>>>> > >>>>>>> So far it twitches a bit but not much else e.g. not very exciting. > >>>>>>> > >>>>>>> Should the stepsPerRevolution = 1440 be changed to > stepsPerRevolution = 6400 ? > >>>>>>> > >>>>>>> Maybe I've got the Arduino pins a tad wrong ? > >>>>>>> > >>>>>>> : ) > >>>>>>> > >>>>>>> > >>>>>>> Tim_1 > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> On 18 April 2015 at 19:58, Justin Mitchell < > justin at swansea.hackspace.org.uk> wrote: > >>>>>>>> > >>>>>>>> Yes, one motor one step-stick. > >>>>>>>> > >>>>>>>> Control it from an arduino, or any other micro, just needs two > GPIO > >>>>>>>> lines. > >>>>>>>> > >>>>>>>> > >>>>>>>> On Sat, 2015-04-18 at 16:04 +0100, Tim Moore wrote: > >>>>>>>> > So a single 'step-stick' would do it ? > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > Many thanks for responding ! > >>>>>>>> > > >>>>>>>> > : ))) > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > Tim_1 > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > On 18 April 2015 at 15:09, Justin Mitchell < > justin at discordia.org.uk> > >>>>>>>> > wrote: > >>>>>>>> > It's an interface for all the stuff you need to drive a > 3d > >>>>>>>> > printer, takes 5 step-sticks for stepper driving, has > power > >>>>>>>> > MOSFETs to pwm the hotends and heated bed, and a bunch > of > >>>>>>>> > inputs for end stops and thermistors. You plug it into > an > >>>>>>>> > Arduino mega board, install some software like Marlin > and it > >>>>>>>> > can run your printer, or mixed to control a CNC mill or > laser > >>>>>>>> > cutter. > >>>>>>>> > > >>>>>>>> > Way over kill for driving one motor :) > >>>>>>>> > > >>>>>>>> > On 18 Apr 2015 2:51 pm, Tim Moore > > >>>>>>>> > wrote: > >>>>>>>> > > > >>>>>>>> > > Wow ! Loads of interesting links and ideas ! > >>>>>>>> > > > >>>>>>>> > > Its a very slow rotation, so inertia is not a problem. > >>>>>>>> > > > >>>>>>>> > > Is a 'RAMPS 1.4' useful ? what does it do ? > >>>>>>>> > > > >>>>>>>> > > Many thanks to all who have responded ! > >>>>>>>> > > > >>>>>>>> > > : ))) > >>>>>>>> > > > >>>>>>>> > > Tim_1 > >>>>>>>> > > > >>>>>>>> > > On 18 April 2015 at 13:57, oliver Oliver > >>>>>>>> > wrote: > >>>>>>>> > >> > >>>>>>>> > >> Think about pulleys or gears. I don't know if you > want the > >>>>>>>> > pole to stop at a particular point or not. Inertia in > 1m pole > >>>>>>>> > will be higher than braking force of a stepper motor. > So it > >>>>>>>> > will continue to spin after you stop the motor. Giving > you an > >>>>>>>> > unpredictable 180 plus rotation. > >>>>>>>> > >> > >>>>>>>> > >> For a pulley arrangement look at t5 timing belts. > you can > >>>>>>>> > easily print the pulleys using a reprap. There are > libraries > >>>>>>>> > on thingiverse. > >>>>>>>> > >> > >>>>>>>> > >> A worm gear would be better, but you can't print > those. > >>>>>>>> > >> > >>>>>>>> > >> Oli > >>>>>>>> > >> > >>>>>>>> > >> On 18 Apr 2015 12:33, "Tim Moore" < > timmoore47 at gmail.com> > >>>>>>>> > wrote: > >>>>>>>> > >>> > >>>>>>>> > >>> I'm trying to carefully rorate a metre long light > weight > >>>>>>>> > pole through 180 degrees. > >>>>>>>> > >>> > >>>>>>>> > >>> I've got a Stepper Motor type 28BYJ-48 working > fine, but > >>>>>>>> > I'm sure I need one that is a bit more chunky ! > >>>>>>>> > >>> > >>>>>>>> > >>> I've got a 17HS16-2004S NEMA 17 (42 x 42 mm) high > torque > >>>>>>>> > 1.8 degree stepper motor on the way with a controller > card > >>>>>>>> > >>> > >>>>>>>> > >>> But I've not got a very clear vision yet what else > I might > >>>>>>>> > need and if there is any Arduino example software > listing that > >>>>>>>> > would be good to use to get it to work ? > >>>>>>>> > >>> > >>>>>>>> > >>> I don't want to reinvent the wheel ! *LOL* > >>>>>>>> > >>> > >>>>>>>> > >>> Any thoughts anyone ? > >>>>>>>> > >>> > >>>>>>>> > >>> : ))) > >>>>>>>> > >>> > >>>>>>>> > >>> Tim_1 > >>>>>>>> > >>> > >>>>>>>> > >>> _______________________________________________ > >>>>>>>> > >>> Hackspace mailing list > >>>>>>>> > >>> Hackspace at swansea.hackspace.org.uk > >>>>>>>> > >>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>>>>>>> > >>> > >>>>>>>> > >> > >>>>>>>> > >> _______________________________________________ > >>>>>>>> > >> Hackspace mailing list > >>>>>>>> > >> Hackspace at swansea.hackspace.org.uk > >>>>>>>> > >> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>>>>>>> > >> > >>>>>>>> > > > >>>>>>>> > _______________________________________________ > >>>>>>>> > Hackspace mailing list > >>>>>>>> > Hackspace at swansea.hackspace.org.uk > >>>>>>>> > > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > > >>>>>>>> > _______________________________________________ > >>>>>>>> > Hackspace mailing list > >>>>>>>> > Hackspace at swansea.hackspace.org.uk > >>>>>>>> > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>>>>>>> > >>>>>>>> > >>>>>>>> _______________________________________________ > >>>>>>>> Hackspace mailing list > >>>>>>>> Hackspace at swansea.hackspace.org.uk > >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>>>>>> > >>>>>>> > >>>>>> > >>>>> > >>>>> > >>>>> _______________________________________________ > >>>>> Hackspace mailing list > >>>>> Hackspace at swansea.hackspace.org.uk > >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>>>> > >>>> > >>>> _______________________________________________ > >>>> Hackspace mailing list > >>>> Hackspace at swansea.hackspace.org.uk > >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>>> > >>> > >>> > >>> _______________________________________________ > >>> Hackspace mailing list > >>> Hackspace at swansea.hackspace.org.uk > >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >>> > >> > >> _______________________________________________ > >> Hackspace mailing list > >> Hackspace at swansea.hackspace.org.uk > >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > >> > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at discordia.org.uk Sat May 9 16:08:55 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Sat, 09 May 2015 16:08:55 +0100 Subject: [Swansea Hackspace] Arduino Uno interface to a 3D printer stepper motor. In-Reply-To: References: <037427b5-e5ae-479d-83cc-4298ec86c762@email.android.com> Message-ID: <1431184135.20164.8.camel@emerald.geode.org.uk> On Sat, 2015-05-09 at 14:09 +0100, Tim Moore wrote: > What sort of current can a A4988 carry ? > > > Many thanks for responding. > > > (Can it support the Stepper Motor I'm using?) Looking back through the archive... > 28BYJ-48 5 wire unipolar - no > 17HS16-2004S NEMA 17 4 wire bipolar stepper Most definitely yes This is exactly the kind of motor used in 3d printers, and the A4988 is one of the most common things used in 3d printer control boards. https://www.pololu.com/product/1182 Motor drive: 8v to 32v Motor current: uncooled: 1A per coil heatsink/forced air: 2A per coil. the little trim pot you see on the board adjusts the built in current limiter. http://www.aliexpress.com/item//32296096239.html 87p including postage, cheaper in quantity. no complex phasing or other driver code required, just supply one pulse per step required, logic inputs to select direction and step size if wanted. From djdavies83 at hotmail.com Sun May 10 21:36:35 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Sun, 10 May 2015 21:36:35 +0100 Subject: [Swansea Hackspace] Anyone used this? Message-ID: https://github.com/esp8266/arduino If I read it correcrly, this makes arguing ide compatible with the esp8266 No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at discordia.org.uk Sun May 10 22:20:36 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Sun, 10 May 2015 22:20:36 +0100 Subject: [Swansea Hackspace] Anyone used this? In-Reply-To: Message-ID: It has been talked about a lot on the web, but I have yet to try it. I know it allows programming the esp8266 from the Arduino ide, but I have yet to figure out how much else it integrates On 10 May 2015 9:36 pm, David Davies-Day wrote: > > https://github.com/esp8266/arduino > > If I read it correcrly, this makes arguing ide compatible with the esp8266 > > > No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. From em at preseli.com Mon May 11 14:31:27 2015 From: em at preseli.com (Emyr Morris) Date: Mon, 11 May 2015 14:31:27 +0100 Subject: [Swansea Hackspace] 3d printing Message-ID: I've loaded A1 Spacer.gcode into the Octoprint. It is just under 8m of filament, the last I looked Blue was loaded into the printer. If somebody would be kind enough to start the print off for me I would be grateful. I should be in at about 7ish regardless. I've already asked Tim but he warned me that he might forget :-) :-) :-) :-) If anybody else has something more pressing then that is fine - thank you Emyr -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwiondavies at live.co.uk Mon May 11 18:00:35 2015 From: gwiondavies at live.co.uk (Gwion Davies) Date: Mon, 11 May 2015 18:00:35 +0100 Subject: [Swansea Hackspace] 3d printing In-Reply-To: References: Message-ID: I can start your print at 6ish. If you want? > On 11 May 2015, at 14:31, Emyr Morris wrote: > > I've loaded > > A1 Spacer.gcode > > into the Octoprint. > > It is just under 8m of filament, the last I looked Blue was loaded into the printer. > > If somebody would be kind enough to start the print off for me I would be grateful. I should be in at about 7ish regardless. I've already asked Tim but he warned me that he might forget :-) :-) :-) :-) > > > If anybody else has something more pressing then that is fine - thank you > > Emyr > > > > -- > This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. > > Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace From dick at acm.org Thu May 14 11:34:11 2015 From: dick at acm.org (Dick Porter) Date: Thu, 14 May 2015 11:34:11 +0100 Subject: [Swansea Hackspace] Ideas for more maker kit Message-ID: <307287D3-196A-42C3-8171-746DADBF093E@acm.org> Here's an article in this week's LWN: Free software and fashion tech, http://lwn.net/SubscriberLink/643941/f03aae16fe233687/ "Other challenges are smaller, such as the difficulty of building custom hardware (such as the open-hardware knitting machine). Here, Dang said that the Fashiontec community is trying to reach out more to the maker movement?hacker spaces in particular, which she said could all benefit from adding a sewing or knitting machine to their stable of 3D printers and laser cutters." - Dick From sharon at swansea.hackspace.org.uk Fri May 15 20:40:18 2015 From: sharon at swansea.hackspace.org.uk (Sharon Mitchell) Date: Fri, 15 May 2015 20:40:18 +0100 Subject: [Swansea Hackspace] Ideas for more maker kit In-Reply-To: <307287D3-196A-42C3-8171-746DADBF093E@acm.org> References: <307287D3-196A-42C3-8171-746DADBF093E@acm.org> Message-ID: <20150515204018.666565ab@picobox.apathetic.discordia.org.uk> My 'Make it Sew' workshops (third Thursday of month) were so poorly attended my sewing machine came home with me. I believe there's a laser cutter on that desk now.. From djdavies83 at hotmail.com Sat May 16 09:38:44 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Sat, 16 May 2015 09:38:44 +0100 Subject: [Swansea Hackspace] Anyone in today? Message-ID: Hi Gang, anyone in today? Really appreciate some help with arduino sonar (sr-04) and I don't have my Keys.? No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eclipse at sucs.org Sat May 16 10:49:24 2015 From: eclipse at sucs.org (Tim) Date: Sat, 16 May 2015 10:49:24 +0100 Subject: [Swansea Hackspace] Ideas for more maker kit In-Reply-To: <20150515204018.666565ab@picobox.apathetic.discordia.org.uk> References: <307287D3-196A-42C3-8171-746DADBF093E@acm.org> <20150515204018.666565ab@picobox.apathetic.discordia.org.uk> Message-ID: <555712A4.40800@sucs.org> The turnout to these was rather disappointing and I fully understand why the desision was made not to continue. However we do now have a page (http://swansea.hackspace.org.uk/Meetings/Suggestions) for people to suggest workshops they would like to attend and/or run so we can gauge interest in an attempt to prevent this kind of disappointment. If you would like some sewing (or anything else) workshops please request or like things there so we know people want and we can then make them happen. The laser cutter is only in that space temporally while we work on it to make it safe and ready for use, it will move to a more permanent home after that. Tim On 15/05/15 20:40, Sharon Mitchell wrote: > My 'Make it Sew' workshops (third Thursday of month) were so poorly > attended my sewing machine came home with me. I believe there's a > laser cutter on that desk now.. > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace From djdavies83 at hotmail.com Sun May 17 18:39:01 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Sun, 17 May 2015 18:39:01 +0100 Subject: [Swansea Hackspace] Swansea dad prints himself a new hand Message-ID: He went through e-Nable, he is looking to raise ?1000 for his own printer, I thought we may want to invite him over to see ours, maybe help him build his own. http://www.southwales-eveningpost.co.uk/Swansea-dad-prints-new-hand-inspired-Iron-Man/story-26518585-detail/story.html#OiHHsT3X97fZ4xFu.03 I did a search for him on Facebook but could not find him, perhaps if one of our directors contacted the paper they let him know about us, maybe do a follow up with us helping him. No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. -------------- next part -------------- An HTML attachment was scrubbed... URL: From neil at aurinia.co.uk Sun May 17 18:53:13 2015 From: neil at aurinia.co.uk (Neil Jones) Date: Sun, 17 May 2015 18:53:13 +0100 Subject: [Swansea Hackspace] Swansea dad prints himself a new hand In-Reply-To: References: Message-ID: <5558D589.20708@aurinia.co.uk> On 17/05/15 18:39, David Davies-Day wrote: > He went through e-Nable, he is looking to raise ?1000 for his own > printer, I thought we may want to invite him over to see ours, maybe > help him build his own. > > http://www.southwales-eveningpost.co.uk/Swansea-dad-prints-new-hand-inspired-Iron-Man/story-26518585-detail/story.html#OiHHsT3X97fZ4xFu.03 > > > I did a search for him on Facebook but could not find him, perhaps if > one of our directors contacted the paper they let him know about us, > maybe do a follow up with us helping him. > There is an opportunity here for us to get some publicity for ourselves. One of the directors write a letter to the paper along the lines of how wonderful it is that he has made his own hand . How wonderful the technology is, and that several of our members have these wonderful machines as do we and we would be happy to see if we could help him or anyone else who wants to learn about the technology. I'd be happy to draft something if it is th -------------- next part -------------- An HTML attachment was scrubbed... URL: From em at preseli.com Sun May 17 23:09:20 2015 From: em at preseli.com (Emyr Morris) Date: Sun, 17 May 2015 23:09:20 +0100 Subject: [Swansea Hackspace] Swansea dad prints himself a new hand In-Reply-To: <5558D589.20708@aurinia.co.uk> References: <5558D589.20708@aurinia.co.uk> Message-ID: how about dropping a note to e-nable offering a hand? On 17 May 2015 at 18:53, Neil Jones wrote: > > On 17/05/15 18:39, David Davies-Day wrote: > > He went through e-Nable, he is looking to raise ?1000 for his own printer, I > thought we may want to invite him over to see ours, maybe help him build his > own. > > http://www.southwales-eveningpost.co.uk/Swansea-dad-prints-new-hand-inspired-Iron-Man/story-26518585-detail/story.html#OiHHsT3X97fZ4xFu.03 > > > I did a search for him on Facebook but could not find him, perhaps if one of > our directors contacted the paper they let him know about us, maybe do a > follow up with us helping him. > > > There is an opportunity here for us to get some publicity for ourselves. > One of the directors write a letter to the paper along the lines of how > wonderful it is that he has made his own hand . How wonderful the technology > is, and that several of our members have these wonderful machines as do we > and we would be happy to see if we could help him or anyone else who wants > to learn about the technology. > > I'd be happy to draft something if it is th > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. From djdavies83 at hotmail.com Sun May 17 23:22:25 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Sun, 17 May 2015 23:22:25 +0100 Subject: [Swansea Hackspace] Swansea dad prints himself a new hand Message-ID: "how about dropping a note to e-nable offering a hand?" Haha BA-DUM-TISSSSSHHH! I like what you there Emyr, but seriously though we do need to contact Stephan, the paper, e-nable/all the above to see how much we can help. No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. -------- Original message -------- From: Emyr Morris Date:17/05/2015 23:10 (GMT+00:00) To: Swansea Hackspace Cc: Subject: Re: [Swansea Hackspace] Swansea dad prints himself a new hand how about dropping a note to e-nable offering a hand? On 17 May 2015 at 18:53, Neil Jones wrote: > > On 17/05/15 18:39, David Davies-Day wrote: > > He went through e-Nable, he is looking to raise ?1000 for his own printer, I > thought we may want to invite him over to see ours, maybe help him build his > own. > > http://www.southwales-eveningpost.co.uk/Swansea-dad-prints-new-hand-inspired-Iron-Man/story-26518585-detail/story.html#OiHHsT3X97fZ4xFu.03 > > > I did a search for him on Facebook but could not find him, perhaps if one of > our directors contacted the paper they let him know about us, maybe do a > follow up with us helping him. > > > There is an opportunity here for us to get some publicity for ourselves. > One of the directors write a letter to the paper along the lines of how > wonderful it is that he has made his own hand . How wonderful the technology > is, and that several of our members have these wonderful machines as do we > and we would be happy to see if we could help him or anyone else who wants > to learn about the technology. > > I'd be happy to draft something if it is th > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. _______________________________________________ Hackspace mailing list Hackspace at swansea.hackspace.org.uk http://swansea.hackspace.org.uk/mailman/listinfo/hackspace -------------- next part -------------- An HTML attachment was scrubbed... URL: From em at preseli.com Sun May 17 23:39:31 2015 From: em at preseli.com (Emyr Morris) Date: Sun, 17 May 2015 23:39:31 +0100 Subject: [Swansea Hackspace] Swansea dad prints himself a new hand In-Reply-To: References: Message-ID: I'm not denying any of that - but to contact stephen - the best way is via the people who helped him print the first hand - the whole ethos of the enable project is that people like us join enable so next time instead of having to travel to say cardiff or bristol, he (ar any other person who needs help) would come to us in their own city... once we have made that contact then we can do all the other things.... Em On 17 May 2015 at 23:22, David Davies-Day wrote: > "how about dropping a note to e-nable offering a hand?" > > Haha BA-DUM-TISSSSSHHH! I like what you there Emyr, but seriously though we > do need to contact Stephan, the paper, e-nable/all the above to see how much > we can help. > > > No animals were harmed in the making of this email. However, several > thousand electrons were severely inconvenienced. > > -------- Original message -------- > From: Emyr Morris > Date:17/05/2015 23:10 (GMT+00:00) > To: Swansea Hackspace > Cc: > Subject: Re: [Swansea Hackspace] Swansea dad prints himself a new hand > > how about dropping a note to e-nable offering a hand? > > On 17 May 2015 at 18:53, Neil Jones wrote: >> >> On 17/05/15 18:39, David Davies-Day wrote: >> >> He went through e-Nable, he is looking to raise ?1000 for his own printer, >> I >> thought we may want to invite him over to see ours, maybe help him build >> his >> own. >> >> >> http://www.southwales-eveningpost.co.uk/Swansea-dad-prints-new-hand-inspired-Iron-Man/story-26518585-detail/story.html#OiHHsT3X97fZ4xFu.03 >> >> >> I did a search for him on Facebook but could not find him, perhaps if one >> of >> our directors contacted the paper they let him know about us, maybe do a >> follow up with us helping him. >> >> >> There is an opportunity here for us to get some publicity for ourselves. >> One of the directors write a letter to the paper along the lines of how >> wonderful it is that he has made his own hand . How wonderful the >> technology >> is, and that several of our members have these wonderful machines as do we >> and we would be happy to see if we could help him or anyone else who wants >> to learn about the technology. >> >> I'd be happy to draft something if it is th >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> > > > > -- > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are addressed. > > Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn > gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy > atynt yn unig. > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. From timmoore47 at gmail.com Mon May 18 09:32:57 2015 From: timmoore47 at gmail.com (Tim Moore) Date: Mon, 18 May 2015 09:32:57 +0100 Subject: [Swansea Hackspace] MicroMite Mk 2 - joint purchase ? Message-ID: PIC32MX170F256B is available from Farnell for a lot less if bought in blocks of 10. less than ?5.00 each delivered is my guess. Now it uses BASIC as a language and has just gone up in a major spec improvement. This version comes in a 28 pin DIL version so is easy to solder in to a stripboard priotoboard. I'm happy to fund the initial purchase provided I can find 6 people who would also like one. http://geoffg.net/micromite.html I got the Mk1 working fine a few months ago. : ))) Tim_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan at lxorguk.ukuu.org.uk Mon May 18 12:05:23 2015 From: alan at lxorguk.ukuu.org.uk (Alan Cox) Date: Mon, 18 May 2015 12:05:23 +0100 Subject: [Swansea Hackspace] MicroMite Mk 2 - joint purchase ? In-Reply-To: References: Message-ID: <20150518120523.74c45339@www.etchedpixels.co.uk> On Mon, 18 May 2015 09:32:57 +0100 Tim Moore wrote: > PIC32MX170F256B is available from Farnell for a lot less if bought in > blocks of 10. less than ?5.00 each delivered is my guess. > > Now it uses BASIC as a language and has just gone up in a major spec > improvement. You can run much more useful stuff on it. See http://www.retrobsd.org That also has a rather handy simulator for whatever work you want to do with the chip. Alan From grahamowensuk at googlemail.com Mon May 18 14:24:02 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Mon, 18 May 2015 14:24:02 +0100 Subject: [Swansea Hackspace] SQL Help Message-ID: Hi all, Is anyone coming tonight that has good SQL skills? Im having a problem with some joins and subquery type stuff. Just to clarify though, I can do what I am trying to achieve by using php as some glue for the SQL, and now im up to a 25-35 seconds for the queries to execute and my fake CRON doesnt like it - i get an email warning at 30, and the process is killed at 35 seconds. I believe it is achievable in MUCH less time doing all the work at the database end - just now I have had to resort to creating a cache for the results when it server load is low enough that it lets me process in under 30 seconds :( if it helps the table format is something like this table1 table1.id: autonum active: bool t2id_1: int t2id_2: int t2id_3: int t2id_4: int t2id_5: int t2id_6: int table2 table2.id: autonum expected_date: datetime actual_date: datetime claim_date: datetime value: datetime what i need is for every item in table1 that is active, get the items from table2 that match t2id_1 ... t2id_6, from this i need a count and value for the next 'x' months where the claim_date is blank [month]['count'] = 3 [month]['value'] = 600 [month+n]['count'] = 7 [month+n]['value'] = 450 an so on.. I will have my laptop with me so i can demonstrate the actual database format, and the results I desire if anyone can help :) Thanks G -------------- next part -------------- An HTML attachment was scrubbed... URL: From grahamowensuk at googlemail.com Mon May 18 14:32:35 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Mon, 18 May 2015 14:32:35 +0100 Subject: [Swansea Hackspace] Ideas for more maker kit In-Reply-To: <555712A4.40800@sucs.org> References: <307287D3-196A-42C3-8171-746DADBF093E@acm.org> <20150515204018.666565ab@picobox.apathetic.discordia.org.uk> <555712A4.40800@sucs.org> Message-ID: Hi Sharon Im gutted to hear that and wish that I could have made it along to a couple of them, It has been absolutely hectic for me over the past few months - the only time I have made it into swansea since the agm has been at random o'clock and no-one has been around. In other news, have tried a few of the box pleats, and think I have the hang of it now. Will drop your book in either with yourself or Justin depending on who is around - Thanks :) On 16 May 2015 at 10:49, Tim wrote: > The turnout to these was rather disappointing and I fully understand why > the desision was made not to continue. However we do now have a page ( > http://swansea.hackspace.org.uk/Meetings/Suggestions) for people to > suggest workshops they would like to attend and/or run so we can gauge > interest in an attempt to prevent this kind of disappointment. If you would > like some sewing (or anything else) workshops please request or like things > there so we know people want and we can then make them happen. > The laser cutter is only in that space temporally while we work on it to > make it safe and ready for use, it will move to a more permanent home after > that. > > Tim > > > On 15/05/15 20:40, Sharon Mitchell wrote: > >> My 'Make it Sew' workshops (third Thursday of month) were so poorly >> attended my sewing machine came home with me. I believe there's a >> laser cutter on that desk now.. >> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From em at preseli.com Mon May 18 14:44:50 2015 From: em at preseli.com (Emyr Morris) Date: Mon, 18 May 2015 14:44:50 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: Message-ID: I'll be there but I am guessing that you have probably tried all the possibilities that I know - I'm at schoolboy level of SQL ;-) On 18 May 2015 at 14:24, Graham Owens wrote: > Hi all, > > Is anyone coming tonight that has good SQL skills? > > Im having a problem with some joins and subquery type stuff. Just to > clarify though, I can do what I am trying to achieve by using php as some > glue for the SQL, and now im up to a 25-35 seconds for the queries to > execute and my fake CRON doesnt like it - i get an email warning at 30, and > the process is killed at 35 seconds. > > I believe it is achievable in MUCH less time doing all the work at the > database end - just now I have had to resort to creating a cache for the > results when it server load is low enough that it lets me process in under > 30 seconds :( > > if it helps the table format is something like this > > table1 > table1.id: autonum > active: bool > t2id_1: int > t2id_2: int > t2id_3: int > t2id_4: int > t2id_5: int > t2id_6: int > > table2 > table2.id: autonum > expected_date: datetime > actual_date: datetime > claim_date: datetime > value: datetime > > > what i need is > for every item in table1 that is active, get the items from table2 that > match t2id_1 ... t2id_6, from this i need a count and value for the next > 'x' months where the claim_date is blank > > [month]['count'] = 3 > [month]['value'] = 600 > > [month+n]['count'] = 7 > [month+n]['value'] = 450 > > an so on.. > > I will have my laptop with me so i can demonstrate the actual database > format, and the results I desire if anyone can help :) > > Thanks > > G > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. From grahamowensuk at googlemail.com Mon May 18 14:45:32 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Mon, 18 May 2015 14:45:32 +0100 Subject: [Swansea Hackspace] Brass Fittings for melting things :) Message-ID: Hi Everyone, I am DESPERATE to find a brass fitting as follows. 1/2" (POSSIBLY 3/4") male threaded - not 100% sure what thread but it is the one that fits into cookers etc (NOT the bayonet end, the end that screws into the cooker, or bbq or whatever) and an 8mm hose barb on the other end. Or even a set of adaptors that will allow a connection from the threaded end to the barb. Something like this http://guideimg.alibaba.com/images/shop/79/09/24/6/m-1-2-x-8mm-barbs-connector-male-hose-connector-plumbing-fittings-no-10022_1240316.jpg if you have anything like it lying around, in a box in your shed, could you please bring it with you, and we can arrange a trade. Last week i finally got round to getting: Propane Bottle (FULL) Adjustable Propane Regulator Duel Burners Sand Bentonite Clay Gas Hose Hose Clamps and already have the furnace, spare refractory, mould boxes, crucible, safety gear and tongs. So this really is the last thing I need, and the trade could be in the form of an aluminium casting of your choosing - nothing too big or complex - as it has been a loooong time since I have done any casting. Also looking to experiment on 'Lost 3D Print - Casting' if anyone is interested. Thanks Again G -------------- next part -------------- An HTML attachment was scrubbed... URL: From em at preseli.com Mon May 18 14:49:16 2015 From: em at preseli.com (Emyr Morris) Date: Mon, 18 May 2015 14:49:16 +0100 Subject: [Swansea Hackspace] Brass Fittings for melting things :) In-Reply-To: References: Message-ID: is that for hooking up to a calor gas bottle? On 18 May 2015 at 14:45, Graham Owens wrote: > Hi Everyone, > > I am DESPERATE to find a brass fitting as follows. > > 1/2" (POSSIBLY 3/4") male threaded - not 100% sure what thread but it is the > one that fits into cookers etc (NOT the bayonet end, the end that screws > into the cooker, or bbq or whatever) and an 8mm hose barb on the other end. > > Or even a set of adaptors that will allow a connection from the threaded end > to the barb. > > Something like this > > http://guideimg.alibaba.com/images/shop/79/09/24/6/m-1-2-x-8mm-barbs-connector-male-hose-connector-plumbing-fittings-no-10022_1240316.jpg > > if you have anything like it lying around, in a box in your shed, could you > please bring it with you, and we can arrange a trade. > > Last week i finally got round to getting: > > Propane Bottle (FULL) > Adjustable Propane Regulator > Duel Burners > Sand > Bentonite Clay > Gas Hose > Hose Clamps > > and already have the furnace, spare refractory, mould boxes, crucible, > safety gear and tongs. > > So this really is the last thing I need, and the trade could be in the form > of an aluminium casting of your choosing - nothing too big or complex - as > it has been a loooong time since I have done any casting. > > Also looking to experiment on 'Lost 3D Print - Casting' if anyone is > interested. > > Thanks Again > > G > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. From justin at discordia.org.uk Mon May 18 14:50:37 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Mon, 18 May 2015 14:50:37 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: Message-ID: <1431957037.24312.9.camel@justin.llw.rokcorp.com> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: > table1 > table1.id: autonum > active: bool > t2id_1: int > t2id_2: int > t2id_3: int > t2id_4: int > t2id_5: int > t2id_6: int This is going to cause you problems, i forget which Normal Form it breaks, but its going to make it much harder to perform the query you want. Should probably be in a link table Should be a few of us there tonight that can bend you ear about database structures :) From steve at chygwyn.com Mon May 18 14:52:47 2015 From: steve at chygwyn.com (Steven Whitehouse) Date: Mon, 18 May 2015 14:52:47 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: Message-ID: <1431957167.2691.6.camel@localhost> Hi, On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: > Hi all, > > > Is anyone coming tonight that has good SQL skills? > > > Im having a problem with some joins and subquery type stuff. Just to > clarify though, I can do what I am trying to achieve by using php as > some glue for the SQL, and now im up to a 25-35 seconds for the > queries to execute and my fake CRON doesnt like it - i get an email > warning at 30, and the process is killed at 35 seconds. > > > I believe it is achievable in MUCH less time doing all the work at the > database end - just now I have had to resort to creating a cache for > the results when it server load is low enough that it lets me process > in under 30 seconds :( > > > if it helps the table format is something like this > > > table1 > table1.id: autonum > active: bool > t2id_1: int > t2id_2: int > > t2id_3: int > > t2id_4: int > > t2id_5: int > > t2id_6: int > > > > table2 > table2.id: autonum > expected_date: datetime > actual_date: datetime > claim_date: datetime > value: datetime > > > > > what i need is > for every item in table1 that is active, get the items from table2 > that match t2id_1 ... t2id_6, from this i need a count and value for > the next 'x' months where the claim_date is blank > > I suspect that your data is structured wrongly... for table one you might be able to rearrange like this: table1 table1.id: autonum active: bool t2id: int kind: int So that now you only need to join the tables on one field. The new kind column then tells you whether the entry is for t2id_1... t2id_6. That would make it much simpler. I don't know what "active" is for, so maybe you need to break that into two tables, if there should be only one "active" per table 6 entries. Anyway, once you've done your join, then you should be able to order by months, and add a limit so that you only get the next N entries. You could also use a where clause to limit the number returned too, as it was not very clear as to which would be preferable in this case, Steve. > [month]['count'] = 3 > > [month]['value'] = 600 > > > [month+n]['count'] = 7 > > [month+n]['value'] = 450 > > > an so on.. > > > I will have my laptop with me so i can demonstrate the actual database > format, and the results I desire if anyone can help :) > > > Thanks > > > G > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace From justin at discordia.org.uk Mon May 18 15:06:09 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Mon, 18 May 2015 15:06:09 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: Message-ID: <1431957969.24312.14.camel@justin.llw.rokcorp.com> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: > table1 > table1.id: autonum > active: bool > t2id_1: int > t2id_2: int > t2id_3: int > t2id_4: int > t2id_5: int > t2id_6: int > > > > table2 > table2.id: autonum > expected_date: datetime > actual_date: datetime > claim_date: datetime > value: datetime There are several questions about the data structure that need to be asked here, will one table2 entry only be used once, or could it be referenced by multiple table1 entries ? if the former, then the t2id_* fields are unnessary if the latter, then they should be replaced with a link table. but the list might not be the place to thrash this out, will see you later. From justin at discordia.org.uk Mon May 18 15:18:28 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Mon, 18 May 2015 15:18:28 +0100 Subject: [Swansea Hackspace] Brass Fittings for melting things :) In-Reply-To: References: Message-ID: <1431958708.24312.18.camel@justin.llw.rokcorp.com> On Mon, 2015-05-18 at 14:45 +0100, Graham Owens wrote: > 1/2" (POSSIBLY 3/4") male threaded - not 100% sure what thread but it > is the one that fits into cookers etc (NOT the bayonet end, the end > that screws into the cooker, or bbq or whatever) and an 8mm hose barb > on the other end. 3/8" BSP to 8mm hosetail ? http://www.ebay.co.uk/itm//121340171848 I don't have one though sorry, just bought the inverse (female thread) for use on the laser cutters flow sensor From grahamowensuk at googlemail.com Mon May 18 15:51:30 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Mon, 18 May 2015 15:51:30 +0100 Subject: [Swansea Hackspace] Brass Fittings for melting things :) In-Reply-To: <1431958708.24312.18.camel@justin.llw.rokcorp.com> References: <1431958708.24312.18.camel@justin.llw.rokcorp.com> Message-ID: I don't know if its the same as the gas bottle end (i have the regulator and hose attached at that end), but the furnace has the female on it, and it runs the gas under the the furnace and splits it for the two seperate burners. (this is a commercial furnace - not one I knocked up myself - I would have just duct taped the pipe to the burner ;) but I want to have this set up properly as a tool that I can just switch on and use) I will bring in the fitting I have that fits on one side, but has a 15mm compression joint on the other and measure it - that's why I never ordered one from fleabay - need to confirm exactly what I need. On 18 May 2015 at 15:18, Justin Mitchell wrote: > On Mon, 2015-05-18 at 14:45 +0100, Graham Owens wrote: > > > > 1/2" (POSSIBLY 3/4") male threaded - not 100% sure what thread but it > > is the one that fits into cookers etc (NOT the bayonet end, the end > > that screws into the cooker, or bbq or whatever) and an 8mm hose barb > > on the other end. > > 3/8" BSP to 8mm hosetail ? > > http://www.ebay.co.uk/itm//121340171848 > > > I don't have one though sorry, just bought the inverse (female thread) > for use on the laser cutters flow sensor > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From grahamowensuk at googlemail.com Mon May 18 15:56:49 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Mon, 18 May 2015 15:56:49 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: <1431957969.24312.14.camel@justin.llw.rokcorp.com> References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: Justin, I think you might be right - we can thrash it out a bit more later Thanks for all the input, once we have a chat later - and formalize the problem better (there are normalization rules????? - just kidding - i was between a rock and a hard place, this works - just needs improved) If it still is giving me problems, we can pick up the conversation then. Thanks G On 18 May 2015 at 15:06, Justin Mitchell wrote: > On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: > > > > table1 > > table1.id: autonum > > active: bool > > t2id_1: int > > t2id_2: int > > t2id_3: int > > t2id_4: int > > t2id_5: int > > t2id_6: int > > > > > > > > table2 > > table2.id: autonum > > expected_date: datetime > > actual_date: datetime > > claim_date: datetime > > value: datetime > > There are several questions about the data structure that need to be > asked here, will one table2 entry only be used once, or could it be > referenced by multiple table1 entries ? > > if the former, then the t2id_* fields are unnessary > if the latter, then they should be replaced with a link table. > > but the list might not be the place to thrash this out, will see you > later. > > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From em at preseli.com Mon May 18 16:00:31 2015 From: em at preseli.com (Emyr Morris) Date: Mon, 18 May 2015 16:00:31 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: I can show you some real world examples later of working tables full of data. I find it much easier to explain that way On Monday, May 18, 2015, Graham Owens wrote: > Justin, I think you might be right - we can thrash it out a bit more later > > Thanks for all the input, once we have a chat later - and formalize the > problem better (there are normalization rules????? - just kidding - i was > between a rock and a hard place, this works - just needs improved) > > If it still is giving me problems, we can pick up the conversation then. > > Thanks > > G > > On 18 May 2015 at 15:06, Justin Mitchell > wrote: > >> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >> >> >> > table1 >> > table1.id: autonum >> > active: bool >> > t2id_1: int >> > t2id_2: int >> > t2id_3: int >> > t2id_4: int >> > t2id_5: int >> > t2id_6: int >> > >> > >> > >> > table2 >> > table2.id: autonum >> > expected_date: datetime >> > actual_date: datetime >> > claim_date: datetime >> > value: datetime >> >> There are several questions about the data structure that need to be >> asked here, will one table2 entry only be used once, or could it be >> referenced by multiple table1 entries ? >> >> if the former, then the t2id_* fields are unnessary >> if the latter, then they should be replaced with a link table. >> >> but the list might not be the place to thrash this out, will see you >> later. >> >> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> > > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: From djdavies83 at hotmail.com Tue May 19 07:23:20 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Tue, 19 May 2015 07:23:20 +0100 Subject: [Swansea Hackspace] Just found SCAD android Message-ID: It's called scorchcad, a few feature not present yet, but it's a start!? No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: tempFileForShare.jpg Type: image/jpeg Size: 281906 bytes Desc: not available URL: From grahamowensuk at googlemail.com Wed May 20 17:03:53 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Wed, 20 May 2015 17:03:53 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: Better?? Column Type Null Default Comments xxxx_id int(11) No xxxx_modified timestamp No CURRENT_TIMESTAMP xxxx_created timestamp No 0000-00-00 00:00:00 xxxx_title varchar(16) No xxxx_first varchar(50) No xxxx_last varchar(50) No xxxx_dob date No xxxx_active int(4) No 0 xxxx_start_date date No xxxx_exp_end_date date No xxxx_start_payment_value decimal(10,2) No xxxx_start_payment_claim_date date Yes *NULL* xxxx_outcome_payment_value decimal(10,2) No xxxx_outcome_payment_claim_date date Yes *NULL* Column Type Null Default Comments ms_id int(11) No xxxx_id int(11) No ms_weight tinyint(4) No ms_exp_date date No ms_act_date date Yes *NULL* ms_claim_date date Yes *NULL* ms_value decimal(6,2) No SELECT EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) AS period, COUNT(*) as ms_count, IFNULL(SUM(`milestone_value`),0) as ms_value, ( SELECT COUNT(*) FROM `xxxx` WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) AND `xxxx_outcome_payment_claim_date` IS NULL ) as fin_count, IFNULL(( SELECT SUM(`xxxx_outcome_payment_value`) FROM `xxxx` WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) AND `xxxx_outcome_payment_claim_date` IS NULL ),0) as fin_value FROM `ms` RIGHT JOIN `calendar_month` ON EXTRACT(YEAR_MONTH FROM `ms`.`ms_exp_date`)=EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) WHERE `calendar_month`.`calendar_month_date` BETWEEN DATE_FORMAT(NOW() ,'%Y-%m-01') AND DATE_ADD(DATE_FORMAT(NOW() ,'%Y-%m-01'),INTERVAL 12 MONTH) AND `ms`.`ms_claim_date` IS NULL GROUP BY EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) LIMIT 12 Managed to get it down from *35.6576* seconds to *0.0139* seconds [?] Thanks everyone. Can this be made any more efficient, table row counts for 'ms' just now are 10's of thousands, but will be into the several hundred thousand (possibly millions within a year) On 18 May 2015 at 16:00, Emyr Morris wrote: > I can show you some real world examples later of working tables full of > data. I find it much easier to explain that way > > > On Monday, May 18, 2015, Graham Owens > wrote: > >> Justin, I think you might be right - we can thrash it out a bit more later >> >> Thanks for all the input, once we have a chat later - and formalize the >> problem better (there are normalization rules????? - just kidding - i was >> between a rock and a hard place, this works - just needs improved) >> >> If it still is giving me problems, we can pick up the conversation then. >> >> Thanks >> >> G >> >> On 18 May 2015 at 15:06, Justin Mitchell wrote: >> >>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>> >>> >>> > table1 >>> > table1.id: autonum >>> > active: bool >>> > t2id_1: int >>> > t2id_2: int >>> > t2id_3: int >>> > t2id_4: int >>> > t2id_5: int >>> > t2id_6: int >>> > >>> > >>> > >>> > table2 >>> > table2.id: autonum >>> > expected_date: datetime >>> > actual_date: datetime >>> > claim_date: datetime >>> > value: datetime >>> >>> There are several questions about the data structure that need to be >>> asked here, will one table2 entry only be used once, or could it be >>> referenced by multiple table1 entries ? >>> >>> if the former, then the t2id_* fields are unnessary >>> if the latter, then they should be replaced with a link table. >>> >>> but the list might not be the place to thrash this out, will see you >>> later. >>> >>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >> >> > > -- > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. > > Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol > ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > On 18 May 2015 at 16:00, Emyr Morris wrote: > I can show you some real world examples later of working tables full of > data. I find it much easier to explain that way > > > On Monday, May 18, 2015, Graham Owens > wrote: > >> Justin, I think you might be right - we can thrash it out a bit more later >> >> Thanks for all the input, once we have a chat later - and formalize the >> problem better (there are normalization rules????? - just kidding - i was >> between a rock and a hard place, this works - just needs improved) >> >> If it still is giving me problems, we can pick up the conversation then. >> >> Thanks >> >> G >> >> On 18 May 2015 at 15:06, Justin Mitchell wrote: >> >>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>> >>> >>> > table1 >>> > table1.id: autonum >>> > active: bool >>> > t2id_1: int >>> > t2id_2: int >>> > t2id_3: int >>> > t2id_4: int >>> > t2id_5: int >>> > t2id_6: int >>> > >>> > >>> > >>> > table2 >>> > table2.id: autonum >>> > expected_date: datetime >>> > actual_date: datetime >>> > claim_date: datetime >>> > value: datetime >>> >>> There are several questions about the data structure that need to be >>> asked here, will one table2 entry only be used once, or could it be >>> referenced by multiple table1 entries ? >>> >>> if the former, then the t2id_* fields are unnessary >>> if the latter, then they should be replaced with a link table. >>> >>> but the list might not be the place to thrash this out, will see you >>> later. >>> >>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >> >> > > -- > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. > > Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol > ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 360.gif Type: image/gif Size: 453 bytes Desc: not available URL: From em at preseli.com Wed May 20 20:28:08 2015 From: em at preseli.com (Emyr Morris) Date: Wed, 20 May 2015 20:28:08 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: it is amazing how a bit of tidying up makes such a difference! Chuffed for you. Smashes that old saying "A problem shared is a problem halved"! Emyr On 20 May 2015 at 17:03, Graham Owens wrote: > Better?? > > Column Type Null Default Comments xxxx_id int(11) No > xxxx_modified timestamp No CURRENT_TIMESTAMP xxxx_created timestamp > No 0000-00-00 00:00:00 xxxx_title varchar(16) No xxxx_first > varchar(50) No xxxx_last varchar(50) No xxxx_dob date No > xxxx_active int(4) No 0 xxxx_start_date date No > xxxx_exp_end_date date No xxxx_start_payment_value decimal(10,2) No > xxxx_start_payment_claim_date date Yes *NULL* > xxxx_outcome_payment_value decimal(10,2) No > xxxx_outcome_payment_claim_date date Yes *NULL* > > Column Type Null Default Comments ms_id int(11) No xxxx_id > int(11) No ms_weight tinyint(4) No ms_exp_date date No > ms_act_date date Yes *NULL* ms_claim_date date Yes *NULL* > ms_value decimal(6,2) No > > > SELECT EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) AS > period, COUNT(*) as ms_count, IFNULL(SUM(`milestone_value`),0) as ms_value, > ( > SELECT COUNT(*) > FROM `xxxx` > WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH > FROM `calendar_month`.`calendar_month_date`) AND > `xxxx_outcome_payment_claim_date` IS NULL > ) as fin_count, > IFNULL(( > SELECT SUM(`xxxx_outcome_payment_value`) > FROM `xxxx` > WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH > FROM `calendar_month`.`calendar_month_date`) AND > `xxxx_outcome_payment_claim_date` IS NULL > ),0) as fin_value > FROM `ms` > RIGHT JOIN `calendar_month` > ON EXTRACT(YEAR_MONTH FROM `ms`.`ms_exp_date`)=EXTRACT(YEAR_MONTH FROM > `calendar_month`.`calendar_month_date`) > WHERE `calendar_month`.`calendar_month_date` BETWEEN DATE_FORMAT(NOW() > ,'%Y-%m-01') AND DATE_ADD(DATE_FORMAT(NOW() ,'%Y-%m-01'),INTERVAL 12 MONTH) > AND `ms`.`ms_claim_date` IS NULL > GROUP BY EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) > LIMIT 12 > > Managed to get it down from *35.6576* seconds to *0.0139* seconds [?] > > Thanks everyone. Can this be made any more efficient, table row counts > for 'ms' just now are 10's of thousands, but will be into the several > hundred thousand (possibly millions within a year) > > > > On 18 May 2015 at 16:00, Emyr Morris wrote: > >> I can show you some real world examples later of working tables full of >> data. I find it much easier to explain that way >> >> >> On Monday, May 18, 2015, Graham Owens >> wrote: >> >>> Justin, I think you might be right - we can thrash it out a bit more >>> later >>> >>> Thanks for all the input, once we have a chat later - and formalize the >>> problem better (there are normalization rules????? - just kidding - i was >>> between a rock and a hard place, this works - just needs improved) >>> >>> If it still is giving me problems, we can pick up the conversation then. >>> >>> Thanks >>> >>> G >>> >>> On 18 May 2015 at 15:06, Justin Mitchell >>> wrote: >>> >>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>> >>>> >>>> > table1 >>>> > table1.id: autonum >>>> > active: bool >>>> > t2id_1: int >>>> > t2id_2: int >>>> > t2id_3: int >>>> > t2id_4: int >>>> > t2id_5: int >>>> > t2id_6: int >>>> > >>>> > >>>> > >>>> > table2 >>>> > table2.id: autonum >>>> > expected_date: datetime >>>> > actual_date: datetime >>>> > claim_date: datetime >>>> > value: datetime >>>> >>>> There are several questions about the data structure that need to be >>>> asked here, will one table2 entry only be used once, or could it be >>>> referenced by multiple table1 entries ? >>>> >>>> if the former, then the t2id_* fields are unnessary >>>> if the latter, then they should be replaced with a link table. >>>> >>>> but the list might not be the place to thrash this out, will see you >>>> later. >>>> >>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>> >>> >> >> -- >> This e-mail and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom they are >> addressed. >> >> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >> yn unig. >> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > On 18 May 2015 at 16:00, Emyr Morris wrote: > >> I can show you some real world examples later of working tables full of >> data. I find it much easier to explain that way >> >> >> On Monday, May 18, 2015, Graham Owens >> wrote: >> >>> Justin, I think you might be right - we can thrash it out a bit more >>> later >>> >>> Thanks for all the input, once we have a chat later - and formalize the >>> problem better (there are normalization rules????? - just kidding - i was >>> between a rock and a hard place, this works - just needs improved) >>> >>> If it still is giving me problems, we can pick up the conversation then. >>> >>> Thanks >>> >>> G >>> >>> On 18 May 2015 at 15:06, Justin Mitchell >>> wrote: >>> >>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>> >>>> >>>> > table1 >>>> > table1.id: autonum >>>> > active: bool >>>> > t2id_1: int >>>> > t2id_2: int >>>> > t2id_3: int >>>> > t2id_4: int >>>> > t2id_5: int >>>> > t2id_6: int >>>> > >>>> > >>>> > >>>> > table2 >>>> > table2.id: autonum >>>> > expected_date: datetime >>>> > actual_date: datetime >>>> > claim_date: datetime >>>> > value: datetime >>>> >>>> There are several questions about the data structure that need to be >>>> asked here, will one table2 entry only be used once, or could it be >>>> referenced by multiple table1 entries ? >>>> >>>> if the former, then the t2id_* fields are unnessary >>>> if the latter, then they should be replaced with a link table. >>>> >>>> but the list might not be the place to thrash this out, will see you >>>> later. >>>> >>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>> >>> >> >> -- >> This e-mail and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom they are >> addressed. >> >> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >> yn unig. >> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 360.gif Type: image/gif Size: 453 bytes Desc: not available URL: From grahamowensuk at googlemail.com Wed May 20 20:35:10 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Wed, 20 May 2015 20:35:10 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: Yeah deffo, Im so glad we had that chat on Monday, there were some bits that I knew, but some awesome additional info - you will also be please to not that I have been through and fixed ALL the date usages in my code so that everything is handled on the database end. :) If you want a challenge, this is my next problem http://stackoverflow.com/questions/30358486/mysql-query-using-id-in-subquery-or-join Same as before, I have something that works, using PHP in the middle to pass in variables to the sub-queries but its very inefficient and makes the PHP almost unreadable. Thanks, G On 20 May 2015 at 20:28, Emyr Morris wrote: > it is amazing how a bit of tidying up makes such a difference! Chuffed for > you. > > Smashes that old saying "A problem shared is a problem halved"! > > Emyr > > > > On 20 May 2015 at 17:03, Graham Owens > wrote: > >> Better?? >> >> Column Type Null Default Comments xxxx_id int(11) No >> xxxx_modified timestamp No CURRENT_TIMESTAMP xxxx_created timestamp >> No 0000-00-00 00:00:00 xxxx_title varchar(16) No xxxx_first >> varchar(50) No xxxx_last varchar(50) No xxxx_dob date No >> xxxx_active int(4) No 0 xxxx_start_date date No >> xxxx_exp_end_date date No xxxx_start_payment_value decimal(10,2) >> No xxxx_start_payment_claim_date date Yes *NULL* >> xxxx_outcome_payment_value decimal(10,2) No >> xxxx_outcome_payment_claim_date date Yes *NULL* >> >> Column Type Null Default Comments ms_id int(11) No xxxx_id >> int(11) No ms_weight tinyint(4) No ms_exp_date date No >> ms_act_date date Yes *NULL* ms_claim_date date Yes *NULL* >> ms_value decimal(6,2) No >> >> >> SELECT EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) AS >> period, COUNT(*) as ms_count, IFNULL(SUM(`milestone_value`),0) as ms_value, >> ( >> SELECT COUNT(*) >> FROM `xxxx` >> WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH >> FROM `calendar_month`.`calendar_month_date`) AND >> `xxxx_outcome_payment_claim_date` IS NULL >> ) as fin_count, >> IFNULL(( >> SELECT SUM(`xxxx_outcome_payment_value`) >> FROM `xxxx` >> WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH >> FROM `calendar_month`.`calendar_month_date`) AND >> `xxxx_outcome_payment_claim_date` IS NULL >> ),0) as fin_value >> FROM `ms` >> RIGHT JOIN `calendar_month` >> ON EXTRACT(YEAR_MONTH FROM `ms`.`ms_exp_date`)=EXTRACT(YEAR_MONTH FROM >> `calendar_month`.`calendar_month_date`) >> WHERE `calendar_month`.`calendar_month_date` BETWEEN DATE_FORMAT(NOW() >> ,'%Y-%m-01') AND DATE_ADD(DATE_FORMAT(NOW() ,'%Y-%m-01'),INTERVAL 12 MONTH) >> AND `ms`.`ms_claim_date` IS NULL >> GROUP BY EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) >> LIMIT 12 >> >> Managed to get it down from *35.6576* seconds to *0.0139* seconds [?] >> >> Thanks everyone. Can this be made any more efficient, table row counts >> for 'ms' just now are 10's of thousands, but will be into the several >> hundred thousand (possibly millions within a year) >> >> >> >> On 18 May 2015 at 16:00, Emyr Morris wrote: >> >>> I can show you some real world examples later of working tables full of >>> data. I find it much easier to explain that way >>> >>> >>> On Monday, May 18, 2015, Graham Owens >>> wrote: >>> >>>> Justin, I think you might be right - we can thrash it out a bit more >>>> later >>>> >>>> Thanks for all the input, once we have a chat later - and formalize the >>>> problem better (there are normalization rules????? - just kidding - i was >>>> between a rock and a hard place, this works - just needs improved) >>>> >>>> If it still is giving me problems, we can pick up the conversation then. >>>> >>>> Thanks >>>> >>>> G >>>> >>>> On 18 May 2015 at 15:06, Justin Mitchell >>>> wrote: >>>> >>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>> >>>>> >>>>> > table1 >>>>> > table1.id: autonum >>>>> > active: bool >>>>> > t2id_1: int >>>>> > t2id_2: int >>>>> > t2id_3: int >>>>> > t2id_4: int >>>>> > t2id_5: int >>>>> > t2id_6: int >>>>> > >>>>> > >>>>> > >>>>> > table2 >>>>> > table2.id: autonum >>>>> > expected_date: datetime >>>>> > actual_date: datetime >>>>> > claim_date: datetime >>>>> > value: datetime >>>>> >>>>> There are several questions about the data structure that need to be >>>>> asked here, will one table2 entry only be used once, or could it be >>>>> referenced by multiple table1 entries ? >>>>> >>>>> if the former, then the t2id_* fields are unnessary >>>>> if the latter, then they should be replaced with a link table. >>>>> >>>>> but the list might not be the place to thrash this out, will see you >>>>> later. >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>> >>>> >>> >>> -- >>> This e-mail and any files transmitted with it are confidential and >>> intended solely for the use of the individual or entity to whom they are >>> addressed. >>> >>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>> yn unig. >>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> On 18 May 2015 at 16:00, Emyr Morris wrote: >> >>> I can show you some real world examples later of working tables full of >>> data. I find it much easier to explain that way >>> >>> >>> On Monday, May 18, 2015, Graham Owens >>> wrote: >>> >>>> Justin, I think you might be right - we can thrash it out a bit more >>>> later >>>> >>>> Thanks for all the input, once we have a chat later - and formalize the >>>> problem better (there are normalization rules????? - just kidding - i was >>>> between a rock and a hard place, this works - just needs improved) >>>> >>>> If it still is giving me problems, we can pick up the conversation then. >>>> >>>> Thanks >>>> >>>> G >>>> >>>> On 18 May 2015 at 15:06, Justin Mitchell >>>> wrote: >>>> >>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>> >>>>> >>>>> > table1 >>>>> > table1.id: autonum >>>>> > active: bool >>>>> > t2id_1: int >>>>> > t2id_2: int >>>>> > t2id_3: int >>>>> > t2id_4: int >>>>> > t2id_5: int >>>>> > t2id_6: int >>>>> > >>>>> > >>>>> > >>>>> > table2 >>>>> > table2.id: autonum >>>>> > expected_date: datetime >>>>> > actual_date: datetime >>>>> > claim_date: datetime >>>>> > value: datetime >>>>> >>>>> There are several questions about the data structure that need to be >>>>> asked here, will one table2 entry only be used once, or could it be >>>>> referenced by multiple table1 entries ? >>>>> >>>>> if the former, then the t2id_* fields are unnessary >>>>> if the latter, then they should be replaced with a link table. >>>>> >>>>> but the list might not be the place to thrash this out, will see you >>>>> later. >>>>> >>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>> >>>> >>> >>> -- >>> This e-mail and any files transmitted with it are confidential and >>> intended solely for the use of the individual or entity to whom they are >>> addressed. >>> >>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>> yn unig. >>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > > > -- > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. > > Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol > ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 360.gif Type: image/gif Size: 453 bytes Desc: not available URL: From em at preseli.com Wed May 20 21:19:01 2015 From: em at preseli.com (Emyr Morris) Date: Wed, 20 May 2015 21:19:01 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: is this the perfect time to run a CRON job to calculate who is due a review... producing a new table... and then query the results of the cron job? I'm thinking run the Cron every 24 hours and then any day that a manager wants a report it can be fetched easily That would simplify the SQL a lot On 20 May 2015 at 20:35, Graham Owens wrote: > Yeah deffo, > > Im so glad we had that chat on Monday, there were some bits that I knew, > but some awesome additional info - you will also be please to not that I > have been through and fixed ALL the date usages in my code so that > everything is handled on the database end. :) > > If you want a challenge, this is my next problem > http://stackoverflow.com/questions/30358486/mysql-query-using-id-in-subquery-or-join > > Same as before, I have something that works, using PHP in the middle to > pass in variables to the sub-queries but its very inefficient and makes the > PHP almost unreadable. > > Thanks, > > G > > > > On 20 May 2015 at 20:28, Emyr Morris wrote: > >> it is amazing how a bit of tidying up makes such a difference! Chuffed >> for you. >> >> Smashes that old saying "A problem shared is a problem halved"! >> >> Emyr >> >> >> >> On 20 May 2015 at 17:03, Graham Owens >> wrote: >> >>> Better?? >>> >>> Column Type Null Default Comments xxxx_id int(11) No >>> xxxx_modified timestamp No CURRENT_TIMESTAMP xxxx_created timestamp >>> No 0000-00-00 00:00:00 xxxx_title varchar(16) No xxxx_first >>> varchar(50) No xxxx_last varchar(50) No xxxx_dob date No >>> xxxx_active int(4) No 0 xxxx_start_date date No >>> xxxx_exp_end_date date No xxxx_start_payment_value decimal(10,2) >>> No xxxx_start_payment_claim_date date Yes *NULL* >>> xxxx_outcome_payment_value decimal(10,2) No >>> xxxx_outcome_payment_claim_date date Yes *NULL* >>> >>> Column Type Null Default Comments ms_id int(11) No xxxx_id >>> int(11) No ms_weight tinyint(4) No ms_exp_date date No >>> ms_act_date date Yes *NULL* ms_claim_date date Yes *NULL* >>> ms_value decimal(6,2) No >>> >>> >>> SELECT EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) >>> AS period, COUNT(*) as ms_count, IFNULL(SUM(`milestone_value`),0) as >>> ms_value, >>> ( >>> SELECT COUNT(*) >>> FROM `xxxx` >>> WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH >>> FROM `calendar_month`.`calendar_month_date`) AND >>> `xxxx_outcome_payment_claim_date` IS NULL >>> ) as fin_count, >>> IFNULL(( >>> SELECT SUM(`xxxx_outcome_payment_value`) >>> FROM `xxxx` >>> WHERE EXTRACT(YEAR_MONTH FROM `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH >>> FROM `calendar_month`.`calendar_month_date`) AND >>> `xxxx_outcome_payment_claim_date` IS NULL >>> ),0) as fin_value >>> FROM `ms` >>> RIGHT JOIN `calendar_month` >>> ON EXTRACT(YEAR_MONTH FROM `ms`.`ms_exp_date`)=EXTRACT(YEAR_MONTH FROM >>> `calendar_month`.`calendar_month_date`) >>> WHERE `calendar_month`.`calendar_month_date` BETWEEN DATE_FORMAT(NOW() >>> ,'%Y-%m-01') AND DATE_ADD(DATE_FORMAT(NOW() ,'%Y-%m-01'),INTERVAL 12 MONTH) >>> AND `ms`.`ms_claim_date` IS NULL >>> GROUP BY EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) >>> LIMIT 12 >>> >>> Managed to get it down from *35.6576* seconds to *0.0139* seconds [?] >>> >>> Thanks everyone. Can this be made any more efficient, table row counts >>> for 'ms' just now are 10's of thousands, but will be into the several >>> hundred thousand (possibly millions within a year) >>> >>> >>> >>> On 18 May 2015 at 16:00, Emyr Morris wrote: >>> >>>> I can show you some real world examples later of working tables full of >>>> data. I find it much easier to explain that way >>>> >>>> >>>> On Monday, May 18, 2015, Graham Owens >>>> wrote: >>>> >>>>> Justin, I think you might be right - we can thrash it out a bit more >>>>> later >>>>> >>>>> Thanks for all the input, once we have a chat later - and formalize >>>>> the problem better (there are normalization rules????? - just kidding - i >>>>> was between a rock and a hard place, this works - just needs improved) >>>>> >>>>> If it still is giving me problems, we can pick up the conversation >>>>> then. >>>>> >>>>> Thanks >>>>> >>>>> G >>>>> >>>>> On 18 May 2015 at 15:06, Justin Mitchell >>>>> wrote: >>>>> >>>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>>> >>>>>> >>>>>> > table1 >>>>>> > table1.id: autonum >>>>>> > active: bool >>>>>> > t2id_1: int >>>>>> > t2id_2: int >>>>>> > t2id_3: int >>>>>> > t2id_4: int >>>>>> > t2id_5: int >>>>>> > t2id_6: int >>>>>> > >>>>>> > >>>>>> > >>>>>> > table2 >>>>>> > table2.id: autonum >>>>>> > expected_date: datetime >>>>>> > actual_date: datetime >>>>>> > claim_date: datetime >>>>>> > value: datetime >>>>>> >>>>>> There are several questions about the data structure that need to be >>>>>> asked here, will one table2 entry only be used once, or could it be >>>>>> referenced by multiple table1 entries ? >>>>>> >>>>>> if the former, then the t2id_* fields are unnessary >>>>>> if the latter, then they should be replaced with a link table. >>>>>> >>>>>> but the list might not be the place to thrash this out, will see you >>>>>> later. >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Hackspace mailing list >>>>>> Hackspace at swansea.hackspace.org.uk >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> >>>>> >>>>> >>>> >>>> -- >>>> This e-mail and any files transmitted with it are confidential and >>>> intended solely for the use of the individual or entity to whom they are >>>> addressed. >>>> >>>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>>> yn unig. >>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>>> >>> On 18 May 2015 at 16:00, Emyr Morris wrote: >>> >>>> I can show you some real world examples later of working tables full of >>>> data. I find it much easier to explain that way >>>> >>>> >>>> On Monday, May 18, 2015, Graham Owens >>>> wrote: >>>> >>>>> Justin, I think you might be right - we can thrash it out a bit more >>>>> later >>>>> >>>>> Thanks for all the input, once we have a chat later - and formalize >>>>> the problem better (there are normalization rules????? - just kidding - i >>>>> was between a rock and a hard place, this works - just needs improved) >>>>> >>>>> If it still is giving me problems, we can pick up the conversation >>>>> then. >>>>> >>>>> Thanks >>>>> >>>>> G >>>>> >>>>> On 18 May 2015 at 15:06, Justin Mitchell >>>>> wrote: >>>>> >>>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>>> >>>>>> >>>>>> > table1 >>>>>> > table1.id: autonum >>>>>> > active: bool >>>>>> > t2id_1: int >>>>>> > t2id_2: int >>>>>> > t2id_3: int >>>>>> > t2id_4: int >>>>>> > t2id_5: int >>>>>> > t2id_6: int >>>>>> > >>>>>> > >>>>>> > >>>>>> > table2 >>>>>> > table2.id: autonum >>>>>> > expected_date: datetime >>>>>> > actual_date: datetime >>>>>> > claim_date: datetime >>>>>> > value: datetime >>>>>> >>>>>> There are several questions about the data structure that need to be >>>>>> asked here, will one table2 entry only be used once, or could it be >>>>>> referenced by multiple table1 entries ? >>>>>> >>>>>> if the former, then the t2id_* fields are unnessary >>>>>> if the latter, then they should be replaced with a link table. >>>>>> >>>>>> but the list might not be the place to thrash this out, will see you >>>>>> later. >>>>>> >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Hackspace mailing list >>>>>> Hackspace at swansea.hackspace.org.uk >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> >>>>> >>>>> >>>> >>>> -- >>>> This e-mail and any files transmitted with it are confidential and >>>> intended solely for the use of the individual or entity to whom they are >>>> addressed. >>>> >>>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>>> yn unig. >>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> >> >> -- >> This e-mail and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom they are >> addressed. >> >> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >> yn unig. >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 360.gif Type: image/gif Size: 453 bytes Desc: not available URL: From em at preseli.com Wed May 20 21:20:45 2015 From: em at preseli.com (Emyr Morris) Date: Wed, 20 May 2015 21:20:45 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: Again... is the 'review' data stored in the 'candidate' table or in a sub table? If you record the reviews in a sub table 'review-logs' then it would be easier to fetch results or the lack of results On 20 May 2015 at 21:19, Emyr Morris wrote: > is this the perfect time to run a CRON job to calculate who is due a > review... producing a new table... and then query the results of the cron > job? > > I'm thinking run the Cron every 24 hours and then any day that a manager > wants a report it can be fetched easily > > That would simplify the SQL a lot > > On 20 May 2015 at 20:35, Graham Owens > wrote: > >> Yeah deffo, >> >> Im so glad we had that chat on Monday, there were some bits that I knew, >> but some awesome additional info - you will also be please to not that I >> have been through and fixed ALL the date usages in my code so that >> everything is handled on the database end. :) >> >> If you want a challenge, this is my next problem >> http://stackoverflow.com/questions/30358486/mysql-query-using-id-in-subquery-or-join >> >> Same as before, I have something that works, using PHP in the middle to >> pass in variables to the sub-queries but its very inefficient and makes the >> PHP almost unreadable. >> >> Thanks, >> >> G >> >> >> >> On 20 May 2015 at 20:28, Emyr Morris wrote: >> >>> it is amazing how a bit of tidying up makes such a difference! Chuffed >>> for you. >>> >>> Smashes that old saying "A problem shared is a problem halved"! >>> >>> Emyr >>> >>> >>> >>> On 20 May 2015 at 17:03, Graham Owens >>> wrote: >>> >>>> Better?? >>>> >>>> Column Type Null Default Comments xxxx_id int(11) No >>>> xxxx_modified timestamp No CURRENT_TIMESTAMP xxxx_created >>>> timestamp No 0000-00-00 00:00:00 xxxx_title varchar(16) No >>>> xxxx_first varchar(50) No xxxx_last varchar(50) No >>>> xxxx_dob date No xxxx_active int(4) No 0 xxxx_start_date >>>> date No xxxx_exp_end_date date No xxxx_start_payment_value >>>> decimal(10,2) No xxxx_start_payment_claim_date date Yes *NULL* >>>> xxxx_outcome_payment_value decimal(10,2) No >>>> xxxx_outcome_payment_claim_date date Yes *NULL* >>>> >>>> Column Type Null Default Comments ms_id int(11) No xxxx_id >>>> int(11) No ms_weight tinyint(4) No ms_exp_date date No >>>> ms_act_date date Yes *NULL* ms_claim_date date Yes *NULL* >>>> ms_value decimal(6,2) No >>>> >>>> >>>> SELECT EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) >>>> AS period, COUNT(*) as ms_count, IFNULL(SUM(`milestone_value`),0) as >>>> ms_value, >>>> ( >>>> SELECT COUNT(*) >>>> FROM `xxxx` >>>> WHERE EXTRACT(YEAR_MONTH FROM >>>> `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH FROM >>>> `calendar_month`.`calendar_month_date`) AND >>>> `xxxx_outcome_payment_claim_date` IS NULL >>>> ) as fin_count, >>>> IFNULL(( >>>> SELECT SUM(`xxxx_outcome_payment_value`) >>>> FROM `xxxx` >>>> WHERE EXTRACT(YEAR_MONTH FROM >>>> `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH FROM >>>> `calendar_month`.`calendar_month_date`) AND >>>> `xxxx_outcome_payment_claim_date` IS NULL >>>> ),0) as fin_value >>>> FROM `ms` >>>> RIGHT JOIN `calendar_month` >>>> ON EXTRACT(YEAR_MONTH FROM `ms`.`ms_exp_date`)=EXTRACT(YEAR_MONTH FROM >>>> `calendar_month`.`calendar_month_date`) >>>> WHERE `calendar_month`.`calendar_month_date` BETWEEN DATE_FORMAT(NOW() >>>> ,'%Y-%m-01') AND DATE_ADD(DATE_FORMAT(NOW() ,'%Y-%m-01'),INTERVAL 12 MONTH) >>>> AND `ms`.`ms_claim_date` IS NULL >>>> GROUP BY EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) >>>> LIMIT 12 >>>> >>>> Managed to get it down from *35.6576* seconds to *0.0139* seconds [?] >>>> >>>> Thanks everyone. Can this be made any more efficient, table row counts >>>> for 'ms' just now are 10's of thousands, but will be into the several >>>> hundred thousand (possibly millions within a year) >>>> >>>> >>>> >>>> On 18 May 2015 at 16:00, Emyr Morris wrote: >>>> >>>>> I can show you some real world examples later of working tables full >>>>> of data. I find it much easier to explain that way >>>>> >>>>> >>>>> On Monday, May 18, 2015, Graham Owens >>>>> wrote: >>>>> >>>>>> Justin, I think you might be right - we can thrash it out a bit more >>>>>> later >>>>>> >>>>>> Thanks for all the input, once we have a chat later - and formalize >>>>>> the problem better (there are normalization rules????? - just kidding - i >>>>>> was between a rock and a hard place, this works - just needs improved) >>>>>> >>>>>> If it still is giving me problems, we can pick up the conversation >>>>>> then. >>>>>> >>>>>> Thanks >>>>>> >>>>>> G >>>>>> >>>>>> On 18 May 2015 at 15:06, Justin Mitchell >>>>>> wrote: >>>>>> >>>>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>>>> >>>>>>> >>>>>>> > table1 >>>>>>> > table1.id: autonum >>>>>>> > active: bool >>>>>>> > t2id_1: int >>>>>>> > t2id_2: int >>>>>>> > t2id_3: int >>>>>>> > t2id_4: int >>>>>>> > t2id_5: int >>>>>>> > t2id_6: int >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > table2 >>>>>>> > table2.id: autonum >>>>>>> > expected_date: datetime >>>>>>> > actual_date: datetime >>>>>>> > claim_date: datetime >>>>>>> > value: datetime >>>>>>> >>>>>>> There are several questions about the data structure that need to be >>>>>>> asked here, will one table2 entry only be used once, or could it be >>>>>>> referenced by multiple table1 entries ? >>>>>>> >>>>>>> if the former, then the t2id_* fields are unnessary >>>>>>> if the latter, then they should be replaced with a link table. >>>>>>> >>>>>>> but the list might not be the place to thrash this out, will see you >>>>>>> later. >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Hackspace mailing list >>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> This e-mail and any files transmitted with it are confidential and >>>>> intended solely for the use of the individual or entity to whom they are >>>>> addressed. >>>>> >>>>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>>>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>>>> yn unig. >>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>>> >>>> On 18 May 2015 at 16:00, Emyr Morris wrote: >>>> >>>>> I can show you some real world examples later of working tables full >>>>> of data. I find it much easier to explain that way >>>>> >>>>> >>>>> On Monday, May 18, 2015, Graham Owens >>>>> wrote: >>>>> >>>>>> Justin, I think you might be right - we can thrash it out a bit more >>>>>> later >>>>>> >>>>>> Thanks for all the input, once we have a chat later - and formalize >>>>>> the problem better (there are normalization rules????? - just kidding - i >>>>>> was between a rock and a hard place, this works - just needs improved) >>>>>> >>>>>> If it still is giving me problems, we can pick up the conversation >>>>>> then. >>>>>> >>>>>> Thanks >>>>>> >>>>>> G >>>>>> >>>>>> On 18 May 2015 at 15:06, Justin Mitchell >>>>>> wrote: >>>>>> >>>>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>>>> >>>>>>> >>>>>>> > table1 >>>>>>> > table1.id: autonum >>>>>>> > active: bool >>>>>>> > t2id_1: int >>>>>>> > t2id_2: int >>>>>>> > t2id_3: int >>>>>>> > t2id_4: int >>>>>>> > t2id_5: int >>>>>>> > t2id_6: int >>>>>>> > >>>>>>> > >>>>>>> > >>>>>>> > table2 >>>>>>> > table2.id: autonum >>>>>>> > expected_date: datetime >>>>>>> > actual_date: datetime >>>>>>> > claim_date: datetime >>>>>>> > value: datetime >>>>>>> >>>>>>> There are several questions about the data structure that need to be >>>>>>> asked here, will one table2 entry only be used once, or could it be >>>>>>> referenced by multiple table1 entries ? >>>>>>> >>>>>>> if the former, then the t2id_* fields are unnessary >>>>>>> if the latter, then they should be replaced with a link table. >>>>>>> >>>>>>> but the list might not be the place to thrash this out, will see you >>>>>>> later. >>>>>>> >>>>>>> >>>>>>> >>>>>>> _______________________________________________ >>>>>>> Hackspace mailing list >>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>> >>>>>> >>>>>> >>>>> >>>>> -- >>>>> This e-mail and any files transmitted with it are confidential and >>>>> intended solely for the use of the individual or entity to whom they are >>>>> addressed. >>>>> >>>>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>>>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>>>> yn unig. >>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>>> >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>>> >>> >>> >>> -- >>> This e-mail and any files transmitted with it are confidential and >>> intended solely for the use of the individual or entity to whom they are >>> addressed. >>> >>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>> yn unig. >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> > > > -- > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. > > Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol > ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 360.gif Type: image/gif Size: 453 bytes Desc: not available URL: From grahamowensuk at googlemail.com Wed May 20 21:58:06 2015 From: grahamowensuk at googlemail.com (Graham Owens) Date: Wed, 20 May 2015 21:58:06 +0100 Subject: [Swansea Hackspace] SQL Help In-Reply-To: References: <1431957969.24312.14.camel@justin.llw.rokcorp.com> Message-ID: I added a sql fiddle to the post including tables and sample data :) On 20 May 2015 21:21, "Emyr Morris" wrote: > Again... is the 'review' data stored in the 'candidate' table or in a sub > table? > > If you record the reviews in a sub table 'review-logs' then it would be > easier to fetch results or the lack of results > > On 20 May 2015 at 21:19, Emyr Morris wrote: > >> is this the perfect time to run a CRON job to calculate who is due a >> review... producing a new table... and then query the results of the cron >> job? >> >> I'm thinking run the Cron every 24 hours and then any day that a manager >> wants a report it can be fetched easily >> >> That would simplify the SQL a lot >> >> On 20 May 2015 at 20:35, Graham Owens >> wrote: >> >>> Yeah deffo, >>> >>> Im so glad we had that chat on Monday, there were some bits that I knew, >>> but some awesome additional info - you will also be please to not that I >>> have been through and fixed ALL the date usages in my code so that >>> everything is handled on the database end. :) >>> >>> If you want a challenge, this is my next problem >>> http://stackoverflow.com/questions/30358486/mysql-query-using-id-in-subquery-or-join >>> >>> Same as before, I have something that works, using PHP in the middle to >>> pass in variables to the sub-queries but its very inefficient and makes the >>> PHP almost unreadable. >>> >>> Thanks, >>> >>> G >>> >>> >>> >>> On 20 May 2015 at 20:28, Emyr Morris wrote: >>> >>>> it is amazing how a bit of tidying up makes such a difference! Chuffed >>>> for you. >>>> >>>> Smashes that old saying "A problem shared is a problem halved"! >>>> >>>> Emyr >>>> >>>> >>>> >>>> On 20 May 2015 at 17:03, Graham Owens >>>> wrote: >>>> >>>>> Better?? >>>>> >>>>> Column Type Null Default Comments xxxx_id int(11) No >>>>> xxxx_modified timestamp No CURRENT_TIMESTAMP xxxx_created >>>>> timestamp No 0000-00-00 00:00:00 xxxx_title varchar(16) No >>>>> xxxx_first varchar(50) No xxxx_last varchar(50) No >>>>> xxxx_dob date No xxxx_active int(4) No 0 xxxx_start_date >>>>> date No xxxx_exp_end_date date No >>>>> xxxx_start_payment_value decimal(10,2) No >>>>> xxxx_start_payment_claim_date date Yes *NULL* >>>>> xxxx_outcome_payment_value decimal(10,2) No >>>>> xxxx_outcome_payment_claim_date date Yes *NULL* >>>>> >>>>> Column Type Null Default Comments ms_id int(11) No xxxx_id >>>>> int(11) No ms_weight tinyint(4) No ms_exp_date date No >>>>> ms_act_date date Yes *NULL* ms_claim_date date Yes *NULL* >>>>> ms_value decimal(6,2) No >>>>> >>>>> >>>>> SELECT EXTRACT(YEAR_MONTH FROM `calendar_month`.`calendar_month_date`) >>>>> AS period, COUNT(*) as ms_count, IFNULL(SUM(`milestone_value`),0) as >>>>> ms_value, >>>>> ( >>>>> SELECT COUNT(*) >>>>> FROM `xxxx` >>>>> WHERE EXTRACT(YEAR_MONTH FROM >>>>> `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH FROM >>>>> `calendar_month`.`calendar_month_date`) AND >>>>> `xxxx_outcome_payment_claim_date` IS NULL >>>>> ) as fin_count, >>>>> IFNULL(( >>>>> SELECT SUM(`xxxx_outcome_payment_value`) >>>>> FROM `xxxx` >>>>> WHERE EXTRACT(YEAR_MONTH FROM >>>>> `xxxx_exp_end_date`)=EXTRACT(YEAR_MONTH FROM >>>>> `calendar_month`.`calendar_month_date`) AND >>>>> `xxxx_outcome_payment_claim_date` IS NULL >>>>> ),0) as fin_value >>>>> FROM `ms` >>>>> RIGHT JOIN `calendar_month` >>>>> ON EXTRACT(YEAR_MONTH FROM `ms`.`ms_exp_date`)=EXTRACT(YEAR_MONTH FROM >>>>> `calendar_month`.`calendar_month_date`) >>>>> WHERE `calendar_month`.`calendar_month_date` BETWEEN DATE_FORMAT(NOW() >>>>> ,'%Y-%m-01') AND DATE_ADD(DATE_FORMAT(NOW() ,'%Y-%m-01'),INTERVAL 12 MONTH) >>>>> AND `ms`.`ms_claim_date` IS NULL >>>>> GROUP BY EXTRACT(YEAR_MONTH FROM >>>>> `calendar_month`.`calendar_month_date`) >>>>> LIMIT 12 >>>>> >>>>> Managed to get it down from *35.6576* seconds to *0.0139* seconds [?] >>>>> >>>>> Thanks everyone. Can this be made any more efficient, table row >>>>> counts for 'ms' just now are 10's of thousands, but will be into the >>>>> several hundred thousand (possibly millions within a year) >>>>> >>>>> >>>>> >>>>> On 18 May 2015 at 16:00, Emyr Morris wrote: >>>>> >>>>>> I can show you some real world examples later of working tables full >>>>>> of data. I find it much easier to explain that way >>>>>> >>>>>> >>>>>> On Monday, May 18, 2015, Graham Owens >>>>>> wrote: >>>>>> >>>>>>> Justin, I think you might be right - we can thrash it out a bit more >>>>>>> later >>>>>>> >>>>>>> Thanks for all the input, once we have a chat later - and formalize >>>>>>> the problem better (there are normalization rules????? - just kidding - i >>>>>>> was between a rock and a hard place, this works - just needs improved) >>>>>>> >>>>>>> If it still is giving me problems, we can pick up the conversation >>>>>>> then. >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> G >>>>>>> >>>>>>> On 18 May 2015 at 15:06, Justin Mitchell >>>>>>> wrote: >>>>>>> >>>>>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>>>>> >>>>>>>> >>>>>>>> > table1 >>>>>>>> > table1.id: autonum >>>>>>>> > active: bool >>>>>>>> > t2id_1: int >>>>>>>> > t2id_2: int >>>>>>>> > t2id_3: int >>>>>>>> > t2id_4: int >>>>>>>> > t2id_5: int >>>>>>>> > t2id_6: int >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > table2 >>>>>>>> > table2.id: autonum >>>>>>>> > expected_date: datetime >>>>>>>> > actual_date: datetime >>>>>>>> > claim_date: datetime >>>>>>>> > value: datetime >>>>>>>> >>>>>>>> There are several questions about the data structure that need to be >>>>>>>> asked here, will one table2 entry only be used once, or could it be >>>>>>>> referenced by multiple table1 entries ? >>>>>>>> >>>>>>>> if the former, then the t2id_* fields are unnessary >>>>>>>> if the latter, then they should be replaced with a link table. >>>>>>>> >>>>>>>> but the list might not be the place to thrash this out, will see you >>>>>>>> later. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Hackspace mailing list >>>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> -- >>>>>> This e-mail and any files transmitted with it are confidential and >>>>>> intended solely for the use of the individual or entity to whom they are >>>>>> addressed. >>>>>> >>>>>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>>>>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>>>>> yn unig. >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Hackspace mailing list >>>>>> Hackspace at swansea.hackspace.org.uk >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> >>>>>> >>>>> On 18 May 2015 at 16:00, Emyr Morris wrote: >>>>> >>>>>> I can show you some real world examples later of working tables full >>>>>> of data. I find it much easier to explain that way >>>>>> >>>>>> >>>>>> On Monday, May 18, 2015, Graham Owens >>>>>> wrote: >>>>>> >>>>>>> Justin, I think you might be right - we can thrash it out a bit more >>>>>>> later >>>>>>> >>>>>>> Thanks for all the input, once we have a chat later - and formalize >>>>>>> the problem better (there are normalization rules????? - just kidding - i >>>>>>> was between a rock and a hard place, this works - just needs improved) >>>>>>> >>>>>>> If it still is giving me problems, we can pick up the conversation >>>>>>> then. >>>>>>> >>>>>>> Thanks >>>>>>> >>>>>>> G >>>>>>> >>>>>>> On 18 May 2015 at 15:06, Justin Mitchell >>>>>>> wrote: >>>>>>> >>>>>>>> On Mon, 2015-05-18 at 14:24 +0100, Graham Owens wrote: >>>>>>>> >>>>>>>> >>>>>>>> > table1 >>>>>>>> > table1.id: autonum >>>>>>>> > active: bool >>>>>>>> > t2id_1: int >>>>>>>> > t2id_2: int >>>>>>>> > t2id_3: int >>>>>>>> > t2id_4: int >>>>>>>> > t2id_5: int >>>>>>>> > t2id_6: int >>>>>>>> > >>>>>>>> > >>>>>>>> > >>>>>>>> > table2 >>>>>>>> > table2.id: autonum >>>>>>>> > expected_date: datetime >>>>>>>> > actual_date: datetime >>>>>>>> > claim_date: datetime >>>>>>>> > value: datetime >>>>>>>> >>>>>>>> There are several questions about the data structure that need to be >>>>>>>> asked here, will one table2 entry only be used once, or could it be >>>>>>>> referenced by multiple table1 entries ? >>>>>>>> >>>>>>>> if the former, then the t2id_* fields are unnessary >>>>>>>> if the latter, then they should be replaced with a link table. >>>>>>>> >>>>>>>> but the list might not be the place to thrash this out, will see you >>>>>>>> later. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> _______________________________________________ >>>>>>>> Hackspace mailing list >>>>>>>> Hackspace at swansea.hackspace.org.uk >>>>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>>>> >>>>>>> >>>>>>> >>>>>> >>>>>> -- >>>>>> This e-mail and any files transmitted with it are confidential and >>>>>> intended solely for the use of the individual or entity to whom they are >>>>>> addressed. >>>>>> >>>>>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>>>>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>>>>> yn unig. >>>>>> >>>>>> >>>>>> _______________________________________________ >>>>>> Hackspace mailing list >>>>>> Hackspace at swansea.hackspace.org.uk >>>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>>> >>>>>> >>>>> >>>>> _______________________________________________ >>>>> Hackspace mailing list >>>>> Hackspace at swansea.hackspace.org.uk >>>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>>> >>>>> >>>> >>>> >>>> -- >>>> This e-mail and any files transmitted with it are confidential and >>>> intended solely for the use of the individual or entity to whom they are >>>> addressed. >>>> >>>> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >>>> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >>>> yn unig. >>>> >>>> _______________________________________________ >>>> Hackspace mailing list >>>> Hackspace at swansea.hackspace.org.uk >>>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>>> >>>> >>> >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >>> >>> >> >> >> -- >> This e-mail and any files transmitted with it are confidential and >> intended solely for the use of the individual or entity to whom they are >> addressed. >> >> Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn >> gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt >> yn unig. >> > > > > -- > This e-mail and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they are > addressed. > > Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol > ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 360.gif Type: image/gif Size: 453 bytes Desc: not available URL: From timmoore47 at gmail.com Wed May 20 21:58:18 2015 From: timmoore47 at gmail.com (Tim Moore) Date: Wed, 20 May 2015 21:58:18 +0100 Subject: [Swansea Hackspace] Serial usb ports - Help Message-ID: I've got a aged Thinkpad with 4 USB 2 ports, Its running Ubuntu 14.04 32 bit. I'm trying to talk to a MicroMite using picocom. But it doesn't find ttyusb0 Looking in /dev/ there are loads of tty's but not ttyusb0 Is it hiden in a sub-directoy ? Any thoughts anyone as to how to use this laptop to access the MicroMite ? ( I suspect I used a RPi to access it last time, just before Christmas) a puzzled, Tim_1 -------------- next part -------------- An HTML attachment was scrubbed... URL: From alan at lxorguk.ukuu.org.uk Wed May 20 22:52:20 2015 From: alan at lxorguk.ukuu.org.uk (Alan Cox) Date: Wed, 20 May 2015 22:52:20 +0100 Subject: [Swansea Hackspace] Serial usb ports - Help In-Reply-To: References: Message-ID: <20150520225220.0887a60d@www.etchedpixels.co.uk> On Wed, 20 May 2015 21:58:18 +0100 Tim Moore wrote: > I've got a aged Thinkpad with 4 USB 2 ports, > > Its running Ubuntu 14.04 32 bit. > > I'm trying to talk to a MicroMite using picocom. > > But it doesn't find ttyusb0 > > Looking in /dev/ there are loads of tty's but not ttyusb0 What tty you get may depend upon the device your USB-serial dongle is using. Generic ACM interfaces will be /dev/ttyACM* while the various USB dongles will be /dev/ttyUSB* (note caps) If the dongle USB identifier isn't known then you've got another problem 8) Also check lsusb - make sure the device is visible! Alan From ceri.clatworthy at gmail.com Thu May 21 06:14:30 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Thu, 21 May 2015 06:14:30 +0100 Subject: [Swansea Hackspace] Serial usb ports - Help In-Reply-To: <20150520225220.0887a60d@www.etchedpixels.co.uk> References: <20150520225220.0887a60d@www.etchedpixels.co.uk> Message-ID: You need a USB to Serial device. Like the FTDI cable Just a usb port is not a serial port Ceri On 20 May 2015 22:52, "Alan Cox" wrote: > On Wed, 20 May 2015 21:58:18 +0100 > Tim Moore wrote: > > > I've got a aged Thinkpad with 4 USB 2 ports, > > > > Its running Ubuntu 14.04 32 bit. > > > > I'm trying to talk to a MicroMite using picocom. > > > > But it doesn't find ttyusb0 > > > > Looking in /dev/ there are loads of tty's but not ttyusb0 > > What tty you get may depend upon the device your USB-serial dongle is > using. Generic ACM interfaces will be /dev/ttyACM* while the various USB > dongles will be /dev/ttyUSB* (note caps) > > If the dongle USB identifier isn't known then you've got another problem > 8) > > Also check lsusb - make sure the device is visible! > > Alan > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From rankin.dc at gmail.com Thu May 21 09:31:52 2015 From: rankin.dc at gmail.com (David Rankin) Date: Thu, 21 May 2015 09:31:52 +0100 Subject: [Swansea Hackspace] Help with Tempreture sensor (100Kelvin to 350Kelvin) Message-ID: Hi All, I am just messing around with my Audino and the temperature sensor. I am wondering if it is this is even possible but I am trying to measure low temperature sub -100Celsuis So being very niave I tried it out in dry ice but when the sensor got only got close to its limit, I took it out (-35). I also looked around for better sensors and found these: http://www.scientificinstruments.com/product-detail/model-si-440-silicon-diode-temperature-sensors/ http://www.scientificinstruments.com/product-detail/model-si-430-silicon-diode-temperature-sensors/ So what I was wondering. Is it even possible to put a aurdiono in a cold cold fridge and meassure low temprtures with a better sensor? If not why not? Any advice or guidance would be really helpful? From t.davies at swansea.ac.uk Thu May 21 10:03:32 2015 From: t.davies at swansea.ac.uk (Davies T.) Date: Thu, 21 May 2015 09:03:32 +0000 Subject: [Swansea Hackspace] Help with Tempreture sensor (100Kelvin to 350Kelvin) In-Reply-To: References: Message-ID: <6FB643A267727643884C49BA9D61C9D66729DB96@ISS-MBX04.tawe.swan.ac.uk> Dear David, Are we measuring temperature on the Celsius or Rankine scale? Well, that's got that over with. Most commercial semiconductor devices are only specified from 0 to 50 Celsius. If you pay a bit more you can get extended temp ranges e.g. -20 to +70, but beyond that you are looking at very exotic (and expensive) parts. If you can place the sensor in the fridge and keep the micro outside, you stand a chance. Solid-state sensors e.g. Dallas are out, we are looking at thermocouples and platinum 100 sensors - with their associated amps outside the fridge, of course! regards Timothy Davies ________________________________________ From: hackspace-bounces at swansea.hackspace.org.uk [hackspace-bounces at swansea.hackspace.org.uk] on behalf of David Rankin [rankin.dc at gmail.com] Sent: 21 May 2015 09:31 To: hackspace at swansea.hackspace.org.uk Subject: [Swansea Hackspace] Help with Tempreture sensor (100Kelvin to 350Kelvin) ve Hi All, I am just messing around with my Audino and the temperature sensor. I am wondering if it is this is even possible but I am trying to measure low temperature sub -100Celsuis So being very niave I tried it out in dry ice but when the sensor got only got close to its limit, I took it out (-35). I also looked around for better sensors and found these: http://www.scientificinstruments.com/product-detail/model-si-440-silicon-diode-temperature-sensors/ http://www.scientificinstruments.com/product-detail/model-si-430-silicon-diode-temperature-sensors/ So what I was wondering. Is it even possible to put a aurdiono in a cold cold fridge and meassure low temprtures with a better sensor? If not why not? Any advice or guidance would be really helpful? _______________________________________________ Hackspace mailing list Hackspace at swansea.hackspace.org.uk http://swansea.hackspace.org.uk/mailman/listinfo/hackspace From ceri.clatworthy at gmail.com Thu May 21 10:05:07 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Thu, 21 May 2015 10:05:07 +0100 Subject: [Swansea Hackspace] Help with Tempreture sensor (100Kelvin to 350Kelvin) In-Reply-To: References: Message-ID: I would recommend a thermocouple, cheep K type 0 - 1024 Cent. but according to Wikipedia (http://en.wikipedia.org/wiki/Thermocouple) 'T' Type can go down to -185 C. Normally I would use MAX6675, or MAX31855 which is a bit expensive but the latter claims to go down to -270 C But I cannot test that :) also both chips have a digital interface, - no messy analogue. nice clean number :) I have one set up on some kit here if you got some dry ice (Ha,Ha,) Cheers Ceri On Thu, May 21, 2015 at 9:31 AM, David Rankin wrote: > Hi All, > > I am just messing around with my Audino and the temperature sensor. I > am wondering if it is this is even possible but I am trying to measure > low temperature sub -100Celsuis > > So being very niave I tried it out in dry ice but when the sensor got > only got close to its limit, I took it out (-35). > > I also looked around for better sensors and found these: > > http://www.scientificinstruments.com/product-detail/model-si-440-silicon-diode-temperature-sensors/ > > http://www.scientificinstruments.com/product-detail/model-si-430-silicon-diode-temperature-sensors/ > > So what I was wondering. Is it even possible to put a aurdiono in a > cold cold fridge and meassure low temprtures with a better sensor? If > not why not? > > Any advice or guidance would be really helpful? > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: MAX31855.pdf Type: application/pdf Size: 1015656 bytes Desc: not available URL: From ceri.clatworthy at gmail.com Thu May 21 10:32:30 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Thu, 21 May 2015 10:32:30 +0100 Subject: [Swansea Hackspace] Help with Tempreture sensor (100Kelvin to 350Kelvin) In-Reply-To: <6FB643A267727643884C49BA9D61C9D66729DB96@ISS-MBX04.tawe.swan.ac.uk> References: <6FB643A267727643884C49BA9D61C9D66729DB96@ISS-MBX04.tawe.swan.ac.uk> Message-ID: The butie of the MAX 31855 is there is only Thermocouple, (connector) MAX31855, micro !! No amps etc. On Thu, May 21, 2015 at 10:03 AM, Davies T. wrote: > Dear David, > > Are we measuring temperature on the Celsius or Rankine scale? > Well, that's got that over with. > > Most commercial semiconductor devices are only specified from > 0 to 50 Celsius. If you pay a bit more you can get extended temp > ranges e.g. -20 to +70, but beyond that you are looking at very > exotic (and expensive) parts. If you can place the sensor in the > fridge and keep the micro outside, you stand a chance. > > Solid-state sensors e.g. Dallas are out, we are looking at > thermocouples and platinum 100 sensors - with their > associated amps outside the fridge, of course! > > regards > > Timothy Davies > > ________________________________________ > From: hackspace-bounces at swansea.hackspace.org.uk [ > hackspace-bounces at swansea.hackspace.org.uk] on behalf of David Rankin [ > rankin.dc at gmail.com] > Sent: 21 May 2015 09:31 > To: hackspace at swansea.hackspace.org.uk > Subject: [Swansea Hackspace] Help with Tempreture sensor (100Kelvin to > 350Kelvin) > ve > Hi All, > > I am just messing around with my Audino and the temperature sensor. I > am wondering if it is this is even possible but I am trying to measure > low temperature sub -100Celsuis > > So being very niave I tried it out in dry ice but when the sensor got > only got close to its limit, I took it out (-35). > > I also looked around for better sensors and found these: > > http://www.scientificinstruments.com/product-detail/model-si-440-silicon-diode-temperature-sensors/ > > http://www.scientificinstruments.com/product-detail/model-si-430-silicon-diode-temperature-sensors/ > > So what I was wondering. Is it even possible to put a aurdiono in a > cold cold fridge and meassure low temprtures with a better sensor? If > not why not? > > Any advice or guidance would be really helpful? > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From ceri.clatworthy at gmail.com Fri May 22 15:24:19 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Fri, 22 May 2015 15:24:19 +0100 Subject: [Swansea Hackspace] Laser safety Message-ID: Found these. .. 0.2" pitch screw terminal. . And some PCB s For interlock chain. ... -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: 20150522_152156.jpg Type: image/jpeg Size: 1090721 bytes Desc: not available URL: From em at preseli.com Sat May 23 18:32:43 2015 From: em at preseli.com (Emyr Morris) Date: Sat, 23 May 2015 18:32:43 +0100 Subject: [Swansea Hackspace] article on hackaday - Video Truptych Message-ID: http://hackaday.com/2015/05/19/raspberry-pis-and-a-video-triptych/ nice! -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: From djdavies83 at hotmail.com Sat May 23 21:04:43 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Sat, 23 May 2015 21:04:43 +0100 Subject: [Swansea Hackspace] Battery dying, help. Message-ID: Hey guys, out on wind street for the first time in ages... Down to 15% battery, is there a micro usb cable in the hacks pace so I can leave it on charge there for a bit? No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. -------------- next part -------------- An HTML attachment was scrubbed... URL: From eclipse at sucs.org Sat May 23 21:10:54 2015 From: eclipse at sucs.org (Tim) Date: Sat, 23 May 2015 21:10:54 +0100 Subject: [Swansea Hackspace] Battery dying, help. In-Reply-To: References: Message-ID: <5560DECE.2050608@sucs.org> Sorry, I don?t think we have microusb Tim On 23/05/15 21:04, David Davies-Day wrote: > Hey guys, out on wind street for the first time in ages... > > Down to 15% battery, is there a micro usb cable in the hacks pace so I > can leave it on charge there for a bit? > > > No animals were harmed in the making of this email. However, several > thousand electrons were severely inconvenienced. > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace -------------- next part -------------- An HTML attachment was scrubbed... URL: From djdavies83 at hotmail.com Sat May 23 21:34:17 2015 From: djdavies83 at hotmail.com (David Davies-Day) Date: Sat, 23 May 2015 20:34:17 +0000 Subject: [Swansea Hackspace] Battery dying, help. In-Reply-To: <5560DECE.2050608@sucs.org> References: , <5560DECE.2050608@sucs.org> Message-ID: Bummer, thanks Tim, might have a squint on my way passed. Date: Sat, 23 May 2015 21:10:54 +0100 From: eclipse at sucs.org To: hackspace at swansea.hackspace.org.uk Subject: Re: [Swansea Hackspace] Battery dying, help. Sorry, I don?t think we have microusb Tim On 23/05/15 21:04, David Davies-Day wrote: Hey guys, out on wind street for the first time in ages... Down to 15% battery, is there a micro usb cable in the hacks pace so I can leave it on charge there for a bit? No animals were harmed in the making of this email. However, several thousand electrons were severely inconvenienced. _______________________________________________ Hackspace mailing list Hackspace at swansea.hackspace.org.uk http://swansea.hackspace.org.uk/mailman/listinfo/hackspace _______________________________________________ Hackspace mailing list Hackspace at swansea.hackspace.org.uk http://swansea.hackspace.org.uk/mailman/listinfo/hackspace -------------- next part -------------- An HTML attachment was scrubbed... URL: From em at preseli.com Sun May 24 16:52:32 2015 From: em at preseli.com (Emyr Morris) Date: Sun, 24 May 2015 16:52:32 +0100 Subject: [Swansea Hackspace] scary Message-ID: http://hackaday.com/2015/05/23/pictures-that-defeat-key-locks/ -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: From ceri.clatworthy at gmail.com Mon May 25 17:53:35 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Mon, 25 May 2015 17:53:35 +0100 Subject: [Swansea Hackspace] RS485 Message-ID: Hi does anyone have a RS485 to USB Or RS485 to RS232 I Can borrow for a day or two. Got a new bit of kit. But can't get my PC to communicate with It. Think it uses pins 2.3. And 5 of 9 Way D. But don't think unit is serial RS232. Cheers Ceri -------------- next part -------------- An HTML attachment was scrubbed... URL: From eclipse at sucs.org Mon May 25 21:15:33 2015 From: eclipse at sucs.org (Tim) Date: Mon, 25 May 2015 21:15:33 +0100 Subject: [Swansea Hackspace] RS485 In-Reply-To: References: Message-ID: <556382E5.8060901@sucs.org> I have some of these http://uk.farnell.com/webapp/wcs/stores/servlet/ProductDisplay?catalogId=15001&langId=44&urlRequestType=Base&partNumber=1470451&storeId=10151 somwhere if they are any use, no usb though. Tim On 25/05/15 17:53, Ceri Clatworthy wrote: > > Hi does anyone have a RS485 to USB > Or RS485 to RS232 > > I Can borrow for a day or two. > Got a new bit of kit. > But can't get my PC to communicate with > It. > > Think it uses pins 2.3. And 5 of 9 Way D. > > But don't think unit is serial RS232. > > Cheers > Ceri > > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at discordia.org.uk Mon May 25 21:26:49 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Mon, 25 May 2015 21:26:49 +0100 Subject: [Swansea Hackspace] RS485 In-Reply-To: References: Message-ID: <1432585609.31417.0.camel@emerald.geode.org.uk> On Mon, 2015-05-25 at 17:53 +0100, Ceri Clatworthy wrote: > Hi does anyone have a RS485 to USB > Or RS485 to RS232 > > I Can borrow for a day or two. > Got a new bit of kit. > But can't get my PC to communicate with > It. Think i have some MAX485 chips somewhere, but thats about it. From ceri.clatworthy at gmail.com Tue May 26 07:36:42 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Tue, 26 May 2015 07:36:42 +0100 Subject: [Swansea Hackspace] RS485 In-Reply-To: <1432585609.31417.0.camel@emerald.geode.org.uk> References: <1432585609.31417.0.camel@emerald.geode.org.uk> Message-ID: Thanks guys. . Would appreciate that. I will make an adapter in anticipation. . Cheers Ceri On 25 May 2015 21:27, "Justin Mitchell" wrote: > On Mon, 2015-05-25 at 17:53 +0100, Ceri Clatworthy wrote: > > Hi does anyone have a RS485 to USB > > Or RS485 to RS232 > > > > I Can borrow for a day or two. > > Got a new bit of kit. > > But can't get my PC to communicate with > > It. > > Think i have some MAX485 chips somewhere, but thats about it. > > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From gerrit.niezen at gmail.com Tue May 26 12:20:44 2015 From: gerrit.niezen at gmail.com (Gerrit Niezen) Date: Tue, 26 May 2015 12:20:44 +0100 Subject: [Swansea Hackspace] Meridian tower soldering kit Message-ID: Hi there! :) Inspired by the Blinky Buildings Kit ( http://www.lunchboxelectronics.com/product/blinkybuildings) from the book "Building Open Source Hardware", I wanted to make a soldering kit that features Swansea's Meridian Tower instead of the boring old Empire State building. What does it do? You can program the little microcontroller to have the 20 LEDs blink different sequences (using charlieplexing). I'm attaching a draft(!) image of what the board will look like. (For example, I still want to do manual routing instead of auto-routing, and move the components around to include a coin-cell battery holder). If you'd be interested in getting a board like this, let me know! Cheers, Gerrit PS - The tower silkscreen was re-mixed from a design by Jade Lundie who works in TechHub - you can see her her original design on Dribble: https://dribbble.com/shots/2021302-Sky-Tower ? -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2015-05-26 12:02:11.png Type: image/png Size: 197700 bytes Desc: not available URL: From em at preseli.com Tue May 26 12:28:08 2015 From: em at preseli.com (Emyr Morris) Date: Tue, 26 May 2015 12:28:08 +0100 Subject: [Swansea Hackspace] Meridian tower soldering kit In-Reply-To: References: Message-ID: that is lovely - put me down for two please (in case I break one) ta Em On 26 May 2015 at 12:20, Gerrit Niezen wrote: > Hi there! :) > > Inspired by the Blinky Buildings Kit ( > http://www.lunchboxelectronics.com/product/blinkybuildings) from the book > "Building Open Source Hardware", I wanted to make a soldering kit that > features Swansea's Meridian Tower instead of the boring old Empire State > building. > > What does it do? You can program the little microcontroller to have the 20 > LEDs blink different sequences (using charlieplexing). > > I'm attaching a draft(!) image of what the board will look like. (For > example, I still want to do manual routing instead of auto-routing, and > move the components around to include a coin-cell battery holder). If you'd > be interested in getting a board like this, let me know! > > Cheers, > Gerrit > > > > PS - The tower silkscreen was re-mixed from a design by Jade Lundie who > works in TechHub - you can see her her original design on Dribble: > https://dribbble.com/shots/2021302-Sky-Tower > ? > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -- This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Mae'r e-bost hwn ac unrhyw ffeiliau a drosglwyddir gydag ef yn gyfrinachol ac at ddefnydd yr unigolyn neu'r corff y cyfeiriwyd hwy atynt yn unig. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2015-05-26 12:02:11.png Type: image/png Size: 197700 bytes Desc: not available URL: From jon.j.lilley at gmail.com Tue May 26 12:32:39 2015 From: jon.j.lilley at gmail.com (jon lilley) Date: Tue, 26 May 2015 12:32:39 +0100 Subject: [Swansea Hackspace] Meridian tower soldering kit In-Reply-To: References: Message-ID: Could I suggest a tasteful "A Present From Swansea" on the silkscreen to cater for the tourist trade? :) On 26 May 2015 12:21 pm, "Gerrit Niezen" wrote: > Hi there! :) > > Inspired by the Blinky Buildings Kit ( > http://www.lunchboxelectronics.com/product/blinkybuildings) from the book > "Building Open Source Hardware", I wanted to make a soldering kit that > features Swansea's Meridian Tower instead of the boring old Empire State > building. > > What does it do? You can program the little microcontroller to have the 20 > LEDs blink different sequences (using charlieplexing). > > I'm attaching a draft(!) image of what the board will look like. (For > example, I still want to do manual routing instead of auto-routing, and > move the components around to include a coin-cell battery holder). If you'd > be interested in getting a board like this, let me know! > > Cheers, > Gerrit > > > > PS - The tower silkscreen was re-mixed from a design by Jade Lundie who > works in TechHub - you can see her her original design on Dribble: > https://dribbble.com/shots/2021302-Sky-Tower > ? > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screenshot from 2015-05-26 12:02:11.png Type: image/png Size: 197700 bytes Desc: not available URL: From justin at swansea.hackspace.org.uk Tue May 26 13:10:27 2015 From: justin at swansea.hackspace.org.uk (Justin Mitchell) Date: Tue, 26 May 2015 13:10:27 +0100 Subject: [Swansea Hackspace] Laser Cutter progress Message-ID: <1432642227.6184.16.camel@justin.llw.rokcorp.com> We are making excellent progress with the laser cutter, it has now been fitted with many interlocks and safeguards to prevent accidental exposure to the laser when it is operating, and to obscure all those places where you could previously peek inside. We have one more safeguard to complete, which will ensure that the water cooling is operating before you can fire the laser, which is for it's protection more than ours. Once this is complete and we update the various safety notices we should be able to run some real jobs through it, and give training to the very keenest of members. The software to drive it is still the supplied windows tool, and is therefore not the easiest to work with, but we will be replacing the control electronics and offering a more familiar interface to it in the near future, we just wanted to get the device operational as soon as possible. Can people please login to the website and vote on the courses they would most like to see so that we can prepare notes and materials. Image: Minimum Power setting cutting text into paper -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: laser_paper_small.jpg Type: image/jpeg Size: 111715 bytes Desc: not available URL: From ceri.clatworthy at gmail.com Tue May 26 13:34:45 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Tue, 26 May 2015 13:34:45 +0100 Subject: [Swansea Hackspace] Laser Cutter progress In-Reply-To: <1432642227.6184.16.camel@justin.llw.rokcorp.com> References: <1432642227.6184.16.camel@justin.llw.rokcorp.com> Message-ID: Whoop Whoop Definitely got a few things to cut !! Ceri On Tue, May 26, 2015 at 1:10 PM, Justin Mitchell < justin at swansea.hackspace.org.uk> wrote: > We are making excellent progress with the laser cutter, it has now been > fitted with many interlocks and safeguards to prevent accidental exposure > to the laser when it is operating, and to obscure all those places where > you could previously peek inside. > > We have one more safeguard to complete, which will ensure that the water > cooling is operating before you can fire the laser, which is for it's > protection more than ours. > > Once this is complete and we update the various safety notices we should > be able to run some real jobs through it, and give training to the very > keenest of members. The software to drive it is still the supplied windows > tool, and is therefore not the easiest to work with, but we will be > replacing the control electronics and offering a more familiar interface to > it in the near future, we just wanted to get the device operational as soon > as possible. > > Can people please login to the website and vote on the courses they would > most like to see so that we can prepare notes and materials. > > > Image: Minimum Power setting cutting text into paper > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: laser_paper_small.jpg Type: image/jpeg Size: 111715 bytes Desc: not available URL: From djdavies83 at hotmail.com Sat May 30 15:10:06 2015 From: djdavies83 at hotmail.com (David davies) Date: Sat, 30 May 2015 15:10:06 +0100 Subject: [Swansea Hackspace] NodeMcu Lua WIFI Development Board For ESP8266 Module Sale-Banggood.com Message-ID: http://www.banggood.com/NodeMcu-Lua-WIFI-Development-Board-For-ESP8266-Module-p-976440.html All my ESP8266 boards are currently MIA, so I was looking at ordering another from Banggood. Does this one look like a HUZZAH clone with added usb-serial? Do you think it will work with Arduino IDE mentioned in the Ladyada article? https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide From ceri.clatworthy at gmail.com Sat May 30 16:53:17 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Sat, 30 May 2015 16:53:17 +0100 Subject: [Swansea Hackspace] NodeMcu Lua WIFI Development Board For ESP8266 Module Sale-Banggood.com In-Reply-To: References: Message-ID: I want one Ceri On 30 May 2015 15:10, "David davies" wrote: > > http://www.banggood.com/NodeMcu-Lua-WIFI-Development-Board-For-ESP8266-Module-p-976440.html > > All my ESP8266 boards are currently MIA, so I was looking at ordering > another from Banggood. > > Does this one look like a HUZZAH clone with added usb-serial? Do you think > it will work with Arduino IDE mentioned in the Ladyada article? > > > https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/using-arduino-ide > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: From richard.morgan at avocation.co.uk Sun May 31 11:04:58 2015 From: richard.morgan at avocation.co.uk (Richard Morgan) Date: Sun, 31 May 2015 10:04:58 +0000 Subject: [Swansea Hackspace] Laser Cutter progress In-Reply-To: <1432642227.6184.16.camel@justin.llw.rokcorp.com> References: <1432642227.6184.16.camel@justin.llw.rokcorp.com> Message-ID: Well done all. Can you put a link to the 'voting' page on the site for the courses - might be user error but I can't find it... Thanks, Richard On Tue, 26 May 2015 at 13:10 Justin Mitchell < justin at swansea.hackspace.org.uk> wrote: > We are making excellent progress with the laser cutter, it has now been > fitted with many interlocks and safeguards to prevent accidental exposure > to the laser when it is operating, and to obscure all those places where > you could previously peek inside. > > We have one more safeguard to complete, which will ensure that the water > cooling is operating before you can fire the laser, which is for it's > protection more than ours. > > Once this is complete and we update the various safety notices we should > be able to run some real jobs through it, and give training to the very > keenest of members. The software to drive it is still the supplied windows > tool, and is therefore not the easiest to work with, but we will be > replacing the control electronics and offering a more familiar interface to > it in the near future, we just wanted to get the device operational as soon > as possible. > > Can people please login to the website and vote on the courses they would > most like to see so that we can prepare notes and materials. > > > Image: Minimum Power setting cutting text into paper > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: laser_paper_small.jpg Type: image/jpeg Size: 111715 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: laser_paper_small.jpg Type: image/jpeg Size: 111715 bytes Desc: not available URL: From ceri.clatworthy at gmail.com Sun May 31 15:54:29 2015 From: ceri.clatworthy at gmail.com (Ceri Clatworthy) Date: Sun, 31 May 2015 15:54:29 +0100 Subject: [Swansea Hackspace] Laser Cutter progress In-Reply-To: References: <1432642227.6184.16.camel@justin.llw.rokcorp.com> Message-ID: Did anyone get the aluminium L section For the front and back doors? ? I have been out today. . Bun can't find any.. At a sensible price / size Looks like a trip to B&Q If now one else has.... Ceri On 31 May 2015 11:09, "Richard Morgan" wrote: > Well done all. > > Can you put a link to the 'voting' page on the site for the courses - > might be user error but I can't find it... > > Thanks, > > Richard > > > On Tue, 26 May 2015 at 13:10 Justin Mitchell < > justin at swansea.hackspace.org.uk> wrote: > >> We are making excellent progress with the laser cutter, it has now been >> fitted with many interlocks and safeguards to prevent accidental exposure >> to the laser when it is operating, and to obscure all those places where >> you could previously peek inside. >> >> We have one more safeguard to complete, which will ensure that the water >> cooling is operating before you can fire the laser, which is for it's >> protection more than ours. >> >> Once this is complete and we update the various safety notices we should >> be able to run some real jobs through it, and give training to the very >> keenest of members. The software to drive it is still the supplied windows >> tool, and is therefore not the easiest to work with, but we will be >> replacing the control electronics and offering a more familiar interface to >> it in the near future, we just wanted to get the device operational as soon >> as possible. >> >> Can people please login to the website and vote on the courses they would >> most like to see so that we can prepare notes and materials. >> >> >> Image: Minimum Power setting cutting text into paper >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> > > _______________________________________________ > Hackspace mailing list > Hackspace at swansea.hackspace.org.uk > http://swansea.hackspace.org.uk/mailman/listinfo/hackspace > > -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: laser_paper_small.jpg Type: image/jpeg Size: 111715 bytes Desc: not available URL: From justin at discordia.org.uk Sun May 31 16:05:13 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Sun, 31 May 2015 16:05:13 +0100 Subject: [Swansea Hackspace] Laser Cutter progress In-Reply-To: Message-ID: <80805872-4bb3-4a1a-b95a-bea10e0fd821@email.android.com> Yes, been, done, and fitted a week or so ago, I found 10x15mm ALU corner in b&q. Need some help in working out why the flow sensor is playing up but it's otherwise ready to use, albeit with the original control board. On 31 May 2015 3:54 pm, Ceri Clatworthy wrote: > > Did anyone get the aluminium L section > For the front and back doors? ? > > I have been out today. . > Bun can't find any.. > At a sensible price / size > > Looks like a trip to B&Q > If now one else has.... > > Ceri > > On 31 May 2015 11:09, "Richard Morgan" wrote: >> >> Well done all. >> >> Can you put a link to the 'voting' page on?the site for the courses - might be user error but I can't find it... >> >> Thanks, >> >> Richard >> >> >> On Tue, 26 May 2015 at 13:10 Justin Mitchell wrote: >>> >>> We are making excellent progress with the laser cutter, it has now been fitted with many interlocks and safeguards to prevent accidental exposure to the laser when it is operating, and to obscure all those places where you could previously peek inside. >>> >>> We have one more safeguard to complete, which will ensure that the water cooling is operating before you can fire the laser, which is for it's protection more than ours. >>> >>> Once this is complete and we update the various safety notices we should be able to run some real jobs through it, and give training to the very keenest of members. The software to drive it is still the supplied windows tool, and is therefore not the easiest to work with, but we will be replacing the control electronics and offering a more familiar interface to it in the near future, we just wanted to get the device operational as soon as possible. >>> >>> Can people please login to the website and vote on the courses they would most like to see so that we can prepare notes and materials. >>> >>> >>> Image: Minimum Power setting cutting text into paper >>> _______________________________________________ >>> Hackspace mailing list >>> Hackspace at swansea.hackspace.org.uk >>> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace >> From justin at discordia.org.uk Sun May 31 19:13:05 2015 From: justin at discordia.org.uk (Justin Mitchell) Date: Sun, 31 May 2015 19:13:05 +0100 Subject: [Swansea Hackspace] RS485 In-Reply-To: Message-ID: <289d96b6-aad6-4466-a77f-cc0d193fd434@email.android.com> Found SCMAX485CPA and SCLTC485CN8 of they are of any use to you On 26 May 2015 7:36 am, Ceri Clatworthy wrote: > > Thanks guys. . > Would appreciate that. > I will make an adapter in anticipation. . > > Cheers > Ceri > > On 25 May 2015 21:27, "Justin Mitchell" wrote: >> >> On Mon, 2015-05-25 at 17:53 +0100, Ceri Clatworthy wrote: >> > Hi does anyone have a RS485 to USB >> > Or RS485 to RS232 >> > >> > I Can borrow for a day or two. >> > Got a new bit of kit. >> > But can't get my PC to communicate with >> > It. >> >> Think i have some MAX485 chips somewhere, but thats about it. >> >> >> _______________________________________________ >> Hackspace mailing list >> Hackspace at swansea.hackspace.org.uk >> http://swansea.hackspace.org.uk/mailman/listinfo/hackspace From justin at swansea.hackspace.org.uk Sun May 31 20:35:41 2015 From: justin at swansea.hackspace.org.uk (Justin Mitchell) Date: Sun, 31 May 2015 20:35:41 +0100 Subject: [Swansea Hackspace] Laser Cutter progress In-Reply-To: References: <1432642227.6184.16.camel@justin.llw.rokcorp.com> Message-ID: <1433100941.17613.4.camel@emerald.geode.org.uk> On Sun, 2015-05-31 at 10:04 +0000, Richard Morgan wrote: > Can you put a link to the 'voting' page on the site for the courses - > might be user error but I can't find it... Front page, top right corner where the 'next meeting' link usually is. Also on the upcoming meetings page where the future meetings aren't. Someone really should get on and actually arrange one soon, but there is hesitation to do anything before the impending move.