**** BEGIN LOGGING AT Sun Jun 30 03:00:18 2019 Jun 30 20:06:26 Hello, trying to help a friend compile a wifi module, question, for kernel 4.14.108-ti-r108 , what would be the respective kernel-headers package? linux-headers-4.14.108-ti-r108 ? Jun 30 20:21:59 alkisg: yes Jun 30 20:22:11 Thank you zmatt! :) Jun 30 20:36:46 * vagrantc waves to alkisg Jul 01 02:13:08 https://pastebin.com/3XGGTQfm shows the update to the software on the BBB.io site for the PIR Sensor. Jul 01 02:13:13 It works but it means nothing. Jul 01 02:13:27 I tried w/ (err, x) in my function like described. Jul 01 02:13:34 This is odd. Jul 01 02:13:55 It always picks the second else statement and not the first if statement. Jul 01 02:24:11 it should be (err, x), not (x, err) Jul 01 02:24:32 also, line 19 does nothing Jul 01 02:29:59 Okay. Jul 01 02:30:03 also, "var" is deprecated, consider using "let" or "const" (the latter for constants, i.e. variables that never change, such as "b" and "led" in your example) Jul 01 02:30:19 const <-- got it. Jul 01 02:30:27 var is deprecated. Got it. Jul 01 02:31:18 I tried err,x and then x, err. Jul 01 02:31:28 it's err, x Jul 01 02:31:31 Both works but nothing happens. Jul 01 02:31:32 Okay. Jul 01 02:31:56 Probably b/c no one is using var any longer. Jul 01 02:32:33 "var" will not cause problems in this example, it should just be avoided because it has awkward semantics Jul 01 02:38:26 https://pastebin.com/8QqiWZV2 is the update of the last src. Jul 01 02:40:17 What do you think could be happening on the second paste? Jul 01 02:40:46 It just jumps to the second statement w/ or w/out movement. Jul 01 02:41:28 Let me test the wiring again. brb Jul 01 02:42:56 there's nothing wrong with the code (other than line 19 still being superfluous) Jul 01 02:44:23 Okay. Jul 01 02:44:54 I have these tiny leads on this PIR sensor. I will attempt to try again w/ better wiring. Jul 01 02:45:32 I think these wires were meant for soldering and not for the breadboard. Jul 01 02:45:46 Testing will ensue. Jul 01 02:46:52 Okay. Jul 01 02:47:28 So, it is either an "error" w/ no LED lit up or the motion is detected and b.digitalWrite turns the LED on. Jul 01 02:47:29 Okay. Jul 01 02:47:30 does the sensor output a 3.3v signal, or does it have an open-collector output? in the latter case, don't forget to use a pull-up (internal may suffice, external may be better) Jul 01 02:47:48 I have a 10K ohm resistor on it. Jul 01 02:48:03 I have three wires. Jul 01 02:48:11 define "on it" Jul 01 02:48:33 Okay. Jul 01 02:48:38 Please hold. Jul 01 02:50:41 https://beagleboard.org/Support/BoneScript/PIRMotionSensor is the site where I got the wiring from but I do not have the open-collector and power tied into each other w/ the 10k. Jul 01 02:50:44 Does this make sense? Jul 01 02:51:08 no? Jul 01 02:51:14 Dang it. Jul 01 02:51:14 the schematic makes sense, your remark does not Jul 01 02:51:19 Okay. Oh. Jul 01 02:51:28 I should use the schematic verbatim? Jul 01 02:51:47 Okay. I will test it out like the schematic. Jul 01 02:51:59 I read the readings to the left of the schematic. Jul 01 02:52:05 I tried that instead. Jul 01 02:53:23 oh you're right the instructions on the left are weird and confusing Jul 01 02:53:49 I tried. Jul 01 02:53:59 It says like on the schematic. Jul 01 02:54:12 the diagram looks correct to me, the written instructions make no sense Jul 01 02:54:17 OKay. Jul 01 02:54:23 I will try the schematic. Jul 01 02:54:27 This is most likely the issue. Jul 01 02:54:49 It is not easy to describe that schematic b/c of the tie points. Jul 01 02:55:10 tie points = connections **** ENDING LOGGING AT Mon Jul 01 02:59:57 2019