#robotics | Logs for 2016-08-12

Back
[00:23:52] <delinquentme> hi all! I've got one of these which I think is damage: http://g01.a.alicdn.com/kf/HTB1I3ckKpXXXXcpXXXXq6xXFXXXM/500W-24V-power-supply-switch-power-supply-24V-20A-centralized-power-supply-S-500-24.jpg_640x640.jpg
[00:24:30] <delinquentme> i have my lil multimeter which i just tested out on an arduino running off my laptop and it held a steady reading of 4.10v at the 5v terminal
[00:24:59] <delinquentme> but now i've taken that same multimeter and connected it up to the +V and ground terminal on the above PSU
[00:25:07] <delinquentme> and the reading jumps all over the place.
[00:25:18] <delinquentme> how can I test to see if this power supply is trashed.
[00:25:23] <delinquentme> ? **
[00:25:36] <delinquentme> i was expecting to see a nice steady 24v on my multimeter.
[00:27:03] <Snert> does it have a little slide switch on the side - 110 or 220?
[00:27:29] <Snert> mine was set for 220 when I was running it from 110 - didn't see the switch.
[00:27:34] <delinquentme> it does. Im in US and its set to 110
[00:27:53] <Snert> ok
[00:27:55] <delinquentme> it also has this lil screw potentiometer next to the screw terminals
[00:28:08] <delinquentme> i twisted that because I thought it was the output vcc adjustment
[00:28:13] <Snert> yes that adjusts the output voltage.
[00:29:17] <delinquentme> i have it cranked clockwise to hope it gives me some kinda measurement about Mvs
[00:29:19] <Snert> what was the voltage before and after diddling the pot?
[00:29:21] <delinquentme> but thats all im seeing
[00:30:12] <z64555> "jumps all over the place" Sounds like it might be a bad filter cap
[00:30:23] <z64555> capacitor
[00:30:24] <Snert> are you diving this? or dmm or scope?
[00:30:39] <delinquentme> 190 to like .5 milivolts
[00:30:58] <z64555> If you had a scope that can handle the voltage that would be perfect
[00:31:01] <delinquentme> 190mv to .5mv
[00:31:03] <delinquentme> i dont
[00:31:08] <delinquentme> only a lil radioshack multimeter
[00:31:16] <z64555> k. try setting the multimeter to AC
[00:31:22] <delinquentme> kk
[00:31:26] <Snert> is it on DC scale?
[00:31:43] <delinquentme> it was. now its on AC
[00:31:50] <delinquentme> you want me to check the far right two terminals ?
[00:31:59] <Snert> put it back on DC and diddle the pot.
[00:32:02] <delinquentme> N / L
[00:32:06] <delinquentme> kk
[00:32:10] <Snert> note the top and bottom limits.
[00:32:42] <delinquentme> should i adjusts the pot while the PSU is powered on ?
[00:32:53] <Snert> yes. while measuring.
[00:32:56] <z64555> hm, I'll let you take over Snert, I'm not familiar with PS power supplies
[00:33:01] <Snert> preferrable under a light load.
[00:33:01] <z64555> *PC
[00:33:25] <delinquentme> I have a stepper driver designed for 24v here but im hesitant to hook it up
[00:33:34] <delinquentme> also im not sure what part is failing
[00:33:39] <Snert> that wouldn't be my idea of a load.
[00:33:39] <delinquentme> but should I connect it up regardless?
[00:33:55] <delinquentme> kk diddling w pot and taking measurements
[00:35:47] <delinquentme> with the multimeter on the +V and GND
[00:36:05] <delinquentme> its reading -100mv on the extreme CCW and +100mv on the extreme CW
[00:36:36] <Snert> yea don't get all confuzzled by trying to measure ac ripple with your meter on ac volts.
[00:36:37] <Snert> while that might provide some indication, it's a scope to measure that stuff.
[00:36:55] <delinquentme> yeah this is on DC
[00:36:58] <Snert> that is a 24v DC psu?
[00:37:17] <delinquentme> yeap ! 24v DC 20A
[00:37:46] <Snert> well, something is wrong cause the output voltage is nowhere near right.
[00:37:59] <Snert> I'd expect 18 to maybe 26v dc.
[00:42:01] <delinquentme> ugh
[00:42:07] <delinquentme> yeah every terminal is measuring in the mv range
[00:42:10] <delinquentme> blaaaaah
[00:42:22] <Snert> so go measure a different source of dc and prove your meter is good.
[00:42:31] <Snert> like a AA battery.
[00:42:52] <delinquentme> i measured the 5v rail on an arduino
[00:42:57] <delinquentme> but lemme see if i can find a battery
[00:44:05] <Snert> ok well if you got 5v then it's prolly good.
[00:44:27] <Snert> unless you blew the fuse twixt now and back then.
[00:45:59] <delinquentme> yeahh 4.67 V steady while running the arduino nano off the laptop USB power
[00:47:42] <Snert> then I'd suspect the ground connection - where you put the black probe when you tried to measure the psu.
[00:47:57] <Snert> sure you're on the right 2 terminals?
[00:50:07] <delinquentme> http://g01.a.alicdn.com/kf/HTB1I3ckKpXXXXcpXXXXq6xXFXXXM/500W-24V-power-supply-switch-power-supply-24V-20A-centralized-power-supply-S-500-24.jpg_640x640.jpg
[00:50:21] <delinquentme> so in the image the farthest left screw terminal is number 1
[00:50:30] <delinquentme> 1-3 is V+
[00:50:39] <delinquentme> 3-6 is V-
[00:50:42] <delinquentme> 7 is GND
[00:50:59] <delinquentme> 8 N ...9 Live
[00:51:01] <delinquentme> yeap
[00:51:22] <delinquentme> so sad
[00:51:23] <Snert> yea 120ac on those 2.
[00:51:30] <delinquentme> yup
[00:51:38] <delinquentme> lil bit of ouch
[00:51:41] <Snert> third pin from the right - the ground pin.
[00:51:44] <delinquentme> not licking them today
[00:51:46] <delinquentme> yeap
[00:52:07] <Snert> go from that ground pin to the +v with meter on dc volts.
[00:52:16] <delinquentme> black lead on the multimeter on that one ... red lead on the meter to terminal #1
[00:52:25] <delinquentme> yeap that was what I did
[00:52:26] <delinquentme> doing agian
[00:52:47] <Snert> you can try black to chassis and red on +v too.
[00:53:44] <delinquentme> yeah it like starts at 80mv
[00:53:53] <delinquentme> and it climed over like 10 seconds to 170mv
[00:54:15] <delinquentme> PÜPŪ powersupply
[00:54:54] <Snert> yea, I guess that's the only conclusion. It does sound like you were measuring correctly.
[00:55:52] <Snert> at times like this one just has to say "chitmon'
[00:57:20] <delinquentme> agreed.
[00:57:31] <delinquentme> i was about to have a nice lil syringe pump working for a friend tonight
[00:57:33] <delinquentme> NOT THE CASE
[00:57:43] <delinquentme> hopefully hell have a working PSU when i get there tomorro
[02:18:38] <deshipu> delinquentme: you are going to hell?
[02:33:38] <z64555> apostrophes are hard to find on phones
[03:01:48] <z64555> and now I have this idea about replacing the lid on a motorola razor (2nd gen) with some LCD screens
[03:01:50] <deshipu> not like you can spell the whole word instead
[03:02:40] <z64555> it already has 2 LCD screens, but the idea is to make them transparent
[03:03:36] <z64555> dunno what good that would do, though
[03:03:59] <deshipu> lcd screens need polarized light to work
[03:04:38] <deshipu> not sure how you want to make that work with nothing behind them
[03:06:14] <z64555> polarization is easy, just put in a layer or two of film on the input lense
[03:08:09] <z64555> could replace the keypad with a touchscreen
[09:16:04] <robotustra> hi
[10:11:48] <anonnumberanon> z64555, Hey I saw your progress on the quadcopter good job.
[10:50:42] <[VEGETA]> what is the requirements of designing a robot mobile base like Kobuki?
[10:50:49] <[VEGETA]> in order to work with ros
[10:52:01] <robotustra> what is Kobuki?
[11:16:29] <anonnumberanon> [VEGETA], a quick google search indicates Kobuki is a very advanced robot. So a large team of developers and hardware engineers.
[11:16:32] <anonnumberanon> Next question...
[11:19:57] <SpeedEvil> In principle, you can basically use roomba spares
[11:20:04] <SpeedEvil> for a similar platform
[11:20:07] <SpeedEvil> add batteries, ...
[11:22:51] <[VEGETA]> <anonnumberanon>, well I don't mean the exact same thing... but similar concept
[11:23:31] <[VEGETA]> the idea of a mobile robot base uses a diff drive and usable in ros
[11:23:42] <[VEGETA]> i have some ideas but i am not very sure
[11:24:07] <anonnumberanon> [VEGETA], maybe you need an end goal and go from there?
[11:24:21] <[VEGETA]> what do you mean?
[11:25:18] <anonnumberanon> That thing is a final product that required thousands of man-hours to produce. You cannot do this quickly. You must come up with a very basic thing that kind of looks like Kobuki and performs like it, but nowhere near as advanced (because you are alone, no team, no budget).
[11:25:23] <[VEGETA]> i think the idea of a mobile base is to publish odometry and listen to twist msgs.
[11:26:10] <[VEGETA]> so if i wanna make a robot project, that mobile base can help
[11:26:33] <[VEGETA]> i just put a pi3 or something that has ros to do my project's idea
[11:26:43] <anonnumberanon> Yeah, good idea.
[11:26:46] <[VEGETA]> while the mobile base already takes care of movement
[11:26:56] <anonnumberanon> You would buy a Kobuki and reuse the parts?
[11:26:57] <[VEGETA]> odom, navigation, ...
[11:27:31] <[VEGETA]> how about making one by myself? one that is not complex... bare minimum
[11:27:43] <[VEGETA]> i saw some projects online
[11:28:31] <[VEGETA]> I am good with PIC mcus.. so designing a motor control board won't be hard at all
[11:28:54] <[VEGETA]> so i thought of a motor control board (diff drive concept) with encoders and stuff to do odometry
[11:29:04] <[VEGETA]> and possible addition of a gyro
[11:29:17] <[VEGETA]> then make it available through serial port
[11:29:33] <[VEGETA]> to listen to twist msgs and publish odom msgs
[11:29:42] <[VEGETA]> isn't that what kobuki does?
[11:33:54] <[VEGETA]> I saw this board (used with an arduino): http://botnroll.com/omni3md_en/
[11:45:41] <anonnumberanon> is that fitting your budget?
[11:46:16] <[VEGETA]> i don't know how will it cost
[11:46:26] <[VEGETA]> but i don't think it will cost much
[11:46:38] <anonnumberanon> $180
[11:46:39] <[VEGETA]> what about the idea itself?
[11:48:02] <veverak> veverak: learn it
[11:48:05] <veverak> finally learn how to test
[11:48:08] <veverak> damn it
[11:48:11] <veverak> one thing I avoid too long
[11:48:41] <Loshki> [VEGETA]: or buy a roomba create or some such, and spend your time on higher level pursuits
[11:49:30] <[VEGETA]> Loshki, money is my continuous problem
[11:49:59] <[VEGETA]> in order to do ANY robot project with ROS, you must have a good mobile base
[11:50:26] <[VEGETA]> making my own seems good enough and cost effective to some degree
[11:51:00] <Loshki> [VEGETA]: we all have budgets, one way or another. Cheap old roombas are cheap and old :-)
[11:51:14] <[VEGETA]> because I got quotes from famous robots distributers... the Pioneer Aibo is about 2.5k !!!
[11:51:35] <[VEGETA]> Loshki, where to get them if they are old and cheap?
[11:51:37] <anonnumberanon> [VEGETA], truth is the more you do things yourself the harder it is
[11:51:59] <anonnumberanon> [VEGETA], learn this: http://www.societyofrobots.com/
[11:52:01] <Loshki> [VEGETA]: ebay, craigslist, yard sales. Depends on where you live
[11:52:14] <[VEGETA]> anonnumberanon, I know but the money margin is too big
[11:52:38] <anonnumberanon> [VEGETA], this project is $50 bucks
[11:52:59] <[VEGETA]> which one exactly?
[11:53:01] <anonnumberanon> "Ever wanted to build your own robot but didn't know where to start? Here is your chance! I will outline step by step exactly what to do to build a robot for under $50. "
[11:53:17] <anonnumberanon> http://www.societyofrobots.com/step_by_step_robot.shtml
[11:54:00] <[VEGETA]> aha i saw it
[11:54:13] <[VEGETA]> but, isn't this what i was talking about? or what?
[11:54:29] <Loshki> [VEGETA]: also, goodwill (charity shops). Dozens of remote control toys for which generations of kids have lost the remotes...
[11:54:54] <anonnumberanon> Is it now?
[11:55:51] <[VEGETA]> i was talking about the same thing nearly
[11:56:09] <[VEGETA]> now this 50$ robot base can be integrated with ros
[11:56:30] <[VEGETA]> this base in the tutorial should be capable of diff drive the robot right
[11:57:03] <[VEGETA]> so all the addition is to make it ros compatible... meaning: odom and twist
[11:57:05] <[VEGETA]> right?
[11:57:39] <[VEGETA]> once it is complete... i can put my notebook on top of it and make a project like navigation and slam
[11:57:46] <anonnumberanon> yeah once you are done with the project on that page you can add odom with no problem
[11:57:57] <anonnumberanon> line-following
[11:57:58] <[VEGETA]> ^ yes! that was my idea
[11:58:07] <anonnumberanon> maze-solving
[11:58:29] <anonnumberanon> heat-seaking(for finding a flame and spaying it with water)
[11:58:52] <anonnumberanon> lidar slam takes a lot more money
[11:58:54] <[VEGETA]> i am not interested in these... but rather just making it compatible with ros... no more
[11:59:21] <[VEGETA]> all other additional functions like slam and stuff will be in the ROS PC or Pi3
[11:59:33] <[VEGETA]> not in the robot drive control itself
[11:59:38] <[VEGETA]> brb 10 mins...
[11:59:48] <anonnumberanon> yeah good luck, you'll need to figure out what microcontroller the robot in this project runs, and then if you can put ros on that microcontroller
[12:00:00] <anonnumberanon> then if that's all good you're ready to build and program
[12:00:52] <anonnumberanon> okay so you'll need to connect your raspberrypi to the motor controller, that takes a bit of learning, that will be a big step in your project
[12:01:40] <anonnumberanon> in this tutorial he teaches how to do UART which is a communication system, just use that from the raspi to the motor controller of this tutorial and you will be sett
[12:01:46] <anonnumberanon> *set
[12:03:56] <Loshki> [VEGETA]: Well, I agree with that. Offload the heavy processing to big iron in the background over wireless. It's still a big project for one person.
[12:17:02] <[VEGETA]> <anonnumberanon> in this tutorial he teaches how to do UART which is a communication system, just use that from the raspi to the motor controller of this tutorial and you will be sett
[12:17:02] <[VEGETA]> <anonnumberanon> *set
[12:17:10] <[VEGETA]> that is what i wanted
[12:17:38] <[VEGETA]> robot's controller manages motors and stuff... publishes odom and get twist over serial communication
[12:18:13] <[VEGETA]> while an external computer (pc, pi3, bbone) host ros and sends twist via serial to robot's controller
[12:18:54] <[VEGETA]> Loshiki, from what I read... Kobuki is using what we discussed here
[12:19:12] <[VEGETA]> it is only a mobile robot base which means a driver board
[12:19:25] <[VEGETA]> then you must connect your pi to it
[12:19:32] <[VEGETA]> exactly the same concept
[12:19:49] <[VEGETA]> but kobuki is more complex due to more sensors and additions
[12:20:01] <[VEGETA]> I don't want that... I just want mere minimum
[12:20:26] <[VEGETA]> then it won't be too much for one person right?
[12:26:53] <anonnumberanon> brb
[12:29:49] <[VEGETA]> tyt
[12:31:55] <anonnumberanon> ok back
[12:32:00] <z64555> anonnumberanon: oh thx
[12:33:43] <anonnumberanon> so what i'd do if I were you [VEGETA] is do the tutorial, then learn how to talk to it with your raspberry pi using UART. Then on the raspberry pi connect your slam stuff like cameras, distance sensors, gps, accelerometer, wifi antenna, and finally send all that info to a computer, either for computing things or for computing and displaying on the computer's screen
[12:34:29] <[VEGETA]> you seem to understand me good
[12:34:33] <anonnumberanon> either you do your heavy computing on the raspi (it can handle it but only up to a point wher eyou're doing crazy stuff) or on a computer, but then you would send data to that computer via wifi
[12:34:54] <[VEGETA]> I will try my best to do a similar stuff to the tutorial first
[12:35:20] <[VEGETA]> right now, my only concern is to get the base robot done
[12:35:33] <[VEGETA]> by this i consider the project complete
[12:35:52] <anonnumberanon> Yeah that should be your only concern. It will take you a few months and you will be really proud of yourself when you are finished.
[12:35:53] <[VEGETA]> now, the other stuff like navigation and slam is considered a totally new project
[12:36:31] <anonnumberanon> Slam is a hard project.
[12:36:40] <[VEGETA]> months? oh that much for diff drive robot
[12:36:47] <[VEGETA]> nevermind slam now
[12:36:53] <[VEGETA]> it is for the future
[12:38:07] <[VEGETA]> what I want for now is just the robot mobile base
[12:38:20] <[VEGETA]> I am good with PIC mcu and Arduino
[12:38:40] <[VEGETA]> but I want to use PIC to be able to make a good pcb
[12:38:49] <[VEGETA]> when the project is done
[12:38:50] <anonnumberanon> Yeah realistically probably 2 months to make the base robot from that tutorial. (getting the parts and waiting on them in the mail while reading the tutorial, assembly, doing assembly again because it's your first time and you burned things, etc, then the programming which is not hard because tutorial has code but you still need to understand a bit of what it does)
[12:39:30] <[VEGETA]> nice, i am not in a hurry
[12:39:32] <anonnumberanon> "PIC mcu and Arduino" is wrong
[12:39:45] <anonnumberanon> it is: "PIC mcu or AVR mcu"
[12:39:47] <[VEGETA]> arduino is considered an mcu
[12:39:51] <[VEGETA]> but it is not
[12:40:07] <[VEGETA]> i said that cuz i didn't use avr itself without an arduino board
[12:40:10] <anonnumberanon> Arduino is a platform that lets you use AVR more easily.
[12:40:23] <anonnumberanon> It's like I said PICduino for PIC.
[12:40:28] <anonnumberanon> It's really AVR.
[12:40:55] <[VEGETA]> but if I want to make a final pcb, using arduino is not gonna help
[12:41:17] <[VEGETA]> i can use arduino stuff with a normal avr mcu
[12:41:21] <[VEGETA]> but it won't be nice
[12:42:00] <anonnumberanon> You draw your board with AVR and its components, then you order the board to be printed somewhere, then you order the components that will go on the board, then you put everything in an oven so that the components glue to the board.
[12:42:47] <[VEGETA]> but if you use arduino, you will be forced to use the exact same avr mcu it uses
[12:42:50] <anonnumberanon> Arduino is a software on a computer to let you put the code in the AVR more easily for beginners, and it has a lot of code you can use that you don't need to write, instead of having to write everything from scratch for AVR.
[12:44:55] <anonnumberanon> [VEGETA], Why do you want to use PIC?
[12:47:09] <[VEGETA]> I wanna use PIC because I am used to them previously. And I have a huge variety of choices. For AVR, I will use the ones used in Arduino board since I won't program them like PICs. I know it can be used with other avrs but if that is the case then pic is better here
[12:54:34] <z64555> AVR chips tend to be more powerful than PIC,s at any rate
[12:55:16] <[VEGETA]> well, I don't agree on that but also won't defend pic
[12:55:48] <[VEGETA]> I like ARM based MCUs like stm32
[12:56:11] <[VEGETA]> and I absolutely love Renesas stuff << don't have the capability to use them xD
[12:58:43] <z64555> well not the dinky avr 8's, I'm talking like the 32's. sorry
[12:59:06] <z64555> Usually when I hear "AVR" they mean the bigger stuff
[13:00:07] <anonnumberanon> [VEGETA]> I wanna use PIC because I am used to them previously.
[13:00:15] <anonnumberanon> Really? Tell me more about this.
[13:01:47] <[VEGETA]> I used the small normal pics in power electronics projects
[13:02:41] <[VEGETA]> z64555, actually, avr can excel over pic only in 8 bit range cuz of the 4 instruction cycle of the 8-bit pics
[13:03:01] <[VEGETA]> 16-bit and more pics use 1 cycle not 4
[13:03:25] <[VEGETA]> i told you, i don't know the absolute truth... maybe 32-bit avrs are better and maybe pics
[13:03:49] <[VEGETA]> but people absolutely have MIPS core :)
[13:06:48] <anonnumberanon> atmega328 is best, use that (it's also used by the famous arduino uno)
[13:08:00] <[VEGETA]> what mcus did you use? other than avr and pic?
[13:08:08] <[VEGETA]> arm-based ones are the best
[13:08:19] <[VEGETA]> better than avr and pic for sure
[13:08:36] <[VEGETA]> but harder to learn due to several reasons
[13:11:50] <anonnumberanon> arm is harder to use than avr i am going to try to find out if it's possible to use arm stm32f429 over the next 10 days, i just want to do basic stuff with it but if it is hard i will be sad
[13:12:14] <anonnumberanon> avr has enough power that it will take you a few years to use it to the max potential
[13:12:19] <anonnumberanon> so start with avr
[13:12:41] <anonnumberanon> AVR has a lot easier info to learn programming it, and how it works
[13:12:57] <anonnumberanon> arm is more professional so it's obviously harder to get info to learn how to program it
[13:13:28] <z64555> s/professional/old school
[13:13:36] <[VEGETA]> then you should use stm32 discovery boards... so cheap
[13:22:41] <anonnumberanon> yeah that's why I have
[13:23:21] <anonnumberanon> z64555, excuse me? :)
[13:25:48] <anonnumberanon> "In September 2013, ST announced the STM32F401C-DISCO and STM32F429I-DISCO boards"
[13:25:55] <anonnumberanon> I'm not using old school stuff lol.
[13:43:25] <[VEGETA]> actually, ST sells these boards with a loss. all that to make their products more popular
[14:50:07] <z64555> "DISCO" m8, that's old school. :P
[14:50:48] <z64555> nah, I was commenting on how many of the chipset manufacturers in the old days didn't make things particularly easy for beginners.
[14:54:07] <anonnumberanon> oh....absolutely, oh and by the way i like old-school shit it's the best
[14:54:46] <anonnumberanon> I can link some very interesting projects done with this specific platform if anybody wanna see.
[15:34:23] <veverak> hmm
[15:34:28] <veverak> if I want to control i2c device from laptop
[15:34:40] <veverak> easiest way is to convert one arduino with i2c to driver propably?
[15:34:44] <veverak> or any tips for more proper way?
[15:34:47] <veverak> like usb to i2c?
[15:34:49] <veverak> ;)
[15:39:04] <deshipu> veverak: I think arduino is the simplest
[15:39:40] <z64555> You can use USB on a chip that has a UART, but you'll have to make a driver/listener on the chip
[15:40:09] <z64555> and of course make sure the logic is 5v
[20:39:35] <rue_house> the usb->serial converters will usually accept 3.3V logic
[20:56:56] <Jak_o_Shadows> Yeah, I recently bought 3 of them from ebay
[20:57:01] <Jak_o_Shadows> hopefuly all with different chips
[21:16:50] <rue_house> I think avoid the cp2302
[21:17:03] <rue_house> iirc, those are the ones that have interseting issues
[21:17:19] <rue_house> aka, no buffer, so send faster than you can type and data goes missing
[21:17:46] <rue_house> and, if you have multiple devices connected, all transmissions to it will be picked up by all of them
[21:17:58] <rue_house> one of the uarts did that
[21:18:06] <rue_house> it was amusing
[21:18:19] <rue_house> I was just transmitting to one of them, but they were all picking up the data
[21:28:42] <Jak_o_Shadows> I got a PL2303HX, a CH340G, and a CH340G or SN75176
[21:36:07] <Jak_o_Shadows> I am very close to having my camera working with my stm board
[21:36:14] <Jak_o_Shadows> The DMA may not be working though
[21:54:23] <rue_house> Jak_o_Shadows, !
[21:54:28] <rue_house> I got my board flahsing an led!
[21:56:23] <Tom_itx> what board?
[21:56:35] <Tom_itx> i figured you could flash an led like 25yrs ago
[21:57:26] <Jak_o_Shadows> yay!
[21:57:37] <Jak_o_Shadows> GPIO toggling or a timer?
[21:57:48] <Jak_o_Shadows> It took me much time to get a timer toggling an LED. A couple of days straight.
[22:07:25] <z64555> timer. always go with a timer