**** BEGIN LOGGING AT Wed Feb 03 02:59:57 2021 Feb 03 02:59:59 Anyway, learning about how to write functions and slowly. read dear enthusiasts, read. Feb 03 03:00:35 you know how to write functions Feb 03 03:02:26 So but not really well. Feb 03 03:02:35 Not like major function writers. Feb 03 03:02:55 There are so many different ways to produce functions. Feb 03 03:03:19 are you using python? are you using python classes? Feb 03 03:03:47 And it seems while i have been sleeping, and a lot, someone came up w/ algorithms that write themselves. Blah. Feb 03 03:03:50 Python. Yes. Feb 03 03:04:12 Python Classes. Yes. Feb 03 03:04:38 Yes Yes or double yes. Either/or really. Feb 03 03:05:18 Like w/ C++ having templates, algorithms are just that idea for all sorts of languages. Feb 03 03:05:41 I get so upset. People already have mastered items of interest in programming and they only give tidbits. Feb 03 03:06:54 For instance, "I have an algorithm." It is nothing fancy but guess what? Yes! Someone already one'd better me on it. Feb 03 03:07:09 so Feb 03 03:07:14 use it and move on Feb 03 03:07:28 It is hard on a little brother like me that has to do everything and not have cohorts. Feb 03 03:07:53 You know...mingle and meander in the mindset? Feb 03 03:08:35 Speaking of programming is not talking in the language of Python. It is mearly looking in from the outside. Guys, am I an outsider? Feb 03 03:09:39 If so, fine. If not, good. Thank you all for playing along. I really appreciate it, e.g. even though my typing skills are not perfect for discussing Python or electronics. Feb 03 03:10:07 My hands only type in a specific manner. Anyway, back to reading! Feb 03 03:12:11 So, def y(v0, t): is a function! Feb 03 03:12:15 Nice. Feb 03 03:12:37 Then, I can return whatever and then call that function later in my source. Feb 03 03:13:06 I would be returning y basically, right? Feb 03 03:15:26 So, the function stores the info. for later use. Feb 03 03:15:28 Got it. Feb 03 03:16:28 In my case, the 'y' is my definition of the function and this includes the return statement. Feb 03 03:19:41 In Python anyway...the first call to some info. is for storage only for later use. Feb 03 03:19:55 Calming down now... Feb 03 03:21:30 so what you want is to add a function or property to your "thing" that handles something. So next define what the something is. Feb 03 03:21:55 also breath in wait 5 seconds breath out wait 5 seconds when you brain goes all over. Feb 03 03:24:25 Right. Feb 03 03:24:50 you don't have a reset button but you can get enough oxygen to calm down some :D Feb 03 03:25:11 Right. Too much activity and no reading makes me a dull boy. Feb 03 03:25:44 "Now, if you get made...just count to 10. Then, break your TV." Feb 03 03:25:46 Ha. Feb 03 03:25:55 made equal mad. Blah. Feb 03 03:26:29 So, GenTooMan, something like this for the function? Feb 03 03:26:37 Oh. Wait for the paste. Feb 03 03:28:15 Forget it. Feb 03 03:28:30 I cannot do it for some reason. I will try and show you anyway. Feb 03 03:30:44 https://pastebin.com/hX4T6fGg Feb 03 03:31:09 And maybe i can add that in later during a call for altering the dir_pin? Feb 03 03:34:21 W/ that source from here, https://pastebin.com/FrfRpGPw and w/ alterations, I was thinking I could add something similar in to make the GPIO line go low quickly when the server button gets clicked by the mouse at the numerical value '0'. Feb 03 03:34:35 Does that sound like it would be a shot in the dark or is that it? Feb 03 03:35:28 I was going to try keys next b/c the mouse and buttons online has been done to death. Feb 03 03:38:23 Whelp, I will try it now! Feb 03 03:39:37 Booting! Feb 03 03:39:39 what is motor1 parameter supposed to be? speed? direction hand waving a flag? Feb 03 03:39:47 Ha. Feb 03 03:40:04 Both. GPIO.output and PWM.freq and PWM.duty_cycle. Feb 03 03:40:15 Let me show you. Feb 03 03:40:44 motor1 = Motor(dir_pin="P8_18", pwm_pin="P9_16", pwm_freq=1000) Feb 03 03:41:10 dir_pin is the GPIO... Feb 03 03:42:48 so how would motor1 be zero? Feb 03 03:42:55 it's an object Feb 03 03:43:24 add_motors_routeOne('0', 0) Feb 03 03:43:55 @zmatt handed me this when I was continuously being repetitive. Feb 03 03:44:17 In source, I was repeating a lot. Frown face and all that mess. Feb 03 03:44:54 Let me show you what I have tried versus what fails for now. Feb 03 03:45:18 I obviously changed it. Feb 03 03:45:28 That is why it does not work the way he intended. Feb 03 03:45:31 right paste the entire source this time Feb 03 03:45:36 Right. Feb 03 03:45:37 Okay. Feb 03 03:45:46 then write in a comment that says Feb 03 03:45:52 Gotcha. Feb 03 03:50:53 https://pastebin.com/85YFMxAG <<< This has a comment at line 59. Feb 03 03:52:16 I used to get an error of sysfs entries but now it is an odd assertion = 0 error which means that my server cannot handle multiple values of source equaling '0'. Feb 03 03:52:26 Let me run it again to get the exact error. Feb 03 03:53:26 AssertionError: View function mapping is overwriting an existing endpoint function: 0 <<< This is the error. I will retype some source to test real quickly. Feb 03 03:58:04 so set some simplifying code you want to stop a motor (IE the object that's a motor) how do you do it? Feb 03 03:58:54 in your code you take a specific pin that the motor was allocated and you execute PWM.stop( Feb 03 04:02:03 Right. Did you see where I applied that technique? Feb 03 04:02:15 I put a comment next to it. Feb 03 04:02:26 So, I should not use GPIO to call it low? Feb 03 04:03:31 I made it work b/c GPIO.HIGH w/ Adafruit_BBIO.GPIO allows the driver to turn on. Then, the PWM is second in rotation here. Feb 03 04:04:13 I figured I would stop the pin(s) in question to not have to use PWM at all when stopping. Feb 03 04:04:26 I guess I can make a function w/ that call in it. Feb 03 04:05:55 WHen I run one motor, it works like a charm. No issues. When I run four motors, motorONE handles all my actions to the actuator w/ that specific source for some reason. I have not figured out why just yet. Feb 03 04:06:36 So, I control motorOne and motorOne, the object, runs, reverses, and stops. Feb 03 04:07:16 I then proceed to control motorFour, say, and motorOne runs instead. I have broken up the source many times to try to get things isolated. Feb 03 04:07:31 hmm check this https://pastebin.com/EUb4dzrG Feb 03 04:08:15 Right. dir_pin is GPIO. Feb 03 04:08:42 it stands for direction but it is a switch on/off. Feb 03 04:08:44 see little stop thing you can do something like Motor1.stop() without knowing the GPIO pin Feb 03 04:08:52 Aw. Feb 03 04:09:42 starting line 24 in my paste. my python is crusty however. Feb 03 04:10:55 https://pastebin.com/XiYhAaNV <<< Feb 03 04:11:12 No issue. I am no genius w/ computers. I take in anything. Feb 03 04:11:22 All info. is relative. Feb 03 04:12:18 That works w/ one motor or motor1 or v1 or add_motors_routeOne('0', 0) Feb 03 04:13:33 * GenTooMan kind of sighs and rewrites the function to make better sense. Feb 03 04:13:38 But...the issue is when multiple motors are in question w/ the server, the error arose that states multiples of numerical values are creating an assertionerror. Feb 03 04:13:39 Ha. Feb 03 04:15:13 I know this is not complicated but futuristic approaches are making my small duty here a task. B/c if a server cancels b/c of a motor on or off and I cannot fix it, I feel doody and not duty. Feb 03 04:18:08 well this is more apropos https://pastebin.com/8KTYqK99 Feb 03 04:19:08 I have not learned that yet. Feb 03 04:19:12 Off to look. Feb 03 04:19:46 I have viewed aproos briefly only. Feb 03 04:19:54 dang it. apropos. Feb 03 04:22:53 Well, one motor works. This is a start. Now, if what makes the first object work only worked on the other three objects, I would be in like flint. Feb 03 04:25:58 Every, single time I place a '0' in objectOne for the server and a '0' in objectTwo for the server, the server quits. Anyway...I will attempt to use that source if it is okay w/ you. Feb 03 04:27:09 Actually it's better to tell the object to stop then to stop the object my first instance of code. However one step at a time. You are likely getting an error with your stop code because dir_pin in your function is type none Feb 03 04:27:52 https://pastebin.com/DHEu3VaX is that exact issue. Feb 03 04:28:13 Damn. It is 10:30. Feb 03 04:28:38 Time flies when trying to make sense of the ole 'puter. Feb 03 04:36:50 My motors work now and one cries momma! Feb 03 04:37:01 Like an echo! Feb 03 04:37:03 why are you comparing the function to 0? should it not be the parameter v1 instead? Feb 03 04:37:33 v1 is there and I have not found out why. Feb 03 04:37:40 I have not made it that far just yet. Feb 03 04:38:37 So, you think i should put something along the lines like >>> if v1 == 0: <<< ? Feb 03 04:39:30 Now, why is the motor GenTooMan told me to take apart crying momma? Feb 03 04:39:44 But only in reverse. Ha. Feb 03 04:40:06 Sorry. I got excited again. Feb 03 04:40:11 Ok you are getting an error because you are comparing the function (which is an object) to 0 which is probably undefined. Feb 03 04:40:25 Right. Okay. You are right. Feb 03 04:40:39 it is undefined but why does Python not understand it? Feb 03 04:40:55 It is telling me to look at the numerical value 0! Feb 03 04:41:10 change "if add_motors_routeOne == 0:" to "if v1 == 0:" and see if it blows up Feb 03 04:41:29 Ha. Fine. You are upset. I will call it a night. Feb 03 04:41:33 Gosh. Feb 03 04:41:51 * GenTooMan hehs? Feb 03 04:42:17 I got it to work w/ my sorry excuse for a function handling a GPIO pin and w/out error. Feb 03 04:42:50 W/ that paste I showed first off...it works. Feb 03 04:43:06 I just put it in the class. Feb 03 04:43:30 Now, one and four objects cry and purr. Feb 03 04:44:05 * set_ thought you were upset w/ the 'see if it blows up' comment! Feb 03 04:45:13 I will try v1 == 0: Feb 03 04:45:17 Fine. Feb 03 04:45:24 But first things first! Feb 03 04:51:41 so, v1 == 0: outside of the class? Feb 03 04:55:39 nope. Feb 03 04:55:48 Outside no guci. Feb 03 04:56:00 I will try inside. Feb 03 04:57:09 * GenTooMan merely works on looking less confused. Feb 03 04:57:21 Sorry. no good. Feb 03 04:57:35 Outside of the class does not work w/ v1 == 0: Feb 03 04:58:34 what does it do? Feb 03 04:58:42 First does it throw the error. Feb 03 04:58:58 * GenTooMan throws set_ an error. Feb 03 04:59:22 Let me check. Feb 03 04:59:24 Please hold. Feb 03 05:00:40 Confused. Me. I am confused. You want me to go against my solution to suit what needs? Let me code it. Please hold. Feb 03 05:03:26 Anyway, now nothing works. Feb 03 05:03:29 Dang it. Feb 03 05:04:31 it should be in function add_motors_routeOne <-- Feb 03 05:04:37 Okay. Feb 03 05:04:38 Okay. Feb 03 05:04:41 Hhahahah. Feb 03 05:04:53 It does not work there. Feb 03 05:05:01 just change that one line if add_motors_routeOne == 0 to if v1 == 0: Feb 03 05:05:08 Fine. Feb 03 05:05:12 Please hold. Feb 03 05:05:26 * GenTooMan head scratches and has no idea what you did or didn't do obviously. Feb 03 05:07:07 I know. Feb 03 05:07:21 I am chatting to myself thinking people are playin' me for a foo! Feb 03 05:07:35 Is that smarter than the average bear? Feb 03 05:09:41 I've heard that saying but no idea from whence it comes, must be a TV thing. Feb 03 05:11:27 TV! Feb 03 05:11:38 Okay, so, back to reality here. Feb 03 05:12:12 Where do I need to place this source you are describing? You do not need to type it up or tell me. Just think about it. Feb 03 05:12:39 GPIO or PWM here? Feb 03 05:14:45 function add_motors_routeOne line that says if add_motors_routeOne == 0: Feb 03 05:15:28 Okay. Feb 03 05:15:34 It was my server. Feb 03 05:15:55 I forgot a '/' and instead I put ''. Feb 03 05:16:10 I am trying your way anyway. Please hold. Feb 03 05:16:54 v1 is not defined. Feb 03 05:17:12 That is w/ PWM and not GPIO as a stopping method. Feb 03 05:17:53 Now, since v1 is not defined, I can define it. Feb 03 05:18:12 umm it is and is defined in that function as a parameter Feb 03 05:18:19 * GenTooMan whaps. Feb 03 05:18:42 read the parameters Feb 03 05:18:46 But, the stopping power of the GPIO pin going low cancels out any pwm pulses that will exist before they happen on the motor. Feb 03 05:19:02 It is the dir_pin. Feb 03 05:19:37 I read them. I see it. Feb 03 05:19:46 this is why you get confused, focus on the small things first. For example you are changing 1 function. only. Feb 03 05:20:09 and 1 line only. then testing. Feb 03 05:20:14 Okay. Feb 03 05:20:24 I kept changing things I could remember only. Feb 03 05:20:26 You are right. Feb 03 05:22:26 I am working w/ a server too. So, things that change in the soure on the .py file need to be adapted to the server in HTML. Feb 03 05:24:51 right you are using floss I mean flax, I mean flask. So basically what you are changing has nothing to do with the HTML and flask as far as I can tell. Feb 03 05:27:07 Right. But, my numbers need to be kosher w/ the server in html as well as the numbers from the .py file. Feb 03 05:27:18 My numbers are what drive this motor contraption so far. Feb 03 05:28:31 GenTooMan: I know you are only trying to be helpful but I cannot help you help me right now for some reason. Feb 03 05:28:34 Please forgive me. Feb 03 05:29:00 umm just edit the one line and see if it works you aren't changing any numbers last I checked. Feb 03 05:29:11 I have gone silly in my fingers and the 'puter is not replying to my commands in the form of a .py file that nicely. Feb 03 05:29:17 Fine. Feb 03 05:29:21 Please hold. Feb 03 05:29:30 * GenTooMan holds his BBB at set_. Feb 03 05:33:38 Ha. Feb 03 05:33:43 My motor broked. Feb 03 05:33:47 Ha. Feb 03 05:34:16 The extention pole done run a GND. Feb 03 05:34:46 hmm otay that suckatash's Feb 03 05:34:50 * set_ shakes furiously at the sight of coding for now. I need sleep Feb 03 05:34:59 and sleep I shall! Feb 03 05:35:00 cough. Feb 03 05:35:21 can you see me cough? Feb 03 05:35:36 B/c I laughed hard enough to know i have backup! Feb 03 05:35:59 Dos mas veces! Feb 03 05:36:35 I am afraid of you. Feb 03 05:36:43 You are the daemon in disguise. Feb 03 05:37:10 just be sure to floss after eating. Feb 03 05:37:14 I cannot hold it together any longer. Hahahha. Feb 03 05:37:24 Okay. Okay. Flossing. Got it. Feb 03 05:37:41 Prime time...this is after hours. Feb 03 05:38:17 btw can anyone tell about any beginner project to start with? Feb 03 05:39:52 * set_ cannot b/c I am a beginner every day. Sleep time for me. Feb 03 05:39:54 I suggest blinking a light, zmatt did respond to you but you had disappeared first Feb 03 05:40:00 Sorry GenTooMan. Feb 03 05:40:18 night... tired too. Feb 03 05:40:25 sorry i didnt knew how to use this irc Feb 03 05:40:42 its first time experince.so odd. Feb 03 05:42:15 I wouldn't worry about it everyone who uses IRC had to start somewhere and sometime. Feb 03 05:42:29 GenTooMan i  did couple of such with adruino so, still should i consider doing it or something else to begin open source. Feb 03 05:44:28 sorry zmatt i couldnt see your reply. Feb 03 05:49:34 well he just said "argh" so I suppose you didn't miss much. He probably had typed something up. also you should see the topic for references. Feb 03 05:50:37 remember people are all over the world so they are awake at different times relative to you. For example some at GMT+6 some are GMT-13 etc. Feb 03 05:51:38 oh !! yah i forgot that. Feb 03 05:52:24 i can only see yours and _set texts not his. Feb 03 05:54:06 some places have logs of the conversation. ##C ##C++-basic ##C++-general #kicad I think have logs of chat. Feb 03 05:54:15 might be one for here too. Feb 03 05:57:42 iam still not getting this irc thing , i think i will have to google it or ask someone Feb 03 05:58:15 hmm https://freenode.net/ Feb 03 05:58:32 :D Feb 03 05:58:42 thanks ill go through. Feb 03 06:02:01 well in any case I suggest when you ask a question you leave the thing open for a couple hours. IE a computer no one else will touch et al and type in your question then wait for a response. As I said people are up at all sorts of times relative to you. Feb 03 06:02:55 it's best to have an IRC client and your own machine for that but you can use web chat also. Feb 03 06:03:26 I assume you are using webchat like https://webchat.freenode.net/ Feb 03 06:03:36 irc client ? Feb 03 06:05:08 it's a application specifically designed to connect to IRC servers. like a web browser is used to read web sites. Feb 03 06:06:11 ohh ? every thing new to me, thanks i didnt such apps exist too. Feb 03 06:09:54 well anyhow it takes a bit of time for people to respond. They may be at work asleep, letting the dog out, doing woodworking. etc. :D Feb 03 06:10:45 haha ,ok ill next time buy little bit of patiences . Feb 03 06:11:18 anyhow what are the projects and dev.you all guys are working on.? Feb 03 06:13:59 set_ is trying to get a robot working I'm making a interface board for several different LCDs umm all over the place. Zmatt uses the BBB (Beagle Bone Black) for his day job. Feb 03 06:15:21 OH really awesome making interface for diff. screen really fascinating Feb 03 06:15:45 how are you going to do it? Feb 03 06:16:18 * GenTooMan points to #kicad, "do my own PCB using an EDA tool?" Feb 03 06:19:57 i dont know why but i am not able to send text here #kicad. Feb 03 06:20:30 hmm well you would have to join that channel. you are using a web client correct? Feb 03 06:21:02 iam using this freenode thing Feb 03 06:21:44 so you are using https://webchat.freenode.net/ and you joined someplace you could I believe #kicad requires you to use a registered name. Feb 03 06:22:20 yah that one. Feb 03 06:22:59 registered name  how can i get it done? Feb 03 06:26:46 hmm looks like the thing eats /help on the web toy. Feb 03 06:29:24 you need to register your nick so people can't represent you without permission. It was an age old problem on IRC and likely still is. Feb 03 06:31:43 however it doesn't appear the web client will allow you to do that bleah. Feb 03 06:34:47 ok it thank you.ill go on registering and askingXD '=D Feb 03 12:39:55 hello. does the power supply/regulator of bb black not handle input voltage greater than 5V? i tried to use 12V 1A power adaptor into the barrel jack and my board does not power up. But it does when powered through usb. i dont have 5V power adaptor now to test... Feb 03 12:43:07 5V only Feb 03 12:43:25 you're lucky you didn't fry it Feb 03 12:49:55 @mru yea really lucky. board came with 12v adaptor. when the board isnt powering up with, i asked the seller if he had used it to power the board. he said no,only thru usb. lol. thanks for the response! Feb 03 12:50:29 there's some kind of overvoltage protection circuit on there Feb 03 15:10:48 m Feb 03 16:39:18 Hi, so I'm trying to import a TFlite model using the TIDL import tool and I encountered an error as follows: Feb 03 16:39:19 Only float and DT_INT32 tensor is suported Feb 03 16:39:19 TIDL limitation: TFLite operator CONV_2D cannot be mapped to a TIDL layer. Feb 03 16:39:20 TFlite operator MAXIMUM is not suported now.. By passing Feb 03 16:39:20 However, here https://software-dl.ti.com/processor-sdk-linux/esd/docs/latest/linux/Foundational_Components/Machine_Learning/tidl.html#neural-network-layers-supported-by-tidl it says that CONV_2D is supported for Tflite models - i'm not sure why this is happening - any help? Feb 03 17:51:17 mru: yeah the pmic has overvoltage protection Feb 03 17:52:30 within reason Feb 03 17:52:46 I bet it won't survive the house mains Feb 03 18:05:28 yeah, abs max 20V Feb 03 18:07:10 a while ago I plugged in a board I'd made some time before, and nothing happened Feb 03 18:07:19 checked the power supply... yep, it's 12 V Feb 03 18:07:27 oh wait, that board takes 5 V Feb 03 18:07:44 and that's why you include overvoltage protection Feb 03 18:53:08 I've given the bbb 24VDC temporarily, by accident. Once blew up a cape that was on it, but the BBB itself survived. Feb 03 21:31:08 i can say with some confidence a pocketbeagle is not able to handle ~26.7V Feb 03 21:36:04 well they have the same pmic so that will have been up to luck Feb 03 21:49:17 oh I misread, never mind Feb 03 21:49:31 yeah these data points are consistent with the spec :P Feb 03 21:50:47 outrageous: except that that cape should probably have used sys_5v (the system supply rail from the pmic), not vdd_5v (which ties directly to the barrel jack and is primarily meant for powering the beaglebone from a cape) Feb 04 02:23:49 GenTooMan: Sorry for the excursion from last night. I failed you and your instruction. Feb 04 02:23:57 Anyway, I will attempt it again soon. Feb 04 03:02:07 For anyone interested in 3D Printing and Violins: https://openfabpdx.com/product/modular-fiddle-printed-parts-kit/. I think the fellows at the BELA Cape may respect this project. **** ENDING LOGGING AT Thu Feb 04 03:02:57 2021