**** BEGIN LOGGING AT Sun Nov 10 02:59:57 2019 Nov 10 03:06:07 Onto trying SPI on the BBBW for the photoresistor! Nov 10 03:42:58 Boy...trying to reversion source and ideas from the Pi to the BBBW is not easy, esp. w/ the SPI busses and pins. Nov 10 03:43:11 It takes an age or two. Nov 10 04:03:41 Is anyone using an ADC (MCP3008) to connect to SPI pins on the BBBW? Nov 10 04:03:58 I have some source I want to try but the dang connections elude me. Nov 10 04:04:00 Oh! Nov 10 04:29:18 24! Nov 10 04:29:54 Pastebin on the way! Nov 10 04:32:20 https://pastebin.com/rUTySzSJ is the source and the other paste w/ the source to run is here: https://pastebin.com/QAkgE49D. Nov 10 04:33:16 I am trying to read and understand the LDR reading to the terminal from the SPI on the BBBW from a MCP3008. My answer is 24 so far. Nov 10 04:33:21 Let me put my hand over the sensor. Nov 10 04:34:05 16 w/ dim lit rooms. Nov 10 04:34:20 Doing! I think I got it. Yea boy! Nov 10 04:34:57 Now, onto other ideas unless anyone has something to say. Nov 10 04:35:50 I did see I could make my DO and D1 in or out depending on the config-pin utility or in another way. Nov 10 08:47:40 config-pin can't swap d0/d1 Nov 10 16:14:20 Oh...okay. Nov 10 19:29:06 Hello EO Nov 10 19:29:46 any one used c++ Code::Block on the BBB? Nov 10 20:25:35 OneManDo: I wouldn't be inclined to run a heavyweight GUI application like an IDE *on* the BBB, I much prefer working on my laptop Nov 10 20:28:51 unless you meant whether anyone has experience with using Code::Blocks to cross-compile code to run on the BBB and do remote debugging, in which case no idea... I haven't seen the name of that IDE mentioned here before (indeed I hadn't heard of it until I googled it) Nov 10 21:16:50 Anyone installed Void Linux on a Beaglebone Black? Nov 10 21:16:59 I followed these guides: Nov 10 21:17:07 https://wiki.voidlinux.org/Beaglebone Nov 10 21:17:24 for flashing the microSD set up in the previous guide: http://derekmolloy.ie/write-a-new-image-to-the-beaglebone-black/#Flashing_the_BBB_with_the_SD_Card_Image Nov 10 21:17:53 When I followed guide #2, only 1 light turns on. The row of 4 don't light up at all. Nov 10 21:19:12 refusenick: I do not think that Wiki is popular here but i could be wrong. I do not know what everyone does in their time. Nov 10 21:19:13 ... Nov 10 21:19:16 the second link is talking specifically about flashing a BBB using a debian flasher image as available on the beagleboard.org website Nov 10 21:20:05 if you're using a custom system or obscure distro, the problem of getting it onto the eMMC of the beaglebone is entirely yours to solve ;P Nov 10 21:20:08 Look here for set up: https://beagleboard.org/getting-started Nov 10 21:20:32 set_: nothing on that page is useful if he wants to flash a specific obscure distro (void linux) Nov 10 21:20:41 I just ssh'd into 192.168.7.2 as the root user and got a Debian root prompt. Nov 10 21:20:45 Clearly, I have failed. Nov 10 21:21:01 refusenick: it sounds like you never even managed to boot your void linux system from sd card Nov 10 21:21:19 I succeeded on my laptop, at least Nov 10 21:21:21 refusenick: 1 Nov 10 21:21:24 computers: 1 Nov 10 21:21:31 your laptop isn't a beaglebone Nov 10 21:21:39 fine Nov 10 21:21:42 computers: 1.5 Nov 10 21:22:29 What is the standard way to force a write to eMMC from a microSD? Nov 10 21:22:32 @zmatt: Hey! Is the D0/D1 switching available for a device tree file instead of config-pin? Nov 10 21:23:00 refusenick: is there a specific reason you want to use an obscure distro on the BBB? it is likely to be supported quite poorly and there's a decent chance it'll make it much harder to use the hardware features of the BBB Nov 10 21:23:26 set_: d0/d1 switching is as far as I know only possible using DT configuration, not using config-pin Nov 10 21:23:34 Okay. Nov 10 21:23:51 zmatt: I really like how close it is to a BSD while still being Linux (I know how to configure it and my software will run) Nov 10 21:23:58 I was asking only b/c i saw it in the TRM for the chip on the BBBW. Nov 10 21:24:16 My experience with it has been pretty good, and it looks like what I want for a secure server running off my BBB Nov 10 21:24:44 refusenick: anyway, when you tried to boot from SD card, did you hold down the S2 button (the one nearest to the sd card slot) while powering on the BBB (you can let go of the button once the power led turns on) Nov 10 21:25:06 yeah, I followed the 2nd guide I linked (it says to do so) Nov 10 21:25:53 refusenick: why would you use the BBB as a server? it has a slow cpu, slow network, and slow storage. if you're not interested in using the cool features of the BBB (like pruss) and just want any random linux system then there are probably better options for lower cost available :P Nov 10 21:26:38 refusenick: well no, you're not following the second guide since you're not using a debian flasher image. the guide is not of any use for flashing your void linux system to eMMC Nov 10 21:27:11 anyway, if the system doesn't boot from sd card even if you power on with the S2 button held down, then the sd card isn't bootable, simple as that Nov 10 21:27:17 is the power LED the one between the 5V and Ethernet slots? Nov 10 21:27:26 yeah, the first led that turns pn Nov 10 21:28:14 Looks like my IRC disconnected Nov 10 21:28:23 zmatt: Did you say anything? Nov 10 21:28:37 https://pastebin.com/raw/T4whgYL1 Nov 10 21:29:40 Ah, so that means it's flashing if that's the only light on? Nov 10 21:29:47 no Nov 10 21:30:07 Does that it mean it could be flashing? Nov 10 21:30:20 note: the process you're trying will never flash anything to eMMC, even if you get it to boot Nov 10 21:30:43 How do I install a new Linux distro onto it? Nov 10 21:31:01 to flash to eMMC, the image on the sd card needs to be setup to automatically launch some flasher tool that installs a system to eMMC. it won't happen magically Nov 10 21:31:18 that's why there are separate "eMMC flasher" images on the beagleboard.org website Nov 10 21:31:46 so far however your first problem is that it sounds like your sd card doesn't boot *at all* Nov 10 21:32:50 assuming there's nothing wrong with the card slot iself (easily verified by booting into debian and confirming it can detect the sd card) that means there's a problem with how you set up the sd card Nov 10 21:36:49 I hope you have a 3.3V serial cable (see https://elinux.org/Beagleboard:BeagleBone_Black_Serial ) since it'll be a pain to debug boot issues otherwise Nov 10 21:40:03 once you get the sd card booting, the easiest way to install onto eMMC would probably be to log into the BBB while booted from sd card and then simply wipe eMMC (blkdiscard) and then follow the same steps you used to prepare the sd card except performed onto eMMC Nov 10 21:44:03 I only have the USB which came with it. Nov 10 21:44:51 yeah that's not going to be of any help... well I mean, it can be used to power the BBB, which is certainly helpful for booting, but other than that :P Nov 10 21:48:07 refusenick: your best bet is probably to try to contact whoever wrote that wiki page Nov 10 21:48:41 since either the instructions are wrong or you followed them incorrectly Nov 10 21:48:50 :P Nov 10 21:54:30 Does anyone know what my numerical values listed mean from the SPI device on the BBBW when I use the MCP3008 ADC? Nov 10 21:54:49 I will list those pastes again. Nov 10 21:55:09 Oh and the integers seem to be just random numbers. Nov 10 21:56:22 https://pastebin.com/rUTySzSJ <--- library! AND https://pastebin.com/QAkgE49D <--- small source! Nov 10 21:57:00 I am currently using a light sensor or LDR to get values. Nov 10 22:02:21 the number returned from adc.read is a 10-bit integer representing the voltage (0 = 0V, 1023 = Vref) Nov 10 22:04:37 Hmm. Nov 10 22:05:24 Okay. So, 3 and 14 are the values. Nov 10 22:05:37 that's pretty much 0V Nov 10 22:05:46 Okay. That is good. Nov 10 22:06:52 Is there anything you can think of that will make the source more human readable? Nov 10 22:07:19 I am not asking for source. I am just thinking there is a huge issue w/ not being able to read it. Nov 10 22:08:00 multiply the result by your Vref voltage (3.3V probably?) and divide by 1023, then you have a voltage Nov 10 22:08:15 Oh. Okay. Nov 10 22:09:01 Should I only search for voltage w/ SPI devices or can I use it for other things? Nov 10 22:09:14 ??? Nov 10 22:09:24 I knew that was going to throw you off. Nov 10 22:09:39 I can't even begin to guess what you're talking about Nov 10 22:09:54 I had to ask. I am reading up on SPI devices now and I am not close to understanding everything. Nov 10 22:10:17 okay, what does that have to do with... anything? Nov 10 22:10:35 I am trying to figure out what I can do w/ this SPI device? Nov 10 22:10:45 I am new to the whole SPI thing. Nov 10 22:11:14 To tell you the truth, I am surprised I was able to figure out what I figured out. Nov 10 22:11:48 SPI is just a serial communication protocol... the details vary a lot per device, hence the datasheet should always be consulted for them (unless someone already did the work for you and made a simple wrapper library) Nov 10 22:12:38 No...that library is done and I can try other source. This is not the issue. New, the big word here, is the ideas in my mind thus far w/ SPI. Nov 10 22:12:55 So, I guess I will come back when I learn a bunch. Nov 10 22:14:07 I did find a spidev pip install. Nov 10 22:15:30 it looks like the .read() method of the library you showed is close to all functionality available via spi (it also has an option to perform differential measurement between adjacent channels, the spi command for which is basically the same but with "channel << 4" (indicating the higher channel of the pair) instead of "(8 + channel) << 4" as the second byte of the transfer) Nov 10 22:15:53 it's a pretty simple device Nov 10 22:16:09 For spidev or for using the MCP3008? Nov 10 22:16:20 ? Nov 10 22:16:27 or for Adafruit_BBIO.ADC? Nov 10 22:16:34 ?? Nov 10 22:16:44 Ha. Okay, I am out of line again. Nov 10 22:16:45 what are you asking? I don't understand Nov 10 22:16:53 Oh. Nov 10 22:16:56 I got you now. Nov 10 22:17:03 The library that is already typed up. Nov 10 22:17:08 From that paste? Nov 10 22:17:12 yeah Nov 10 22:17:14 Okay. Nov 10 22:17:31 So, I should try channel << 4 instead. Nov 10 22:17:36 no? Nov 10 22:17:39 Oh. Nov 10 22:17:57 Let me go and look at this short library again. Nov 10 22:19:00 I was just saying the library seems fine for most purposes, the only feature it doesn't wrap is doing differential measurements, but that's no loss unless you need differential measurements (and it's easy to add if you do) Nov 10 22:19:01 See, you can describe what is going on more than me. Nov 10 22:19:14 Okay. Nov 10 22:19:43 I was just picking and placing and reading. You actually have knowledge of this subject. I am just some beginner on SPI. Nov 10 22:19:51 words and bits? Sheesh. New to me. Nov 10 22:20:51 I was researching the TRM for the am335x for SPI. I found a bit of info. but little I could use. Nov 10 22:21:23 the TRM is really not that useful for you, that's mostly for people who write kernel drivers Nov 10 22:21:28 Oh. Nov 10 22:21:30 Okay. Nov 10 22:21:35 But... Nov 10 22:21:56 zmatt: I think I might have followed them incorrectly. Nov 10 22:22:01 The TRM helped me w/ how to connect the device, the MCP3008, to the BBBW. Nov 10 22:22:14 refusenick: that would have been my guess too Nov 10 22:22:14 I see other things online talking about a procedure for booting from a rootfs Nov 10 22:22:28 (which I see pop up in the name) Nov 10 22:22:48 I also see talk of a u-boot.img and a uEnv.txt, which the install instructions also contained. Nov 10 22:23:05 refusenick: you shouldn't try to mix & match procedures from multiple sources, that's unlikely to end in anything working Nov 10 22:23:28 Looks like "rootFS" is a keyword, but I can't find a guide to installing one of these. Nov 10 22:23:51 rootfs just means root filesystem, i.e. the filesystem containing your system Nov 10 22:24:04 Part of what I like about Void is that it tries to stay simple (standard Unix utils where possible, not that I'm a Unix fanboy) Nov 10 22:24:44 Stuff tends to work if it's just shell commands and GNU tools IME Nov 10 22:25:21 except so far you don't have a working system ;) Nov 10 22:25:38 Is there a reference manual for Linux on BBB? Nov 10 22:25:49 and I'm really nos reu what you're trying to describe or what you're trying to contrast it with Nov 10 22:26:15 that question makes no sense Nov 10 22:26:54 or at least it's way too vague Nov 10 22:27:14 "nos rew" = "not sure" .. how the fuck did that typo happen Nov 10 22:27:51 IDK, something at the Arch Wiki's level of detail at least (but that's mostly for x86 64 Linuces) Nov 10 22:29:06 most linux-related information is hardware-independent, except of course for details regarding making use of specific hardware features and stuff like the bootloader Nov 10 22:58:55 * veremitz shoots an arrow at zmatt 's typo fairy :p Nov 10 23:10:40 Did someone say fairy? Nov 10 23:10:55 Oh. Typo fairy. Nov 10 23:10:57 Sheesh. Nov 10 23:20:53 @zmatt: I looked up nos rew and a book appeared! Nov 10 23:21:11 Do not worry. I did not purchase it. Nov 10 23:39:01 is the flasher script in a git repo somewhere? Nov 10 23:39:06 (for the emmc on BBB) Nov 10 23:39:33 pretty sure that whole scripts directory lives somewhere on github Nov 10 23:39:47 I thought so .. I'm bein a dork trying to find it Nov 10 23:47:33 I'd just check an image Nov 10 23:47:46 https://github.com/RobertCNelson/boot-scripts Nov 10 23:48:40 I think tools/eMMC/init-eMMC-flasher-v3.sh Nov 11 00:13:50 https://groups.google.com/d/msg/beagleboard/JvdemtpzJuo/tugnWAn9CgAJ is the link for my discussion on LDR and the MCP3008. Nov 11 00:14:11 Would this voltage set of source be okay for SPI like I have listed it in the lower section of that screen? Nov 11 00:16:47 Would that source show the actual voltage? I guess I can take the route for now. Nov 11 00:17:06 Nevermind. Off to test. Nov 11 00:33:08 set_: ehm, right now you're just printing 3.3/1023 and separately the adc voltage as integer Nov 11 00:40:07 Right. Nov 11 00:40:24 I thought something was up. Nov 11 00:43:53 set_: https://pastebin.com/LNMQP4Wz Nov 11 00:44:30 https://pastebin.com/bnaii0Tm is w/ spidev imported instead and I receive, well you can tell. Nov 11 00:45:03 I don't understand what you're saying, what does this have to do with spidev? Nov 11 00:45:27 also that formula is nonsense Nov 11 00:45:36 I was using Adafruit_BBIO.SPI instead of spidev. Nov 11 00:45:42 Now, I am using spidev to test. Nov 11 00:46:02 it doesn't matter much, in fact Adafruit_BBIO.SPI probably uses spidev Nov 11 00:46:12 Okay. Nov 11 00:46:19 you're getting sensible values so the spi communication seems to be working fine Nov 11 00:46:29 Right. Nov 11 00:46:37 After I set up the SPI devices by config-pin. Nov 11 00:46:51 P9.17, 18, 21, and 22. Nov 11 00:47:35 Now, I know there is a right and wrong way to go about python source. I leaning towards the incorrect side now. I will use your source and see the answer. Nov 11 00:47:39 yeah I'd guess that the adafruit thing is supposed to do that for you but I dunno if that actually (still) works. when using spidev you'll definitely need to configure the pins first Nov 11 00:48:24 btw you mentioned an LDR earlier, please keep in mind that you can't simply connect an LDR to an analog input and expect any sort of result, since an LDR is just a variable resistor and an ADC measures voltage, not resistance Nov 11 00:48:30 Okay. Nov 11 00:48:43 Oh. Nov 11 00:48:56 Dang. Okay. I found some articles online. Nov 11 00:49:32 These articles used an ADC like this MCP3008 or this exact chip to promote LDR usage via ADC. Nov 11 00:50:14 And...I found a couple that used python w/ the LDR and this chip. Nov 11 00:50:22 an LDR needs additional circuitry to connect it to any ADC Nov 11 00:50:33 Do you want to see my connection? Nov 11 00:50:51 dunno, do I? :P do you have a datasheet for the LDR you're using? Nov 11 00:51:03 No. Cheap-o Depot. Two pin. Nov 11 00:51:22 You can check it out if necessary. Nov 11 00:51:41 I think I got it from sparkfun. I will look up the old BOM. Nov 11 00:51:44 yeah no sorry I'd need more info than that Nov 11 00:51:55 Okay. Nov 11 00:51:56 as wikipedia says "The resistance range and sensitivity of a photoresistor can substantially differ among dissimilar devices" Nov 11 00:53:01 Right. Plus, the difference is due mostly to the darkness/lightness hitting the LDR but in a more negative sense for light and positive for darkness. Nov 11 00:53:13 ? Nov 11 00:53:18 That is why I chose the MCP3008. Nov 11 00:53:26 you're not making any sense Nov 11 00:53:29 Fine. Nov 11 00:53:42 I don't see any benefit to using the MCP3008 instead of the built-in adc Nov 11 00:53:48 Oh? Nov 11 00:54:02 Yikes. Nov 11 00:54:25 it's just some random adc, there's nothing special about it as far as I can tell Nov 11 00:54:29 I should have used the onboard ADC now that you said that bag-of-goodies. Nov 11 00:54:54 Right. Just many pins for using w/ the LDR types of resistors. Nov 11 00:55:18 Okay... Nov 11 00:55:26 I can let go if you want other things to do. Nov 11 00:55:31 it would be useful if you have an analog voltage in range 0-3.3V that you want to measure, but in case of an ldr you're in control of the voltage range so there's no benefit to using 0-3.3V rather than 0-1.8V Nov 11 00:55:53 Oh. Nov 11 00:55:57 So... Nov 11 00:56:02 and the internal adc would *probably* be more accurate but I'm not sure, can't be bothered to examine the mcp datasheet in more detail Nov 11 00:56:22 but you can use either of them, it doesn't matter probably Nov 11 00:56:29 Either 0 to 3.3v or 0 to 1.8v is useless equally? Nov 11 00:56:34 Okay. Nov 11 00:56:50 I will use the MCP3008 for now. Nov 11 00:57:01 I will switch over to the onboard ADC later. Nov 11 00:57:08 if you fuck up the circuit, at least the mcp3008 is cheaper to break than the beaglebone ;) Nov 11 00:57:14 Right! Nov 11 00:57:36 Oh and I not replacing the ADC onboard this BBBW. Nov 11 00:57:38 I promise. Nov 11 01:00:59 the problem with photoresistors is that the resistance it presents tends to be quite high, so a simple passive circuit (e.g. making the photoresistor part of a voltage divider or a wheatstone bridge) would produce a voltage source that's relatively "high impedance", meaning it is easily disturbed when measured, which tends to result in noisy measurements. preferably it would need to be buffered ... Nov 11 01:01:06 ...(typically using an opamp) before sending the result to an adc to get better results Nov 11 01:01:30 Aw! Nov 11 01:01:39 See...that is how I started this mission. Nov 11 01:01:50 I started the op amp idea and went from that point forward. Nov 11 01:01:59 But... Nov 11 01:02:04 I took that op amp out. Nov 11 01:02:16 of course there are other ways for dealing with noisy measurements, e.g. taking multiple measurements and averaging them Nov 11 01:02:18 I replaced it w/ a 10k ohm resistor. Nov 11 01:02:22 ehm Nov 11 01:02:23 oh! Nov 11 01:02:26 Good idea. Nov 11 01:02:31 that makes no sense Nov 11 01:02:44 That was the set up I read about. Nov 11 01:02:51 the functionality of an opamp and that of a resistor do not resemble each other in any way whatsoever Nov 11 01:03:12 That is why I needed more wires compared to the op amp. Nov 11 01:04:18 I see why you are right now. Nov 11 01:04:31 I have the same light in the room and I am receiving very different readings. Nov 11 01:04:52 but maybe the photoresistor offers low enough resistance for your use case, I dunno... that depends both on the characteristics of the photoresistor and on your use case :P Nov 11 01:05:14 how did you wire it up? Nov 11 01:05:23 @zmatt: As usual, I am just learning. The use case has not presented itself yet. Nov 11 01:05:24 OH. Nov 11 01:05:26 Wires! Nov 11 01:05:34 Please hold, i will take a photo. Nov 11 01:05:45 Please do not laugh. Nov 11 01:05:46 don't you have a circuit diagram instead? Nov 11 01:05:54 Maybe. Nov 11 01:06:18 I can copy one or draw one but I have not drawn out my schematic for this set up yet. Nov 11 01:07:00 I can try fritzing or KiCAD. Nov 11 01:07:15 They probably have the MCP3008 listed. Nov 11 01:07:35 brb Nov 11 01:07:40 rb Nov 11 01:07:44 I don't really care about the MCP3008, just the circuit around the ldr (including its connection to the adc) Nov 11 01:08:40 which is presumably not much, and probably easiest to just draw on paper and photograph.. that's been my solution for drawing a quick schematic anyway :P Nov 11 01:12:03 Okay! Nov 11 01:12:05 I will do it. Nov 11 01:12:12 Please hold. This may take me a while. Nov 11 01:15:22 The issue ---> I used a breadboard! Nov 11 01:16:45 I will try to list the MCP3008 pin names for your satisfaction! Nov 11 01:17:02 02:07 <@zmatt> I don't really care about the MCP3008 Nov 11 01:17:22 Okay. Nov 11 01:17:58 of course feel free to include it if you want to, but I doubt it'll have much impact on my satisfaction Nov 11 01:18:14 Okay. Nov 11 01:18:28 I need to review the resistor idea/symbol. Nov 11 01:24:20 Someone sent a drone over my house today. Nov 11 01:24:48 You have a water cannon? It's perfectly legal to shoot it down from what I understand. Nov 11 01:24:49 Sorry. I need to wait for the photo to be sent. Please hold. Nov 11 01:24:58 Right-O. Nov 11 01:25:15 No cannon but I can attempt to have a projectile net fly out of mine! Nov 11 01:26:52 https://photos.app.goo.gl/EDCVMnD5kiFGvnDcA Nov 11 01:26:59 That is the photo of the schematic. Nov 11 01:27:10 W/out the MCP3008, really. Nov 11 01:28:09 ok, yeah that's the simplest circuit for an ldr that can work Nov 11 01:28:15 Okay. Nov 11 01:28:44 whether the 10K is an approxpriate value for the LDR depends a bit on its specs, but it might be Nov 11 01:29:02 I have not looked up my old order yet. Nov 11 01:29:06 have you tried performing an adc measurement while shining a bright light onto it? (e.g. a flashlight) Nov 11 01:29:31 Yes but w/ the LM358 instead. Nov 11 01:29:43 It would change w/ light or darkness. Nov 11 01:29:59 I'm not asking about a random other circuit, I'm asking about this circuit Nov 11 01:30:04 Yes. Nov 11 01:30:10 Well...I used a lighter. Nov 11 01:30:16 that might work I guess Nov 11 01:30:18 bzzt, bzzt. Nov 11 01:30:28 I feel like a cave man. Nov 11 01:30:33 just seems unnecessarily hazardous :P Nov 11 01:30:37 Right! Nov 11 01:30:41 I was being lazy. Nov 11 01:30:49 so what values did it show? Nov 11 01:30:56 It changed. Nov 11 01:31:14 okay so the circuit and software work fine. what was your question again? Nov 11 01:31:21 Hmmm. Nov 11 01:31:53 Well, if you did not corner me into wanting to use the MCP, oh yea... Nov 11 01:32:00 What do my numerical values stand for? Nov 11 01:32:29 I explained that, and in my revised code it actually gives a voltage as output Nov 11 01:32:37 I keep getting these arbitrary values when I do not set up the SPI to understand that it needs to read voltage. Nov 11 01:32:56 Okay. Nov 11 01:35:52 I do not think I want it, the SPI device, to read voltage now. Nov 11 01:35:58 with this circuit, you can calculate the resistance of the ldr as... Nov 11 01:36:05 What other things can I do w/ it. Nov 11 01:36:11 Aw! Nov 11 01:36:19 https://pastebin.com/sxC9jzrR something like that Nov 11 01:36:33 what a particular resistance of the LDR means of course depends on the specs of the LDR Nov 11 01:36:58 Okay. So then, I print resistance to see it I guess... Nov 11 01:37:06 I can try that too. Nov 11 01:37:12 also you lost me again... and wtf you mean by "if you did not corner me into wanting to use the MCP" .. you were the one asking about the mcp Nov 11 01:37:23 Sorry. Nov 11 01:37:42 the 10000 in that code represents the 10K resistor btw Nov 11 01:37:45 I was trying to convey you trying to give again and I made an error. Nov 11 01:37:51 Right. Nov 11 01:38:16 Do you think this chip will be popular enough for people to use it for something one day? Nov 11 01:38:28 ? Nov 11 01:38:30 Like a Cape, ADC Cape or the opposite? Nov 11 01:38:42 Cheap Cape, many potentials! Nov 11 01:39:02 I am just throwing out funny ideas. Nov 11 01:39:41 an adc cape would probably either just contain some opamps to condition signals before sending them to the built-in adc, or if you're going to bother with an external adc you'd probably use one with good specs that make it worth it Nov 11 01:39:57 Ha. Nov 11 01:39:59 I know, I know. Nov 11 01:40:12 This one is not up-to-par for industrial use. Nov 11 01:40:33 the mcp looks like an adc you'd use if you just want an adc, *any* adc, and don't really care much about it other than being cheap. it's useful if you want 8 analog inputs on a device such as the rpi, but the BBB already has 7 integrated analog inputs Nov 11 01:40:45 I should have shown you the photo of my breadboard. Nov 11 01:41:03 Aw! Nov 11 01:41:08 Nice! Nov 11 01:41:09 I guess it might be useful if you just want *more* analog inputs (and aren't particularly picky about the specs) Nov 11 01:41:17 Right. Nov 11 01:41:21 (although you could also use an analog mux in that case) Nov 11 01:41:31 I did get this idea from some Rpi site a while back. Nov 11 01:41:48 right, because the rpi doesn't have a bunch of analog inputs Nov 11 01:41:52 Someone said, here is source and I do not know how to wire it. Nov 11 01:41:54 the bbb does Nov 11 01:41:57 I know. Nov 11 01:42:12 anyway, it seems to work, so hurray? :P Nov 11 01:42:27 I was not thinking. I cannot wait until I use this ADC for something in the future from Molloy's book. Nov 11 01:42:50 He had it in the materials section of the book. Nov 11 01:43:03 I tired of the op amp and wanted to try another chip. Nov 11 01:43:44 But yah, hurray! Nov 11 01:43:56 unfortunately D molloys information is 5 years old. Debian changed from what he was using to dev for the Beagle board within a year. Now embedded related compilers are in the main distribution. Nov 11 01:45:36 Oh. Nov 11 01:45:53 I know but I can at least read and be merry while trying some new ideas. Nov 11 01:46:05 Even if they are from '15. Nov 11 01:46:13 What is five years? Nov 11 01:46:22 See how futuristic I am? Nov 11 02:31:45 just don't do the time warp... really. Nov 11 02:34:43 bzzt, bzzt. **** ENDING LOGGING AT Mon Nov 11 02:59:57 2019