#robotics Logs

Jul 25 2019

#robotics Calendar

12:00 AM fling: What programmer to use when connecting laptop to sanguinololu directly?
12:05 AM rue_mohr: arduino
12:05 AM rue_mohr: should be
12:05 AM rue_mohr: its the 1284?
12:05 AM fling: Yes.
12:05 AM rue_mohr: ok, is that in the target list you have?
12:07 AM rue_mohr: brb have to start supper
12:07 AM fling: rue_mohr: it has no reset https://directvoltage-e7b.kxcdn.com/wp-content/uploads/2018/07/Creality-3D-Upgrade-CR-10-Mini-V1.1.3-Melzi-Mainboardd-For-CR-10Mini.png
12:16 AM rue_mohr: hahabuilt on motor drivers
12:16 AM rue_mohr: I thought only apple was stupid enough to remove the reset button
12:17 AM rue_mohr: what do you do when a motor drivers blows?
12:17 AM rue_mohr: (and those ones do)
12:17 AM fling: panic and run in circles
12:17 AM fling: I'm going to replace this board
12:18 AM fling: But wanted to use a better firmware while waiting for a replacement
12:18 AM rue_mohr: ok well, one of those caps is from reset to ground
12:18 AM rue_mohr: so..
12:18 AM fling: rue_mohr: I'm certaind 1.1.3 comes _without_ a bootloader.
12:19 AM fling: The one found in ender3s…
12:19 AM rue_mohr: so you think they actually know what their doing and didn't use a bootloader
12:19 AM fling: Yes.
12:19 AM fling: This is why videos like this exist https://www.youtube.com/watch?v=fIl5X2ffdyo
12:19 AM rue_mohr: pin 4 is reset
12:19 AM rue_mohr: no, I have expected reasonable things of people for too long
12:20 AM fling: First I tried to use my ch341a programmer but the software for it only able to flash boards up to 64K or so
12:20 AM rue_mohr: I wouldn't put it past anyone to take an 8 bit microcontroller put a linux os on it, so they could run a arduino bootloader on it written in java
12:20 AM fling: Then I tried rpi3 as it worked in the how-tos
12:20 AM rue_mohr: hold on
12:20 AM fling: but in real life rpi3 is 3.3V only so it can't be done
12:20 AM fling: So I bought an uno yesterday haha
12:21 AM fling: It turned out to be a bad clone so I needed to use an older ide to flash arduinoisp on it
12:21 AM fling: Here I am.
12:22 AM rue_mohr: I cant see anything connected to pin 4
12:22 AM rue_mohr: oh wait
12:23 AM rue_mohr: the 6 pin connector, thats a programming header?
12:23 AM fling: Are you saying it can be flashed over usb without having a bootloader?
12:23 AM rue_mohr: or the 10 pin?
12:23 AM fling: Yes, 6pin is icsp one
12:23 AM rue_mohr: oh
12:23 AM fling: 10pin is screen
12:25 AM rue_mohr: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRn7vjFwJ0OSNPjRXaKnNmtAIsfa15e_Iat07FeOJPb_MpXvCUGPg
12:25 AM rue_mohr: do you know which pin is 1?
12:26 AM fling: Yes.
12:26 AM rue_mohr: ok
12:26 AM rue_mohr: short the 2 pins farthest away from 1 to hold it in reset
12:26 AM fling: top left on the image I pasted
12:27 AM rue_mohr: https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcRn7vjFwJ0OSNPjRXaKnNmtAIsfa15e_Iat07FeOJPb_MpXvCUGPg
12:27 AM rue_mohr: rst to gnd
12:27 AM fling: ok
12:27 AM rue_mohr: then try the arduino upload button, see what we get
12:27 AM fling: shorted them now connecting usb?
12:27 AM rue_mohr: it might not have a bootloader, but I'd be surprised
12:27 AM rue_mohr: plug into usb, short, click, unshort
12:28 AM fling: reset works
12:28 AM rue_mohr: but could arduino catch a bootloader
12:28 AM rue_mohr: you see arduino cant always reset a device to *get* to the bootloader
12:29 AM rue_mohr: so you want to release the reset just as its waiting for the bootloader to asnwer
12:29 AM sinned6915: rue_mohr: those cheap boards are burned with the system image at the factory. they dont normally ship with a bootloader
12:30 AM rue_mohr: I would still suspect about a 70% chance of them having a bootloader
12:30 AM rue_mohr: cause the world is stupid
12:30 AM sinned6915: indeed it is
12:30 AM * sinned6915 crosses fingers for fling
12:30 AM rue_mohr: its a moderatly quick thing to try
12:31 AM rue_mohr: if it wont work, then yea, uno as programmer
12:31 AM fling: rue_mohr: https://bpaste.net/show/XBZe
12:31 AM sinned6915: once he gets bootloaded installed, he should be be good.
12:31 AM fling: rue_mohr: also ttyUSB0 disappears sometimes when I reset
12:32 AM rue_mohr: ok, so that was with your releasing the reset just after clicking
12:32 AM fling: Yes.
12:32 AM rue_mohr: ok
12:32 AM fling: The try where ttyUSB0 stayed
12:32 AM rue_mohr: so, uno as programmer then
12:32 AM fling: reset works, as I can confirm this looking at the screen
12:32 AM fling: ok
12:33 AM * fling wiring it up
12:33 AM rue_mohr: write the sketch to the uno for being a programmer.
12:33 AM rue_mohr: cat on keybaord
12:33 AM rue_mohr: do you per chance have two unos?
12:34 AM rue_mohr: getting close to having to call it a night
12:34 AM rue_mohr: the basic steps are
12:34 AM rue_mohr: - write programmer sketch to uno
12:34 AM fling: rue_mohr: I wrote arduinoisp to the uno
12:35 AM rue_mohr: interconnect the two boards via icp
12:35 AM fling: rue_mohr: needed to use an older ide version for it to build though
12:35 AM fling: just connected them
12:35 AM rue_mohr: - load the printer sketch
12:35 AM fling: reset pin to uno header pin #10
12:35 AM fling: everything else is traight
12:35 AM rue_mohr: - set programmer type to stk500
12:35 AM * fling doing
12:35 AM rue_mohr: - use "load sketch using programmer"
12:36 AM rue_mohr: and it *should* work
12:36 AM rue_mohr: I'v not done it, I was going to and the project partner bailed
12:37 AM fling: rue_mohr: same error as before https://bpaste.net/show/KrVp
12:37 AM fling: Can't I somehow flash it using flashrom and a ponoma clip? :D
12:38 AM fling: I thought it is considered to be hard to flash x200 without a clip but I knew no pain!
12:38 AM fling: Will try a reset trick with this setup…
12:38 AM rue_bed: did you click "write sketch using programmer" and NOT the upload button?
12:39 AM rue_bed: is the programmer set to stk500?
12:39 AM rue_bed: the icp does not need you to manually operate the reset line
12:40 AM fling: Upload button with (->) on it.
12:40 AM rue_bed: NO
12:40 AM rue_bed: in the menus
12:40 AM fling: It is set to "Arduino as ISP" in ide.
12:40 AM rue_bed: "upload sketch using programmer"
12:40 AM fling: ide runs avrdude with -carduino
12:40 AM rue_bed: not with the button
12:40 AM fling: avrdude uses stk500
12:40 AM fling: ok doing
12:41 AM rue_bed: if you have a connection error I cant tell from here :)
12:41 AM rue_bed: thats why it would be nice to try it against another uno
12:41 AM rue_bed: you could do a flashing led sketch test
12:41 AM fling: rue_mohr: ok it is different now https://bpaste.net/show/ov6K
12:42 AM fling: did upload from the menus ^
12:42 AM fling: rue_mohr: I tried blink on uno and it worked
12:42 AM fling: with the same cable
12:42 AM fling: three times
12:43 AM rue_bed: the comm lines aren't working
12:43 AM rue_bed: you did blink on the uno
12:43 AM fling: I'm using 10cm dupont cables.
12:44 AM fling: Should I change them?
12:44 AM fling: wires
12:44 AM rue_bed: but right now you have the icp sketch on the uno, right?
12:44 AM rue_bed: I think their wired wrong
12:44 AM fling: I have arduinoisp on the uno
12:44 AM rue_bed: you have miso and mosi crossed over?
12:44 AM fling: No.
12:45 AM rue_bed: I wonder if they compensate for that
12:45 AM rue_bed: hell, try it
12:45 AM fling: I have everything straight but reset is on uno pin# 10
12:45 AM fling: try what? changing wires?
12:45 AM rue_bed: miso "master in, slave out"
12:45 AM rue_bed: mosi "master out, slave i"
12:45 AM rue_bed: so they should be crossed
12:45 AM fling: ok, trying to cross miso mosi
12:45 AM rue_bed: the uno is the master
12:46 AM rue_bed: the 1284 is the slave
12:48 AM fling: rue_mohr: upload using a programmer with wires crossed https://bpaste.net/show/Npn0
12:49 AM fling: I feel like I'm getting closer :P
12:49 AM fling: But you are already in bed omg! :D
12:54 AM fling: What should I try next?
01:06 AM rue_bed: hmmm
01:07 AM rue_bed: hey, does the 1284 have 5V power?
01:08 AM fling: rue_mohr: probably yes.
01:44 AM katsumi_ is now known as katsumi
01:50 AM fling: rue_bed: am I doomed? :D
04:04 AM Jak_o_Shadows: we're all in this together
04:04 AM Jak_o_Shadows: I would be worse off, AVR confuses me
09:06 AM rue_mohr: confuses?
09:17 AM rue_mohr: fling, no, your just doing something wrong and I cant tell what it is from here
09:17 AM rue_mohr: bit of a lack of pictures
09:17 AM veverak: I hate pic
09:17 AM veverak: it works now
09:17 AM veverak: but ..
09:17 AM veverak: feelis like building house out of paper
09:17 AM flyback: rue_mohr, you still alive these days?
09:18 AM rue_mohr: I could ask you the same
09:18 AM veverak: flyback: he finished moving his mind to computer and switched to robot body he builded
09:18 AM flyback: that's debatable
09:18 AM flyback: bmcc
09:18 AM veverak: he is immortal now
09:18 AM veverak: :)
09:21 AM flyback: eh-hole
09:21 AM flyback: you might enjoy this
09:21 AM flyback: hang on
09:21 AM flyback: http://cowlark.com/fluxengine/index.html
09:21 AM flyback: building one myself soon
09:22 AM flyback: so if you got some weird old cnc machine or scope etc with a oddball floppy disk format or a damaged disk
09:22 AM flyback: this is a way to read them
09:22 AM flyback: $15
09:24 AM flyback: this one is 10x more advanced but requires a $50 arduino plus you have to make your own shield pcb and do a lot of soldering
09:24 AM flyback: https://github.com/imqqmi/FloppyControl
09:25 AM flyback: both of them let you go thru a disk step by step
09:26 AM flyback: pulse by pulse
09:26 AM flyback: below the encoding even
09:26 AM flyback: then reconstruct all that in software
09:27 AM flyback: the floppycontrol method also lets you direct drive the stepper on the floppy drive so you can do microstepping and also handle disks where the hub has seperated from the media and the index is no longer aligned
09:28 AM flyback: "this is 2019"
09:29 AM flyback: yeah and people have old cnc machines, hp scopes etc that they would like to transfer the data off the disk so they can convert it to a floppy emulator
09:29 AM flyback: so bmcc
09:31 AM flyback: oh yeah the floppycontrol guy also has 3d print files
09:31 AM flyback: to make a little disk holder and a turn knob
09:31 AM flyback: so you can mount s disk to manually wipe the surface before reading
09:32 AM flyback: anyways thought you might get a kick out of this rue_mohr
09:32 AM flyback: later
11:02 AM fling: rue_mohr: doing exactly as on the video I sent you.
02:26 PM peepsalot: has anyone in here built one of these cheapo diode desktop laser engraver kits? like this: https://www.ebay.com/itm/500mW-65x50cm-Laser-Engraving-Machine-Cutting-Printer-CNC-Control-LOGO-Cutter/293013774435
02:27 PM peepsalot: not seeing any assembly instructions anywhere, just wondering if someone knows a URL. i can probably figure it out just fine, but just following step by step without having to think too hard would be nice
03:34 PM pai-pai is now known as katsumi_
05:45 PM flyback: lithonia lightning emeregency exit sign batteries, 12v@7.2ah normally around $25-$30 on clearance at home depot $8.50
05:45 PM flyback: muhahaha
05:45 PM flyback: now I have some ups batteries for my data recovery project boxes
06:09 PM sinned6915: peepsalot: any luck on that engraver?
06:46 PM logb0t_ is now known as logb0t
06:46 PM peepsalot: sinned6915, no luck finding instructions, been working on some unrealted software stuff, might do some assembly later tonight
07:38 PM rue_mohr: engraver?
07:38 PM rue_mohr: I'm making another one of those
07:38 PM rue_mohr: 48" x 96"
07:38 PM Tom_L: it needs a home too
07:39 PM Tom_L: any takers?
07:39 PM rue_mohr: hah
07:39 PM rue_mohr: I'm really thinking of the deck
07:39 PM Tom_L: rust
07:39 PM rue_mohr: problem is that the outter edge of the deck sees water
07:39 PM Tom_L: waterproof it
07:39 PM rue_mohr: and I have a couch on the deck taking up half the space
07:39 PM rue_mohr: water comming in sideways
07:39 PM rue_mohr: during storms
07:39 PM Tom_L: you have a chair for sitting
07:40 PM Tom_L: ditch the couch
07:40 PM rue_mohr: couch is for sleeping on
07:40 PM rue_mohr: like now, if there weren't 3 laser printers on it
07:40 PM Tom_L: with the bears and moose?
07:45 PM rue_mohr: dont be silly, we dont get moose out here
08:00 PM Tom_L: i was sure you said you saw one
08:06 PM rue_mohr: hah not here
08:06 PM rue_mohr: ok, so I cut the pieces for holding the bed
08:07 PM rue_mohr: I'v worked out that I'm going to have a few sublayers of wood
08:08 PM rue_mohr: so I'll get these on, and maybe I can start working on attaching the Y axis to the X axis
08:17 PM sinned6915: rue_mohr: how about a maslow instead?
09:01 PM rue_mohr: maslow?
09:33 PM sinned6915: https://www.maslowcnc.com/
09:33 PM sinned6915: due/grbl inclined 4x8 router for sheetgoods
09:35 PM sinned6915: or anythin panelized
10:50 PM katsmeow: https://www.wired.com/story/law-makes-bots-identify-themselves/