**** BEGIN LOGGING AT Sat Oct 07 03:00:00 2017 Oct 07 03:37:34 Hello... Oct 07 03:38:03 Why would I need a resistor for this software on the BBB: https://pastebin.com/m1pL6wUu? Oct 07 03:38:24 I am powering it with a 5v jack. Oct 07 03:44:10 It is for the PIR Sensor on the BBB.io site. Oct 07 03:46:38 ... Oct 07 03:46:46 I cut out the LED on the example. Oct 07 05:07:04 huh? Oct 07 05:57:37 hi Oct 07 05:57:58 anybody help to program PRU using c language Oct 07 16:42:10 I'm thinking of running QEMU for a while before deploying to BBB, then again fear that the real HW is going to different. Anything you guys noted while running qemu? Especially around ALSA Oct 07 16:45:08 I'd never run on qemu unless it's something completely hardware independent Oct 07 16:47:06 samuraj78->samuraj Oct 07 16:48:28 Yeah, I have bad experience with emulator even for the most simplest things Oct 07 17:11:01 then don't Oct 07 17:58:17 hi Oct 07 17:58:21 anyone here ? Oct 07 17:58:37 nope, almost 200 people are a bloody illusion. Oct 07 17:58:38 http://www.catb.org/esr/faqs/smart-questions.html Oct 07 17:58:51 sorry not coming too often here Oct 07 17:59:26 interested to buy a powerfull board with the possibility to connect a 10tb hdd and run android on it Oct 07 18:00:08 look elsewhere Oct 07 18:00:28 quick and easy :) Oct 07 18:00:41 the x15 probably qualifies? Oct 07 18:01:41 I bet there was an unstated requirement of "cheap" Oct 07 18:02:41 we'll never know I guess Oct 07 18:03:14 seemed a bit excessive to say "look elsewhere" right from the start though Oct 07 18:04:29 well, "powerful" (one A8?) and "android" (what 4.x TI patch thingo?) pretty much ruled it out Oct 07 18:04:48 uhh, x15, not bbb Oct 07 18:05:20 ah, yeah, that would have cores. Is there some android adaptation for it? Oct 07 18:05:48 I believe there are andriod adaptations to all beagle boards. Oct 07 18:06:03 Except the original :D Oct 07 18:06:14 are you sure? Oct 07 18:06:28 TI officially supports Android on AM572x Oct 07 18:06:55 I'm pretty sure 0xrowboat or whatever it was supported OMAP3 Oct 07 18:07:13 (Marshmellow) Oct 07 18:07:38 not too bad Oct 07 18:07:39 Yeah Yet Another Stupid Developers Name - what is it with Google and food really. Oct 07 18:07:50 what's wrong with names? Oct 07 18:08:48 anyway, in case anyone cares -> http://software-dl.ti.com/processor-sdk-android/esd/AM57X/latest/index_FDS.html Oct 07 18:09:37 zmatt: Actually names are good but for just the developers, if you aren't a developer they just add confusion, it's hard to acertain WHICH version of Eclipse is the latest for example because they have Mars Neon Oxygen Promethius etc. Instead they should just go by the versioning numbers. Oct 07 18:10:18 if you know your ABCs :) Oct 07 18:10:21 uhh, you look at the first letter Oct 07 18:10:27 yea, that Oct 07 18:12:03 And if you don't know that's what they are doing? Again a layer of obfuscation. You would have to be thinking Eclipse all the time. The perspective is this, the person who is interested in it can't figure out What they need to get in under a minute without inclusive knowledge you failed to understand how to release things to the public, it's that simple. Oct 07 18:12:38 If it's for yourself it's fine. Oct 07 18:13:56 That's all I am saying. Eclipse I didn't use for a while because of that. Then again I am talking 12 years ago but I digress it's not about me. :D Oct 07 18:15:23 of all the reasons to not use eclipse... Oct 07 18:15:28 ;) Oct 07 18:17:35 I can think of worse "it sounds like a looser program" would be the worst :D Oct 07 18:17:58 especially with that misspelling of "loser" Oct 07 18:20:37 ;P Oct 07 20:34:02 That aside I can see why Octavio systems did what they did. For short run small time stuff using the AM3358 is a pain, however shrinking things together and simplifying the design a lot makes it far more practical suddenly. The added cost is worth it just because it cuts the cost of trying the whole thing yourself. Oct 08 01:54:50 Why would I need a resistor for a 5v PIR Sensor if the BBB is plugged in via 5v barrel jack? Oct 08 01:55:00 ... Oct 08 01:56:12 https://beagleboard.org/Support/BoneScript/PIRMotionSensor is where I found this software. Oct 08 01:57:27 I commented out the LED part to the software. Oct 08 01:57:36 because the logic levels are still 3.3v regardless of how it's powered? Oct 08 01:58:05 I am just running a 5v PIR sensor off the BBB without LED notification. Oct 08 01:58:24 Shit...you are right. Oct 08 01:58:30 I knew I forgot. Oct 08 01:58:33 damn it! Oct 08 01:58:41 I could have severely ruined my board. Thank you. Oct 08 01:58:50 haha. don't have any resistors around? Oct 08 01:59:19 or was just about to try it without the resistor because you didn't see why not? Oct 08 01:59:21 No, it is not that. I have them, I even have a 10K ohm resistor, around but I just thought I could run it without the resistor. Oct 08 01:59:28 Right! Oct 08 01:59:32 I thought, "Why not?" Oct 08 01:59:48 I totally forgot about the 3.3v pin stuff. Oct 08 01:59:57 Well, for the digital pins. Oct 08 02:00:21 ... Oct 08 02:00:36 Kitlith: I even ran the software. Oops! Oct 08 02:01:03 I am slow minded at times. I think I was to obessed with another Grove board and got upset. Oct 08 02:01:16 Damn. Off to test my P8_19. Oct 08 02:01:22 heh Oct 08 02:01:25 Yep. Oct 08 02:01:43 I want to make sure I did not burn out that pin. Oct 08 02:02:58 See, this is what I did. I had the 5v plugged into the 5v pin. The ground to the ground and then the Out to P8_19. Oct 08 02:03:08 it's a good idea to do so, but I suspect that if anything was burned out, a fuse or the SoC would've died. Oct 08 02:03:34 Oh. Oct 08 02:03:47 So, my resistors are basically tiny fuses. Oct 08 02:03:47 I can't say that for sure, just my suspicion. Oct 08 02:03:53 I understand. Oct 08 02:04:57 I need some female to male jumper wires. Oct 08 02:04:58 your resistors aren't fuses, they 'resist' current, to help prevent this kind of thing. Oct 08 02:05:32 Aw! They help draw current right. They help bring the current to a specific spot on the wiring. Oct 08 02:05:49 ? Oct 08 02:06:09 think of a traffic jam Oct 08 02:06:16 Yep. Oct 08 02:06:20 it slows down the whole road, yes? Oct 08 02:06:25 Yep. Oct 08 02:06:51 a resistor 'slows down' the electricity. This is a *really* bad metaphor, but... Oct 08 02:07:02 Ya! It is okay. Oct 08 02:07:14 reduces the voltage, reduces the current, etc. Oct 08 02:07:23 Oh. Oct 08 02:08:28 I thought since electricity is like bouncing balls that bump into each other when voltage is applied, the resistor prevents more volts to bounce into specific areas of the wiring. Oct 08 02:08:29 heh? Oct 08 02:09:29 Like with this specific wiring on the BBB, the volts have somewhere to go but very few get through the resistor to a specific spot on the wiring. Oct 08 02:09:45 ... Oct 08 02:09:47 I give up. Oct 08 02:10:09 that... is not how I would think about it? idk Oct 08 02:10:23 Okay. no issue. Moving on to the BBB stuff more now. Oct 08 02:10:41 ...Sorry for that conclusion. Oct 08 02:10:49 no problem! Oct 08 02:12:03 ...Kitlith: What are you doing with the BBB as of now? Oct 08 02:12:30 I am planning to buy one. Oct 08 02:12:45 Cool! Are you just a linux enthusiast? Oct 08 02:12:56 Or do you like interfacing w/ hardware too? Oct 08 02:13:04 linux/low-level software/hardware enthusiast. Oct 08 02:13:31 Same here. I cannot be more just yet. I only understand so much. Oct 08 02:13:45 Going to get a beaglebone green instead of a pocket beagle to make absolutely sure I can do the thing I want to do, Oct 08 02:13:52 It was first introduced in some year and I was not studying it then. Oct 08 02:13:58 Oh, what are you doing? Oct 08 02:14:23 Super bot? Oct 08 02:14:42 Pneumatic Potato Launcher? Oct 08 02:14:59 Parallel bi-directional IO at 4-6Mhz Oct 08 02:15:07 Oh. Oct 08 02:15:16 (usiing the PRUs ofc) Oct 08 02:15:22 See, I am too "end-userish" for that so far. Oct 08 02:15:23 Oh. Oct 08 02:15:35 I have not gotten to the PRUs for speed. Oct 08 02:15:56 What language will you use? Oct 08 02:16:00 C++? Oct 08 02:17:47 C++ is a speedy language, I thought. With those PRU things, I am sure you will be blasting software to hardware quickly. Oct 08 02:20:02 I have not made anything with the BBB in a while. I am still working on software for an electromechanical mower. Oct 08 02:20:22 Kitlith: Do you use the Motor Bridge Cape? Oct 08 02:20:50 I don't own a BBB, so I don't own any of the capes. Oct 08 02:20:56 I'm a C/C++ person. Oct 08 02:21:15 (mainly C) Oct 08 02:21:28 Oh...that is right. Sorry. Oh? So you know about making Higher Level langauges work. Oct 08 02:21:29 set_: what voltage is the analog in the BBB I thought it was 1.8V Oct 08 02:21:38 yea. 1.8v. Oct 08 02:22:11 Well, it should be kept at that voltage. Oct 08 02:22:33 1.8V or less, right? Oct 08 02:22:59 Yea...it needs to not go higher than 1.8v. Oct 08 02:23:21 At least, that is what I read about it on our analog pins. Oct 08 02:23:39 Is that universal, by the way? Oct 08 02:24:11 it will depend on the ADC (Analog to Digital Converter) Oct 08 02:24:19 Aw! Okay. Oct 08 02:25:08 I use the ADC for other things, too. I read a TMP36 sensor with it. I also read a photoresistor with it. Oct 08 02:26:12 I got the TMP36 sensor to read out some temperatures. Oct 08 02:26:28 I was extrememly pleased. The BBB can do it. Oct 08 02:27:09 mmhm Oct 08 02:27:34 ...Hey? Did you ever say what you are going to do with those PRUs? Oct 08 02:28:46 Parallel bi-directional IO at 4-6Mhz, as a slave device (something else is driving the clk) Oct 08 02:28:57 Oh. Oct 08 02:29:45 You did. I forgot but what clk? Oct 08 02:30:35 XBee? Oct 08 02:31:29 this protocol has a clock line -- every time the line goes high it's either sending or receiving a byte, and you'd better be ready. Oct 08 02:31:42 Ha! Oct 08 02:31:57 Good luck, Kitlith. Oct 08 02:32:34 I am cautiously optimistic that I can get it working. Oct 08 02:33:07 I am sure you can. What is it? "If you told me, you would have to kill me?" Oct 08 02:33:19 Come on, man. Please divulge. Oct 08 02:33:24 Well the AM3358 has an MPU with high latency so created a device specifically to handle IO is not an unimagineable idea. They have done this on some of there other devices such as the CC1310. Oct 08 02:34:43 Okay...I give up. if you do not feel like sharing, I can stop from harassing you about it Oct 08 02:34:48 haha, it's not secret as such, I just like to talk in generalities around this. You familiar woth the Nintend DS? Oct 08 02:34:52 *with Oct 08 02:35:03 yea. Oct 08 02:35:05 ! Oct 08 02:35:22 (and just because someone does not answer instantly doesn't mean they aren't going to :P) Oct 08 02:35:46 I get it. I thought since I made up how you feel, I was in trouble. Oct 08 02:35:48 Sorry. Oct 08 02:36:25 Nintendo DS and as a remote? Oct 08 02:36:36 Some take time to create a cohesive thought is all. Erstwhile I have some familiarity with the DS more with the GBA the long predecessor. Oct 08 02:37:23 The Nintendo DS' gamecart bus/protocol can be remarably general, with a dozen or so 'commands' that go over its 8 bit wide bus, clocked at 4-6Mhz depending on the speed. Oct 08 02:38:25 (typing on a phone with an IRC client that tends to crash slow things down as well) Oct 08 02:38:40 So you are contemplating a bridge device? Oct 08 02:38:48 I'd like to. Oct 08 02:39:24 I've already failed with a raspberry pi, but I was kind-of close to reaching the 4Mhz speed. Oct 08 02:40:24 I found some PS2 controller stuff online. I have not used it before, though. https://github.com/madsci1016/Arduino-PS2X Oct 08 02:40:26 If I could get a beaglebone to communicate, well, imagine a 'gamecart' that had full blown linux and wifi and everything communicating with a DS. Oct 08 02:41:07 I was going to change things from Arduino to BoneScript. Oct 08 02:41:28 the PRU doesn't have a large instruction memory. So using inline code for doing it is not a solution. Bonescript is Jscript right? how is that an improvement? Oct 08 02:41:59 Because, it is our native language for the BBB. Boy! Oct 08 02:42:09 um, not exactly? Oct 08 02:42:23 I know but is is still cool. Oct 08 02:42:41 but it is something more user-friendly, I guess. Oct 08 02:43:30 So, I guess it would be a change for the better because it would help me translate instead of use an Arduino. Oct 08 02:43:46 GenTooMan, I'd *like* to see the PRU simply handling send/recieve while linux can parse commands and stream data to the PRU to send back. Oct 08 02:44:38 <<< on break Oct 08 02:44:38 but, well, I don't even have a beaglebone in my hands yet so I can't say anything about the feasability of that. Oct 08 02:45:28 Kitlith: It might be possible to do they use the PRU for a number of intensive things including serial communication (synchronous). Oct 08 02:46:32 beaglelogic is really encouraging when thinking about this. Oct 08 02:47:31 As long as what you are doing is relatively simple and you aren't relying on the PRU to do complex things such as an entire communication protocol it might be possible. Oct 08 02:49:06 what I want to do: relay a 8 byte command to linux and stream data from linux in response to further clocks. Oct 08 02:49:51 each byte comes from one clock cycle on the bus. I wouldn't call it complex. Oct 08 02:50:09 I wouldn't do any encryption on it. Oct 08 02:52:21 DMA might be the best method, just software trigger it from the PRU. If you want to see how annoying that can be look up the SPI description on devices. With SPI you can toggle on different edges and start the clock in a number of ways. A scope might be helpful or if someone has documentation they wrote on it that would help. Oct 08 02:57:50 so, DMAing from some buffer in RAM into PRU memory, or DMAing a buffer directly to pins? **** ENDING LOGGING AT Sun Oct 08 03:00:00 2017