**** BEGIN LOGGING AT Sun Oct 08 03:00:00 2017 Oct 08 03:28:14 See apt-secure(8) manpage for repository creation and user configuration details. This is what happened when I updated my BBBW. Oct 08 03:28:46 ...This too! Oct 08 03:28:51 N: Updating from such a repository can't be done securely, and is therefore disabled by default. Oct 08 03:35:56 Are the servers down? Oct 08 03:43:42 error 503 is what returned. Oct 08 03:45:50 using deb.debian.org ? starting to get reports about it having some configuration problem Oct 08 03:48:19 Yea. The site for security came back with error 503. Oct 08 03:48:50 <<< on patience for now Oct 08 03:50:36 vagrantc: I looked online at Debian.org. They are not posting the issue yet. Oct 08 03:55:20 I have had download issues with Amazon before. Oct 08 03:56:05 aws or whatever... Oct 08 04:01:17 well, debian.org is practically written by hand ... not likely to have much news about it Oct 08 04:01:28 Oh. Oct 08 04:02:22 I see where they have updates on specific security issues on their main page. Oct 08 04:12:40 How does this affect the BBB development? Oct 08 04:28:03 it will presumably be a transient error ... you can used the regular mirrors if you really need to connect directly Oct 08 04:32:00 Okay...thank you. I just wanted to see if this happens often and gets in the way of development. Oct 08 04:34:02 first time i've heard of it Oct 08 04:34:15 though i've heard on numerous irc channels Oct 08 04:36:35 Okay...no issue. First time for everything. Oct 08 06:40:49 OTAY! Bye for now! Oct 08 08:19:54 somewhat off-topic, but does anyone know a manufacturer for an IC part number "ECA723CA"? Oct 08 08:20:30 it's in an old power supply, on the regulator board. I guess it's some kind of OpAmp Oct 08 08:23:05 might actually be a LM723 clone... Oct 08 17:41:12 does u-boot v2017.01 support using nand command for the beaglebone black Oct 08 17:49:02 does u-boot v2017.01 support using nand command for the beaglebone black Oct 08 17:50:51 the BBB doesn't have NAND Oct 08 17:52:04 tbr: thanks Oct 08 17:59:35 Do anyone if this forum have access to the book "Mastering Embedded Linux Programming" by Chris Simmonds I am having trouble in understand what it is talking about regarding the use of u-boot Oct 08 18:00:38 Do anyone in this forum have access to the book "Mastering Embedded Linux Programming" by Chris Simmonds I am having trouble in understanding what it is talking about regarding the use of u-boot with nand command :-( Oct 08 18:02:04 The book uses the BBB as its main hardware for teaching. Oct 08 18:07:40 I think I do...let me check. Oct 08 18:08:20 set_: cool thanks Oct 08 18:08:39 I got it. Oct 08 18:09:05 onio: Please hold as I have to download it again in .pdf format. Oct 08 18:09:42 set_: cool no worries Oct 08 18:11:27 onio: They were just giving these books away a while back at packtpub.com. Oct 08 18:11:35 I was surprised to get this one. Oct 08 18:12:20 yep I bought the first and second edition with the hope of some changes but still the same Oct 08 18:12:46 Oh. Oct 08 18:12:53 set_: which edition did you manage to download Oct 08 18:13:25 Oh, I see you need the 3rd Edition. Hold on, let me check which one I have now. Oct 08 18:13:58 :) Oct 08 18:15:40 Sorry onio: This was produced in 2015. It is not the 2017 version. Oct 08 18:17:54 set_: one second let me check. I believe the same example was used back in the 2015 Oct 08 18:18:29 I see the 2nd Edition was made during this year (2017) by the same fellow. Oct 08 18:18:55 set_: See Page 56-57 I am sure it should be the same in the pdf version Oct 08 18:19:34 Okay, please hold. Oct 08 18:19:54 also see page 60 Oct 08 18:20:16 Using U-Boot? Oct 08 18:20:32 set_: yes Oct 08 18:20:45 Okay...let me check p. 60. Oct 08 18:20:59 Booting Linux? Oct 08 18:22:00 Same page first paragraph Oct 08 18:22:25 Hey onio: Are you wanting to use the BBB with the Yocto Project? Oct 08 18:22:55 Or Debian Wheezy/Stretch? Oct 08 18:23:17 No, this is learning purposes from the ground up Oct 08 18:24:06 Oh...okay. Please look here for the references that make up this book: https://www.debian.org/doc/manuals/debian-reference/. Oct 08 18:25:04 Sorry...wrong reference. Oct 08 18:25:53 ah Oct 08 18:26:06 I was reading and was wondering what I was missing Oct 08 18:26:50 Okay, ask away. I have the book. I can read it again. Oct 08 18:28:07 the first reference on p.57 what is he referring to please. I must be missing something there. Oct 08 18:28:20 Please hold. Oct 08 18:28:30 "nand read 82000000 400000 200000" Oct 08 18:29:46 Hexdecimal support for NAND flash memory. Oct 08 18:30:44 And getting it to recognize it in RAM. Oct 08 18:31:25 I would have to read most of the pages leading up to that page but I think that is all that states. Oct 08 18:31:53 yea, I get the hexadecimal number, but what I am not sure is why the use of nand command if the beaglebone black does not even have it on board Oct 08 18:33:05 Go to page 161. Oct 08 18:33:31 and page 166. Oct 08 18:33:44 I'll avoid adding more confusion yes I will. Oct 08 18:34:35 Ha! Hey, I think this book is for other types of MCUs. Let me keep reading. The book might not be for the BBB. Oct 08 18:35:16 yep Oct 08 18:36:17 I see on page 166 that it says you need a MCU with NAND support on the SoC. Oct 08 18:36:51 The BBB uses eMMC for flash storage. Oct 08 18:36:59 ...What am I missing? Oct 08 18:37:01 ah I must confess I had not read that far as I have been following the book sequentially Oct 08 18:37:14 Oh. Oct 08 18:37:51 I read through the Table of Contents and zoomed in. Oct 08 18:38:05 Are you using a BBB or variant? Oct 08 18:38:39 No I am using the original Beaglebone Black board with no modifications to hardware Oct 08 18:38:52 Oh. Rev A? Oct 08 18:39:24 Rev C I believe the one with 4G Oct 08 18:39:28 Oh. Oct 08 18:39:31 Okay. Oct 08 18:39:56 4 Gigs Oct 08 18:40:04 Hey onio: I think this book is for embedded linux but that the book may have some parts that are not dedicated to specific boards. Oct 08 18:40:32 For instance: The bbb does not have a SoC with NAND support. Oct 08 18:41:22 I would read the eMMC sections well after not reading into it that much. Oct 08 18:41:23 thanks for clearing that up. I thought it was a misprint in the first edition and that it would be corrected in the seconds editions Oct 08 18:42:07 Oh. I am pretty sure I am correct. Oct 08 18:42:13 Let me keep reading. Oct 08 18:43:16 Page 166 would start you on flash memory from Linux. Oct 08 18:43:20 I have good number of years in metal to metal programming but trying to break into the embedded Linux world so trying to go from the foundations and work my way up Oct 08 18:43:55 Me too. I am an end user for now that likes to stay enthusiastic about Linux and the bBB. Oct 08 18:44:13 So... Oct 08 18:44:44 Is that it for now? I am asking b/c I have time if you want to review more. Oct 08 18:45:23 thanks for your patients. I think that is for now I appreciate your time Oct 08 18:46:12 Sorry I could not help more. Oct 08 18:46:59 You have been more help than you know. At least I can move on. Oct 08 18:47:07 with the book Oct 08 18:47:51 Ha! Good then, I am glad that we know that eMMC is our flash and not NAND now. I used a bit of memory on the BBB and some ideas from that book to come to that conclusion. Oct 08 18:50:18 I thinks its time for me to spend some time studying the schematic diagram so I know exactly what hardware I have on the board :) Oct 08 18:52:51 Oh. yea, I should read it more often too. Oct 08 18:54:55 I realized those new bones have a OCTAVO SIP. Oct 08 18:56:48 But they still have the eMMC storage onboard. Oct 08 18:57:46 set_: I just looked at the schematic and can confirm what you said. I don't know why I never thought about looking at it before. Oct 08 18:58:59 I am odd like that too. I get wrapped up in things and forget to stop. Oct 08 18:59:15 It is on their site too, bbb.io. Oct 08 18:59:48 Octavo SIP. I just looked it up Oct 08 19:00:03 Yep. They have almost all of everything on one chip. Oct 08 19:00:19 really cool Oct 08 19:00:41 my day job does not involve embedded Linux which I am not too happy about Oct 08 19:01:00 so I only tinker with it every now and then Oct 08 19:01:19 Same here. Oct 08 19:02:15 I try to mess with it in my spare time. I got some hardware (BBB), some books, and some electronics. Boom! In it. Oct 08 19:02:24 what line are you in? My main programming language is C,C++ Oct 08 19:02:28 <<< end user still Oct 08 19:02:28 yep Oct 08 19:03:04 Worked a lot in the past with the Microchip PIC's Oct 08 19:03:23 but now I am working with electric imp Oct 08 19:03:41 Oh yea? That is cool. I tried out squirrel language. Oct 08 19:04:09 It pissed me off. I like the bone and its set of capes. Oct 08 19:04:25 Oh onio: Do you use the Motor Bridge Cape? Oct 08 19:04:52 I have been institutionalised with the C's so any other language is foreign to me Oct 08 19:05:15 Oh. I see what you asked now. I like Python and JavaScript. Oct 08 19:05:41 Do you use the Motor Bridge Cape? No Oct 08 19:05:54 Oh...okay. Oct 08 19:06:33 I have yet to find any other person on this planet that uses that Motor Bridge Cape around here. Oct 08 19:07:08 I am sure you would one day find the person. Oct 08 19:07:18 Yes...I can only hope. Oct 08 19:08:59 is this the cape http://www.instructables.com/id/A-BeagleBone-Tutorial-Getting-Started-With-Motor-B/ Oct 08 19:09:59 A brief look at the page looks like it is using the Pru on the BBB Oct 08 19:10:11 Oh. Yea, that is it. Oct 08 19:12:21 I thought it would be nice to make a machine out of the BBB and some motors. Oct 08 19:13:07 :) go for it you sound like you are the person for the job. Oct 08 19:13:22 that is if you have the time Oct 08 19:13:26 I got some stuff already done. Do you use Python at all? Oct 08 19:14:13 I have used it before in the past but I would not boast of being go at it. I would probably be able to follow the code. Oct 08 19:14:23 been good Oct 08 19:14:41 Hey...do you want to review my software and tell me what I should do next? Oct 08 19:15:17 if you don't mind Oct 08 19:15:41 Cool beans. Please hold, let me start my machine real quick. Oct 08 19:18:00 I did not want to mess with the H-Bridge stuff and wiring. This is why I am such a fan of the Motor Bridge Cape. Oct 08 19:18:30 fair enough Oct 08 19:24:12 https://pastebin.com/PJZrLNL3 Oct 08 19:24:35 I think that is what I am using right now to go forward and make a u-turn. Oct 08 19:24:50 I can only make one u-turn so far. Oct 08 19:25:25 just looking Oct 08 19:25:34 Okay. Oct 08 19:28:58 I can write forward and u-turn. That is probably all I am going to do with it until it is completed, e.g. forward and then u-turn and then forward and u-turn in the other direction and so on. Oct 08 19:30:13 <<< be right back Oct 08 19:31:10 I might be wrong with python but in c it is not allow to initialise the same variable two see line 4 and 5 Oct 08 19:33:14 .. same variable twice with different values assuming that they are constants Oct 08 19:33:37 const int MotorName = 1; Oct 08 19:34:03 Oh. Oct 08 19:34:11 So, what would you do? Oct 08 19:34:50 I am working from a Library. It is called MotorBridge.py. Oct 08 19:35:28 https://github.com/silver2row/MotorBridgeCapeforBBG_BBB/blob/master/BBG_MotorBridgeCape/MotorBridge.py Oct 08 19:35:31 kind of gathered that. I see you are pulling that in on line 1 Oct 08 19:35:40 Yep. Oct 08 19:36:00 So... Oct 08 19:36:52 I should not call the same variable twice. MotorName = 1 and MotorName =4 should be MotorName = 1 and MotorName4 = 4? Oct 08 19:37:39 best to use MotorName1 = 1, and MotorName4 = 4 if you have to Oct 08 19:38:12 Okay. I think you are right. I tried that before, too. Oct 08 19:38:30 if the language accepts it as it is written then I would like to believe the last value would take precedence Oct 08 19:38:49 Yea...it does at times. Oct 08 19:39:23 My motors act weird if I run the software in both formats. Oct 08 19:39:52 I got a video with the first mentioned pasteBin software. Oct 08 19:39:55 looking at the code I can see that it is starting and stopping a dc motor Oct 08 19:40:06 It is on youtube. Oct 08 19:40:07 Oh. Oct 08 19:40:15 driven by time Oct 08 19:40:53 the link I sent you has a youtube video showing all kinds of motor been driven Oct 08 19:41:13 Instructable site link? Oct 08 19:41:42 yep Oct 08 19:41:55 Okay. i will look at it. Oct 08 19:43:07 you don't seem to be making use of any of the variables which you initialised but using magic number is not often frown upon Oct 08 19:43:58 Oh. Oct 08 19:44:24 So, use the variables instead of the numerical values for those variables? Oct 08 19:44:33 definately Oct 08 19:44:37 Okay. Oct 08 19:44:48 it makes the code more readable as well Oct 08 19:46:07 I will have to sit on it for a while and think about it. It took me about three minutes to come up with that faulty software. Oct 08 19:46:30 I am sure you would get there. Oct 08 19:46:32 The Seeed-Studio people had some examples and I just elaborated. Oct 08 19:47:59 Without the hardware it is a bit difficult to fully understand what is going on. I can see that you are creating a "motor" object instantiated from MotorBridge.MotorBridgeCape() class and using that to start/stop your DC motor Oct 08 19:48:22 That is all. Oct 08 19:48:52 you have initialised and running some loops based on some predetermined values Oct 08 19:49:45 how many motor do you have? Oct 08 19:49:51 And then, the for i in range(1, 51) runs 50 times, i.e. my theory was that it would move ahead with both motors during this time. Oct 08 19:49:54 Two. Oct 08 19:51:33 I have two motors on a chassis and a third, loose wheel. It pivots and moves wherever in the front of the machine. Oct 08 19:51:51 i.e. like a small bushhog. Oct 08 19:52:02 but backwards. Oct 08 19:52:05 :) Oct 08 19:52:49 I have already seen those John Deer and Cat machines for geoLocation and autonomous action. Oct 08 19:53:03 This is all I will be doing with this software in time. Oct 08 19:54:04 having a quick scan at the python driver Oct 08 19:54:17 Cool! Oct 08 19:57:01 I assume the board as id for each motor so you are using 1 and 4 right Oct 08 19:57:11 Yes. Oct 08 19:58:48 The only issue is with the timing of everything for the u-turn. I have not tested out the theory yet. Oct 08 19:59:38 I do not know if one stroke backwards clockwise and one stroke forward with the counterclockwise action would produce an even cut, e.g. back and forth action for the machine. Oct 08 20:00:19 a to b and then c. Then, b to a and then d. Then, a to b then c and so on. Oct 08 20:00:42 I might be wrong with this but since I don't have the hardware I am throwing it out there.. Oct 08 20:01:13 do you have to initialise two different objects Oct 08 20:01:40 motor1 = MotorBridge.MotorBridgeCape() Oct 08 20:01:41 motor1.DCMotorInit(1, 1000) Oct 08 20:01:49 Well, I thought I would need three for when the job is done. Oct 08 20:02:11 motor4 = MotorBridge.MotorBridgeCape() Oct 08 20:02:11 motor4.DCMotorInit(4, 1000) Oct 08 20:02:19 Oh and yes. I came to this conclusion through testing. If you want, have the software and run it. Oct 08 20:02:33 I don't have the hardware Oct 08 20:02:37 Oh. Oct 08 20:02:53 I am just looking at the code Oct 08 20:03:07 You are right but you can still download MotorBridge.py and run the software from pastebin without the machine and motors. Oct 08 20:03:29 I will do it. Do not worry. Oct 08 20:03:39 Let me get back to the software. Oct 08 20:03:47 but the idea is to have the motors spinning Oct 08 20:04:24 Right. I have slow-motion geared motors and they spin. Oct 08 20:05:29 Okay...I get what you are saying from a library and classes methodology. Oct 08 20:05:46 ah ignore what I send about separate objects. I just noticed that the function to spin the motor does take the motorname as a parameter Oct 08 20:05:54 Okay. Oct 08 20:05:55 said Oct 08 20:06:41 Basically, I am looking to produce a drawing of a PWM working but in the physical sense. Oct 08 20:06:44 there is where the variable name work, I didn't realise that the first parameter to the function DCMotorMove(4, 1, 90) is the motor name Oct 08 20:06:54 Oh. Oct 08 20:07:08 so the 4 in this case is the MotorName Oct 08 20:08:12 motor.DCMotorMove(MotorName1, 1, 90) , motor.DCMotorMove(MotorName4, 1, 90) etc Oct 08 20:08:26 4 is my second motor. Here is my concern. Why would I run one motor 50 times forward and have the lack of time for my second motor to start turning at the 50 times interval? Oct 08 20:09:35 It is like this: Left motor forward 50 x's. Right motor forward 50 x's but it lags because of how the software is produced. Oct 08 20:10:02 timing and software for the BBB is what I am coming across so far. Oct 08 20:10:33 Well, Motor Bridge Cape. Oct 08 20:10:40 remember you have a print string, this would introduce some timing difference Oct 08 20:10:56 as they are of different length Oct 08 20:11:14 I plan to take that out. I am just using it for timing function. Oct 08 20:11:47 both they are very costly in terms of when you are looking for fine timing Oct 08 20:12:15 secondly is there any reason why you don't stand and stop both motor in the same loop Oct 08 20:13:00 for i in range(1, 51): Oct 08 20:13:01 motor.DCMotorMove(1, 1, 90) Oct 08 20:13:01 time.sleep(0) Oct 08 20:13:01 print "I got your biscuit, now!" Oct 08 20:13:01 motor.DCMotorStop(1) Oct 08 20:13:01 time.sleep(0) Oct 08 20:13:25 that was not meant to come out like that I have to use external editor Oct 08 20:14:58 it runs forward 50 times on Motor1, does not sleep, does not stop, and then the rest of the code states: Then is is Motor4's time to go forward 50 x's. Oct 08 20:15:18 Does not stop, does not sleep. Oct 08 20:15:22 if __name__=="__main__": Oct 08 20:15:22 motor = MotorBridge.MotorBridgeCape() Oct 08 20:15:23 motor.DCMotorInit(1, 1000) Oct 08 20:15:23 motor.DCMotorInit(4, 1000) Oct 08 20:15:23 for i in range(1, 51): Oct 08 20:15:23 motor.DCMotorMove(1, 1, 90) Oct 08 20:15:23 motor.DCMotorMove(4, 1, 90) Oct 08 20:15:23 time.sleep(0) Oct 08 20:15:24 print "I got your biscuit, now!" Oct 08 20:15:24 motor.DCMotorStop(1) Oct 08 20:15:25 motor.DCMotorStop(4) Oct 08 20:15:25 time.sleep(0) Oct 08 20:16:23 ... Oct 08 20:16:24 set_: I have to go bed now, I have early start in the morning Oct 08 20:16:30 No issue. Oct 08 20:16:36 See you later for now. Oct 08 20:16:44 onio! Later for now! Oct 08 20:17:00 did the code snippet make sense before I go? Oct 08 20:17:07 Sure. Oct 08 20:17:18 I can do that too. I will let you know how it goes. Oct 08 20:17:52 If you want, I can test it before you sleep. Oct 08 20:18:08 okay, go for it Oct 08 20:18:12 Sure, please hold. Oct 08 20:19:45 remember to remove the second for loop Oct 08 20:20:22 I know what you are saying. i tested it. The motor.DCMotorInit(1, 1000) is the motor name and frequency. Oct 08 20:20:53 I would have to call motor.DCMotorInit(1, 4, 1000) and the Library does not allow it. Oct 08 20:21:18 no Oct 08 20:21:32 I have only two argueements for motor.DCMotorInit(). Oct 08 20:21:37 you have two separate lines Oct 08 20:21:44 motor.DCMotorInit(1, 1000); Oct 08 20:21:51 motor.DCMotorInit(4, 1000) Oct 08 20:21:57 Oh. Oct 08 20:21:59 I got you now. Oct 08 20:22:03 Please hold. Oct 08 20:24:46 It works but the same thing happens. Oct 08 20:26:03 I have a question. How would I get the print statement to make me understand that both motors, in theory, are producing the same timing and direction? Oct 08 20:27:42 https://pastebin.com/emuunSLi Oct 08 20:28:32 set_ have a look at the post Oct 08 20:28:40 Okay. Oct 08 20:29:53 the middle parameter I believe determines what direction to move. So if you want the reverse use your counterclockwise value Oct 08 20:29:59 Right! Oct 08 20:30:06 Right, 2. Oct 08 20:30:10 CCW is 2. Oct 08 20:30:15 yep Oct 08 20:30:19 I ran it. It works. Oct 08 20:30:35 Now, to test it with the machine. Oct 08 20:30:55 you might be able to use a single function and just pass the direction and use the same code Oct 08 20:31:12 Okay. Oct 08 20:31:34 So, I can write another class and in a separate file? Oct 08 20:31:44 yep Oct 08 20:31:48 Otay! Oct 08 20:32:16 Hey, I ran this info. but I still need to test the software on the MBC, BBB, and motors. Oct 08 20:33:08 I have to go now but it been nice chatting with you. I would try and see if I can look in sometime tomorrow evening. my email is onio@gmail.com Oct 08 20:33:17 sorry oniola@gmail.com Oct 08 20:34:15 Okay. I will get with you. Oct 08 20:34:20 ...later for now. Oct 08 20:34:23 bye Oct 08 20:34:27 Bye for now! Oct 08 20:45:01 And then quite suddenly the sun set_ Oct 08 20:45:13 I got morning dew! Oct 08 20:45:18 Hhaahah. Oct 08 20:46:09 I feel an hour break ahead of me. Enjoy! Oct 08 20:47:56 If you are concerned about timing I assume you are using stepper motors? Those can be tricky they have a synchronization pulse on those often just to detect when it looses a step. Oct 08 21:18:57 uhh, what's the point of time.sleep(0) ? Oct 08 21:50:34 hey... Oct 08 21:51:07 I am thinking this is true: time.sleep(0) has no point b/c it is registered at (0) for now. Oct 08 21:51:21 But, in the future, it will change (most likely). Oct 08 21:52:20 So, I might put time.sleep(0) at another value. Oct 08 21:52:38 Say, time.sleep(150) or so. Who knows? Oct 08 21:53:04 I might need to work on my machine and have it take a break. Oct 08 21:53:50 GenTooMan: I am using geard motors. I am timing the amount of time it takes for the motors with the platform to reach a specific part of my yard. Oct 08 21:55:25 So, if 50 print statements only gets my 1/4th the way there, I will need 200 print statements from for i in range(1, 201). Oct 08 21:55:56 ............ Oct 08 21:56:00 Yes? Oct 08 21:56:23 ehm, why on earth would you use print statements as a form of delay? instead of, say, time.sleep ? :P Oct 08 21:58:32 B/C, I like to think of my statements as a timing mech. So, if I know down the road, say my 45' of yard, that it took my BBB for i in range(xxxx, xxxx), then I would know that at a specific part of my yard is where it needs to make the u-turn. Oct 08 21:58:53 ... Oct 08 21:59:02 For fun for now! What would you suggest? Oct 08 21:59:41 I plan to cut out the print statement soon. Once I know how long it takes to reach the end of my yard. Oct 08 22:00:18 This is w/out control. This is just by running software and the yard is done. Oct 08 22:01:15 Well, I may have to trim grass with a grass trimmer. This is the start of a larger machine. Oct 08 22:01:53 ... Oct 08 22:02:31 I don't think I really understood much of what you just said, nor do I have the impression I received an explanation of why on earth you would use print statements as a way to time things instead of using time as a way to time thing :P Oct 08 22:02:43 *things Oct 08 22:02:44 Okay. Oct 08 22:02:46 ... Oct 08 22:02:59 especially since the timing of print statements is probably not particularly reliable Oct 08 22:03:46 I would not use the printStatement as a time delay in software. This is just a way for me to test "for i in range(x, xxx) to make sure my software keeps running while I go through trails. Oct 08 22:03:51 sorry. Trials. Oct 08 22:04:43 maybe I just shouldn't try to understand Oct 08 22:05:08 Hey look, I could be proven wrong about my theory. I understand this fact. But yet, I know my motors must run, the software must be run and working, and the machine must cut. Oct 08 22:05:09 ... Oct 08 22:06:15 i do not care if I have to write 125 lines for one yard. It will be done once I get the 125 lines completed in the software. Oct 08 22:07:01 That is all. Oct 08 22:17:21 a BBB controlled lawn mower, what could possibly go wrong... :) Oct 08 22:17:30 Yea boy! Oct 08 22:18:14 vagrantc: Do you get what I am saying to zmatt about the math associated with the software and the timing issues of the geared motors around environments? Oct 08 22:18:24 "sorry fluffy got in the way of my test run..." Oct 08 22:18:31 if we never hear from you again... well I'd offer to send flowers, but they'd probably get chopped down by a bezerk lawnmower Oct 08 22:18:32 Meow! Oct 08 22:18:57 ;) Oct 08 22:19:05 zmatt: That is what I will call it, i.e. "The Berzerker!" Oct 08 22:19:05 set_: no, but i didn't try too hard. :) Oct 08 22:19:21 Okay. Cool beans! Oct 08 22:19:58 Sheesh. Oct 08 22:21:39 a friend of mine once transplanted an arduino onto a rc car, it would locate walls or obstacles and proceed to repeatedly bash itself into them (I don't think that was the design, but it was the end result anyway) Oct 08 22:21:54 ...I am trying to get to math, environment, and Python with a damn swinging blade and some geared motors. "The Berzerker" strikes again! Oct 08 22:22:07 it was called Frank Oct 08 22:22:14 Ha! Oct 08 22:22:20 I will take my time. Oct 08 22:22:49 The blade does not go on while spinning until the end results have been achieved. Oct 08 22:31:50 So, area is one mathmatical equation to look at. If I know the area of so many different parts of different yards, I can then take this into account when performing my reasoning with the software. Oct 08 22:31:53 And yes... Oct 08 22:32:07 I said, "reasoning with the software." Oct 08 22:34:25 don't try to reason with it, just beat it with a stick until it complies Oct 08 22:34:38 in the military, they call it time x reasoning Oct 08 22:35:06 Compiles or complies? Oct 08 22:36:32 Ooh! All jokes aside, I am going to pursue this idea and stay on track with it in time. I could learn a lot of valuable math, statistics, and/or software theory. Oct 08 22:36:54 or die. i could die. Oct 08 22:36:56 Who knows? Oct 08 23:21:57 set_, use a single print statement, and then delay as much as you need in the normal fashion. Oct 08 23:29:50 Okay. Oct 08 23:38:18 Hey Kitlith: I want to test out the software onio told me about for my Motor Bridge Cape first. Oct 08 23:38:43 I will listen but only after I run this software. Oh and Kitlith: I am cutting out the print statements in the end. Oct 08 23:39:59 yes, that still doesn't mean that 200 print statements is a good way to create a delay. One will tell you what you need to know, two if you want to know when you're done waiting. Oct 08 23:40:57 and you can do a perfectly normal delay inbetween, meaning that when you're done all you have to do is remove your two little print statements and you're done. Oct 08 23:43:38 Okay. Oct 08 23:44:33 I do not need delays. I just want to know how many times that part of the software runs before I reach my first mark in the yard. Oct 08 23:45:48 uhh, why is that distance measured in loop iterations instead of in time? Oct 08 23:46:15 wait, so, okay. one sec. Oct 08 23:46:23 My ideas is this: My geared motors run so many times per a certain length of measurement. Oct 08 23:46:50 What was the bit about needing 200 prints to create enough delay? Oct 08 23:47:02 but if I understand correctly your code just turns the motors on and off? Oct 08 23:47:13 If I was to find out this specific measurement of length my machine moves while that part of the software runs, I can then add other software to suit my needs. Oct 08 23:47:14 ... Oct 08 23:47:24 I think someone was speaking for me instead of asking me questions. Oct 08 23:47:35 because that's what I was addressing, not how many times your software was running. Oct 08 23:48:05 " So, if 50 print statements only gets my 1/4th the way there, I will need 200 print statements from for i in range(1, 201)." Oct 08 23:48:16 set_: it still sounds to me like you'd want to turn the motors on, and after a certain amount of time has passed, turn them off again. Oct 08 23:48:34 length x motor revolution = my software Oct 08 23:48:35 set_: (this doesn't preclude other stuff being done at the same time) Oct 08 23:49:34 No KitLith: I want to test for length x revolution is what... Oct 08 23:49:47 Specifically, in my own yard. Oct 08 23:49:50 okay I'm back to thinking I'm better off by not trying to understand Oct 08 23:50:10 I should probably try to catch some sleep anyway Oct 08 23:50:40 Hey fellows/ladies/whatever, I am about to test the software. Can you both please just wait? Oct 08 23:51:08 I want to find out what the other fellow knew about the Library and the Python language versus what I was doing. Oct 08 23:51:10 okay. so, you're trying to count the number of loop iterations per revolution? Oct 08 23:51:32 by using a print statement inside of the loop? Oct 08 23:51:54 Basically but in a specific amount of time or length of a front yard. Oct 08 23:51:55 No. Oct 08 23:52:01 Not with the print statement. Oct 08 23:53:12 The print statement is just to test to see if my software runs on my system and for how many times. Oct 08 23:54:12 I already took it out of the software. I will put it back in to test the software with respect to what I can conclude for the length of this software/hardware testing. Oct 08 23:54:19 okay. I think I understand what you're doing, it wasn't clear from that other statement. Oct 08 23:54:38 (which sounded like delaying by using prints) Oct 08 23:54:46 I was confused by the way things were being asked. It was like people were saying thing instead of asking. Oct 08 23:54:56 No, that is not my need. Oct 08 23:55:08 yeah, got that now Oct 08 23:55:37 My main concern is that both motors run in the same speed for the alloted amount of time. Oct 08 23:57:44 For instance: I have a 45' by 9" mowing capacity. 45' is the length of the yard and 9" is my blade width. I need my motors to run side by side without speed reduction or speed acceleration. Oct 08 23:57:45 ... Oct 08 23:58:02 One needs to keep up with the other and vice versa. Oct 08 23:58:28 without feedback? good luck with that :) Oct 08 23:58:58 I know. I am going to time it and make notes. Oct 08 23:58:58 especially on a non-ideal surface Oct 08 23:59:07 That is the issue so far. Oct 08 23:59:31 Hopefully, I can get a couple of stronger motors one day and some heavier tires. Oct 08 23:59:48 ... Oct 09 00:00:30 In the end, i would like a system. A system like John Deer has with their autonomous Farm Tractors. Oct 09 00:01:21 I could always yell at someone and tell them, "Cut your own damn grass!" This would have me washing dishes for life! Oct 09 00:01:22 No! Oct 09 00:17:39 ... Oct 09 00:23:51 Well, the software at https://pastebin.com/jF57pEXb does not work as well as https://pastebin.com/1ggAVzcs. Oct 09 00:24:51 The second PasteBin.com paste works forward while the first paste only turns at 90 degrees and backtracks to 0 degrees. Oct 09 00:26:02 "onio" knew what he was saying but does not have the hardware. He was mistaken. Back to the old drawing board. Oct 09 00:26:55 ... Oct 09 00:48:04 set_: for your own sake you may want to add a method to pick up your gear motor rotations and have a timer to match that. Also maybe a IMS (Inertial Measurement System) tossed in. They make those for all sorts of things. That could give you a crude idea of position in your turf. The IMS would help you the most I suspect. Oct 09 00:51:57 Okay. Oct 09 00:52:04 Thank you for your feedback. Oct 09 00:52:18 IMS? I will look into it. Oct 09 00:57:02 They use that stuff to drill on the Moon. I am pretty sure my yard does not need a Mars Rover or maybe... Oct 09 00:57:07 Yea boy! IMS! Oct 09 00:57:34 Who knows...I will have to read more about it to know anything about it. Oct 09 01:06:04 Is that the black box on airplanes? Oct 09 01:27:39 there's probably one in your phone too Oct 09 01:27:54 it sounds fancier than it is :P Oct 09 01:31:10 in practice, it's just one chip you connect to i2c or spi Oct 09 01:31:10 Oh. Gyroscope? Oct 09 01:31:39 yeah gyra + accelerometer (+ compass maybe) + some processing logic Oct 09 01:31:59 aw. Sounds fancy. Oct 09 01:32:14 Hey zmatt: Do you mess with XBee stuff? Oct 09 01:37:11 don't think I recognize the name Oct 09 01:44:26 btw the better search term seems to be Inertial Measurement Unit (IMU). two examples are MPU-9250 and BNO055 Oct 09 01:50:58 I saw the MPU-9250. Small bite-size thing... Oct 09 01:51:11 nom nom Oct 09 01:51:21 I do not need to make it more complicated yet. Oct 09 01:52:38 I have been trying examples on Digi for their XBee Modules with some Grove Development Boards. Oct 09 01:52:45 The IDEs suck ass. Oct 09 01:52:50 note: some breakout modules for the MPU-9250 only offer the i2c interface... that's kinda sucky since iirc its spi interface is many many times faster Oct 09 01:53:03 Oh. Oct 09 01:53:13 or maybe it doesn't matter Oct 09 01:53:27 Not to me, not right now. Oct 09 01:54:08 I have been trying Eclipse and NetBeans for some IDEs because they offer Java support. Oct 09 01:54:15 ew Oct 09 01:54:34 I can make the XBee communicate via BBB but not on the XCTU with the IDEs. Oct 09 01:54:37 I am beat. Oct 09 01:54:54 why do you want Java? Oct 09 01:55:21 I do not want Java. I am just following some examples because...blah! Oct 09 01:55:49 The examples are easy to understand but they do not work for some reason. Oct 09 01:55:59 ... Oct 09 01:56:12 Oh well. Oct 09 01:56:18 who doesn't love java! :D http://harmful.cat-v.org/Blog/2009/08/05/0-java-factory/ Oct 09 01:58:10 I got the PIR sensor to work. Now, I will know if that damn cat catches me in the shower and stares. Oct 09 01:58:44 Those PIR sensors, for only having three wires, are a bit complicated. Oct 09 01:58:58 trying to outsmart a cat sounds like a hazardous thing to do Oct 09 01:59:11 ;) Oct 09 02:00:18 Yep. Oct 09 02:15:59 set_: you can get IMS subsystems for cheap so no big deal some of the BBB variants come with IMS parts. IE accelerometer, gyroscope and magnetometer. Oct 09 02:16:27 Oh. Oct 09 02:16:29 Okay. Oct 09 02:19:16 Bosch makes a set that is an ARM processor that goes with all those components that does IMS calculations and is calibrated however that might require some effort to use. I still am investigating it. Oct 09 02:19:56 Anyhow they are almost off the shelf with all the drones being made these days. Oct 09 02:28:38 I want to focus on the software for now. I have to get the motors to both run simultaneously. Oct 09 02:29:20 I listened to someone else earlier today and it jacked up what I had previously accomplished. Oct 09 02:30:24 I see why version control is so important. Oct 09 02:31:05 Hey GenTooMan: Have you heard of the Green-Bean? Oct 09 02:31:22 It is a Module to handle specific GE Appliances. Oct 09 02:32:00 You can plug it directly into the BBB via USB. Oct 09 02:32:53 I downloaded the library via npm, too. Oct 09 02:34:17 Look here: https://github.com/GEMakers/green-bean and/or https://github.com/FirstBuild/green-bean. **** ENDING LOGGING AT Mon Oct 09 03:00:00 2017