#avr Logs

Mar 24 2017

#avr Calendar

01:16 AM daey_ is now known as daey
04:39 AM Ad0: if you have 2 sheets of tin on each side of a thin cardboard surface and shoot a bullet through that would reduce the resistance between them, how could I trigger an interrupt on that? Just use an analog circuitry to trigger a high / low I guess?
04:41 AM Ad0: 400 m/s
04:41 AM Ad0: that moving across a surface of 5 mm
04:43 AM Ad0: 0.0000125 s ?
04:43 AM Ad0: 12.5 us...
04:46 AM Ad0: so let's say the resistance drops from infinity ohm to 15 ohm
04:47 AM Ad0: maybe directly to GPIO is enough?
04:47 AM Ad0: I gotta try this :D
04:56 AM polprog: Ad0: making a shooting range speedometer?
04:56 AM Ad0: chronograph? no :)
04:56 AM Ad0: a target hit detector
04:56 AM Ad0: when you shoot thru the paper target I want it to be detected
04:56 AM Ad0: I want to clone one of those "smart target" systems
04:57 AM Ad0: like you can set up a scenario that the paper target goes down after X number of shots you specify
04:57 AM Ad0: so I just wanna detect that it has been actually hit
04:57 AM Ad0: a bullet consists of either a metal jacket which is really good conductor
04:57 AM Ad0: or lead which is 12-16 ohms per meter
04:57 AM Ad0: plenty to create contact
04:58 AM Ad0: so if you have 5 mm cardboard with foil on each side
04:58 AM Ad0: it should create contact between them in 12.5 us duration or somethinbg
04:58 AM Ad0: is that long enough to trigger an interrupt?
04:59 AM polprog: you might need to use some buffers?
04:59 AM polprog: maybe a flip flop?
04:59 AM Ad0: not sure
04:59 AM polprog: 12us is a bit short
04:59 AM Ad0: I will just try this and see if it triggers
04:59 AM polprog: is it an impule?
04:59 AM Ad0: ?
04:59 AM polprog: thats a good way :)
05:00 AM Ad0: impulse
05:00 AM Ad0: ?
05:00 AM Emil: Ad0: I'm quite doubtful
05:00 AM Ad0: the data sheet should tell the minimum time
05:01 AM Emil: Ad0: your cardboard is going to push the metal sheet away
05:01 AM Ad0: if you glue the sheet on each side?
05:01 AM Emil: I'd use some other sensor
05:01 AM Ad0: afaik that's how commercial ones do it
05:01 AM Ad0: and they are said to handle 500-1000 shots
05:02 AM polprog: im not sure if shot cardboard would conduct
05:02 AM Ad0: polprog: the bullet is the conductor
05:02 AM Ad0: it touches both sides
05:02 AM Lambda_Aurigae: Ad0, I would go with a physical motion sensor...targets with soft front and hard metal back hanging on a swinging mount.
05:02 AM Lambda_Aurigae: or a piezo sensor.
05:02 AM polprog: good idea
05:03 AM Ad0: Lambda_Aurigae: I wanted to avoid DSP
05:03 AM Lambda_Aurigae: dsp?
05:03 AM Lambda_Aurigae: who needs dsp?
05:03 AM Ad0: you need to analyze the curve
05:03 AM Emil: piezo would be my recommendation too
05:03 AM Ad0: if you use accelerometer right?
05:03 AM Ad0: piezo sensor then
05:03 AM Emil: or accel
05:03 AM Lambda_Aurigae: for swing sensor...the swing mount would be sprint loaded..it wouldn't move more than once or twice...just use a long debounce with a big cap.
05:03 AM Emil: that one
05:04 AM Emil: too
05:04 AM Ad0: Lambda_Aurigae: it's a cardboard, it won't move at all
05:04 AM Lambda_Aurigae: it will if you put a metal plate on the back of it.
05:04 AM Ad0: yeah but then it will get knocked back
05:04 AM Ad0: so why use electronics
05:04 AM Lambda_Aurigae: piezo sensor, a diode, a cap....
05:04 AM Ad0: this is for paper target :)
05:04 AM Emil: imho being lightweight is good
05:05 AM Ad0: so do you get a sheet of that?
05:05 AM Ad0: or don't you need it?
05:05 AM Lambda_Aurigae: just a piezo speaker
05:05 AM Lambda_Aurigae: but you need a solid base for it to attach to so it can sense the shock.
05:06 AM Lambda_Aurigae: wood backing for your paper targets maybe
05:06 AM Ad0: yeah
05:06 AM Ad0: that could work
05:06 AM Lambda_Aurigae: the target range I made once had a bunch of small metal plates on spring hinges.
05:06 AM Ad0: as long as it doesnt react to the sound of the gunshot as well
05:07 AM Lambda_Aurigae: hit the plate, it swings back, hitting a switch, then returns to position.
05:07 AM Lambda_Aurigae: could have even made them popup with some solenoids but never did that.
05:07 AM Emil: Ad0: but I mean, try it with your initial idea, too
05:07 AM Emil: I might try it myself, also
05:07 AM Ad0: I will try both
05:08 AM Ad0: the idea is that it will be easily installed to existing fixtures
05:08 AM Emil: SRA is pretty damk nice :3
05:08 AM Lambda_Aurigae: painted metal plates 1/8 inch thick and about 4 inch circle.
05:08 AM Ad0: people just staple the targets - that could be a problem lol
05:08 AM Ad0: better watch where you do it
05:08 AM Emil: Better than IPSC
05:08 AM Ad0: :D
05:08 AM Lambda_Aurigae: Ad0, hence wood backing.
05:08 AM Ad0: IPSC targets yes!
05:08 AM Ad0: they are usually stabled on 2 pins
05:08 AM Ad0: stapled*
05:09 AM Emil: SRA>IPSC
05:09 AM Ad0: you are allowed to do this in finland?
05:09 AM Emil: Shoot?
05:09 AM Ad0: cool
05:09 AM Ad0: yeah
05:09 AM Emil: Tactical shooting?
05:09 AM Emil: Yeah
05:10 AM Ad0: SRA is a finnish only thing?
05:10 AM Ad0: here they added a 2 year quarantine for rifles in IPSC
05:10 AM Ad0: to avoid getting it banned as a precautionary measure
05:10 AM Ad0: wussies
05:11 AM Emil: Where?
05:11 AM Ad0: Norway...
05:11 AM Emil: And SRA is kind of like Finnish only
05:11 AM Ad0: after that Breivik incident ya know
05:11 AM Emil: Ah
05:11 AM Ad0: not only is it tragic but he ruined a lot for shooters as well
05:12 AM Lambda_Aurigae: 2 year?
05:12 AM Ad0: ironically the rifle he used was gotten through hunting license and nothing is changed :P
05:12 AM Emil: In Finland you can get a rifle permit right away (tm) but for pistol you have to show active practice for 2 years
05:12 AM Lambda_Aurigae: heck, I can go down and buy a rifle or shotgun today.
05:12 AM Lambda_Aurigae: no permit needed.
05:12 AM Lambda_Aurigae: pistol takes a couple days.
05:12 AM Ad0: USA?
05:12 AM Lambda_Aurigae: yup.
05:12 AM Emil: If only T.T
05:12 AM Ad0: god bless.
05:13 AM Emil: Ad0: SRA is "pretty hardcore"
05:13 AM Emil: Like
05:13 AM Lambda_Aurigae: gods have nothing to do with it.
05:13 AM Emil: We get to use allll sorts of cool things
05:13 AM Ad0: it's an american expression Lambda_Aurigae :)
05:13 AM Emil: and then ww have MPK
05:13 AM Ad0: it was meant like that
05:13 AM Ad0: cool Emil
05:13 AM Emil: So we get to practice with real military equipment also :)
05:13 AM Ad0: what rifle is standard in finnish army?
05:13 AM Lambda_Aurigae: Ad0, no, it's a VOC expression
05:14 AM Emil: RK62/RK95-TP
05:14 AM Emil: Standard service rifle
05:14 AM Ad0: that came fast, you seem to know your stuff :D
05:14 AM Emil: lol
05:14 AM Ad0: looks like some AK derivative
05:14 AM Ad0: :)
05:14 AM Emil: Superior
05:14 AM Emil: Like wayyyyy
05:14 AM Emil: But yeah it's an AK derivative
05:15 AM Emil: You have those kawaii HK416/417s; thouhh
05:15 AM Ad0: haha
05:15 AM Ad0: is it kawai
05:15 AM Ad0: :3
05:16 AM Lambda_Aurigae: give me a good smith and wesson lever action 30-30 any day!
05:16 AM Ad0: yeah
05:16 AM Ad0: Emil: I was gonna start shooting long range or metal silhouette
05:16 AM Ad0: and then I can get an MR308
05:16 AM Lambda_Aurigae: for distance, a nice .30-06
05:16 AM Ad0: which is a civilian version of 417
05:16 AM Emil: But surprising that you think it's surprising I could quickly name the service rifle. Pretty much anyone in Finland can name it :D
05:17 AM Emil: Ad0: do it
05:17 AM Ad0: haha cool
05:17 AM Ad0: yeah Emil it is reall really expensive...
05:17 AM Emil: Sako M92S is the civilian 95
05:17 AM Emil: ikr
05:17 AM Emil: M92S costs >2kr
05:17 AM Ad0: I love the finnish lahti 20 mm
05:17 AM Ad0: or whatever it was called
05:17 AM Emil: 2ke*
05:18 AM Ad0: Lahti Model L 39 20mm anti-tank rifle
05:18 AM Emil: Yeah that's one big gun
05:18 AM Ad0: I bet the target detects that one :)
05:18 AM Emil: But we habe one nice gun
05:19 AM Emil: Lke my dad owns one
05:19 AM Lambda_Aurigae: good old barrett m-80!
05:19 AM Emil: It's the pystykorva iirc
05:19 AM Lambda_Aurigae: or M82 rather
05:19 AM Lambda_Aurigae: that'll punch a nice hole in your target sensors.
05:20 AM Emil: Hmm
05:20 AM Lambda_Aurigae: and I know two gunshops within 40 miles of me who have them in stock.
05:20 AM Emil: I should quit pussying around and just put my shooting videos to youtibe
05:21 AM Lambda_Aurigae: hmmm.. the XM500 replaced it..
05:21 AM Lambda_Aurigae: interesting looking weapon.
05:22 AM Emil: Would have linked some videos otherwise
05:22 AM Lambda_Aurigae: that's gotta kick like a bull moose.
05:23 AM Emil: Ad0: have you been in the military?
05:24 AM Emil: Ad0: if so, you pretty much can come to Finland and try SRA
05:24 AM Emil: I'd love to go to Murica and bling, though
05:24 AM Lambda_Aurigae: buddy of mine is a gunsmith.
05:25 AM Lambda_Aurigae: last count he had 48 guns.
05:25 AM Emil: :3
05:25 AM Jartza: g'day
05:25 AM Emil: Hola
05:25 AM Lambda_Aurigae: morning Jartza
05:27 AM Ad0: I am gonna get an investor visa when I get rich and move to Texas
05:27 AM Ad0: become a legal alien resident and shoot for the rest of my life
05:27 AM Ad0: :D
05:27 AM Lambda_Aurigae: texas?
05:27 AM Lambda_Aurigae: why the fuck would you want to live in that shithole?
05:28 AM Lambda_Aurigae: only retired americans, texans, and mexicans live there.
05:29 AM Lambda_Aurigae: I've lived all over the country and visited more,,,been in every state including alaska and hawaii....of them all, Iowa has the friendliest people.
05:30 AM Lambda_Aurigae: and about 1 in 50 people(or so it seems) around here have a concealed carry permit and actually carry
05:35 AM Jartza: so
05:35 AM Jartza: I started playing with these cortex m0+ devkits I've had on my desk
05:35 AM Jartza: little fiddling and I got them to output hsync and vsync
05:35 AM Jartza: maybe gonna try to make big brother to octapentaveega
05:36 AM Jartza: because OPV already breeded a bastard child, pentaveega
05:36 AM Jartza: that's what you get by marrying 3 chips together
05:45 AM Jartza: maybe enhanced version with faster comms (either i2c @400k or spi?) and better resolution
05:47 AM Lambda_Aurigae: Jartza, do you have a pic programmer that can do pic32mx chips?
05:58 AM Jartza: no :(
05:59 AM Lambda_Aurigae: ok..must escalate the pic programmer build then.
06:00 AM Jartza: http://www.ebay.com/itm/PICkit3-PIC-KIT3-Debugger-Programmer-Emulator-PIC-Controller-Development-board/132106332195
06:00 AM Jartza: was looking at that one day, but no idea how good it is
06:00 AM Jartza: I've done so little with pic chips
06:01 AM Jartza: those times I've done pic-stuff it's been customer project and customer has provided the tools
06:02 AM Lambda_Aurigae: pickit3 is what I have
06:03 AM Lambda_Aurigae: daym..for that price I might grab another one.
06:04 AM Lambda_Aurigae: think I paid 35 for mine.
06:16 AM Jartza: probably that's some chinese clone
06:16 AM Jartza: not sure if the firmware in it is good
06:16 AM Jartza: like usbasp for avr... you get them with $1 because some chinese made gazillion of them
06:16 AM Jartza: but they all have broken firmware and need to be reflashed in order to work
06:16 AM Jartza: for that, you need... working AVR programmer :D
06:27 AM Lambda_Aurigae: parallel port and 74125!
06:27 AM Lambda_Aurigae: I'm looking into making a pic32 programmer out of a pic16f1454 chip.
06:28 AM Lambda_Aurigae: two component if you count the pcb
06:28 AM Lambda_Aurigae: 3 if you add a header.
06:33 AM Lambda_Aurigae: with the pic32mx270f256b you could in theory do 320*200 res at 4bit color with internal sram.
06:33 AM Lambda_Aurigae: in fact, could go 8 bit color..that's only 64000 bytes
07:02 AM Jartza: hmmh
07:06 AM Jartza: Lambda_Aurigae: this cm0+ that I now have only has 8kB of ram, but 4 spi buses
07:19 AM Jartza: and dma controller for spi
07:19 AM Jartza: I'm planning to try that to push pixels out
07:19 AM Jartza: let's see
07:34 AM Emil: Jartza: stm32?
07:52 AM Jartza: Emil: yea
07:52 AM Jartza: STM32L053R8
08:16 AM Lambda_Aurigae: fun fun
10:23 AM daey_ is now known as daey
10:44 AM Arlenx: how can i measure time in microseconds? i'm using attiny85 with 8,000,000 cpu /16384(prescaler) = 488 / 1000ms so every 1ms is 0.48 cpu clk.but the problem is that i need to count in microseconds,for example i want to reset the timer and then later take the diff time in microsecond(around 10us) what's the technique for this?
10:46 AM Emil: eeeh
10:47 AM specing: Ayyy lmao
10:48 AM Emil: a) no such prescaler for system clock, you are talking about the timer clock
10:48 AM Emil: b) lol wtf, if your clock runs slower than microseconds you can't calculate microseconds :D
10:52 AM Arlenx: Emil, so i need to use higher prescaler?
10:52 AM Arlenx: i mean lower prescaler
10:53 AM Arlenx: omg i'm confused
10:53 AM Arlenx: :)
10:53 AM Emil: Arlenx: what do you actually want
10:54 AM Arlenx: Emil, i want to sample time and measure the time diff in microsecond.for example i need to trigger the ultrasonic distance sensor in 10us then turn it off, but i need elapse time in 10us
10:55 AM Emil: Arlenx: wait
10:55 AM Arlenx: i want to implement it with ISR\
10:55 AM Arlenx: not in _delay_ms
10:55 AM Emil: are you the same guy that asked how to use one before?
10:55 AM Emil: z3t0?
10:55 AM Arlenx: nop
10:55 AM Emil: well
10:55 AM Emil: https://emil.fi/jako/koodi/ping.c
10:55 AM Emil: here's one example
10:56 AM Arlenx: Emil, yep i think oing is what i need ,thanks a lot
10:56 AM Emil: np
10:56 AM Arlenx: ping
01:58 PM Hfuy: Hello
01:59 PM Hfuy: Does anyone here have any experience with the nrf24l01?
02:00 PM Hfuy: I'm trying to get a super-basic bit of code together to get one to transmit and another to receive. I've proven the electronic configuration (using arduino libraries) but I'm keen to get it working without them. I have code I believe should be sufficient, and I can set and read registers on the devices, but I can't actually pass data between them.
02:05 PM Hfuy: It's sort of difficult to debug, as there's a lot of things that have to be right.
02:10 PM Hfuy: Also, how does "cast from unit8_t* to uint8_t" lose precision?!
02:37 PM bss36504: you're converting a pointer into a value
02:37 PM bss36504: what is the code that's throwing this warning?
02:39 PM Emil: Hfuy: uint8_t* != uint8_t
02:41 PM Hfuy: Oh, yes, sorry, I see.
02:41 PM Hfuy: These Nordic RF things are a bit of a nightmare.
02:42 PM xentrac: Hfuy: well, I suppose a uint8_t* is 16 bits on AVR
02:42 PM Hfuy: Yes, I think I've solved that one.
02:43 PM Hfuy: Now I'm trying to figure out if all the stars are in alignment to get these things to transmit or receive.
02:43 PM Hfuy: It's difficult because there's no real way to debug without a microwave spectrum analyser!
02:43 PM enhering: Hi.
02:44 PM bss36504: Howdy
03:04 PM Hfuy: Pardner.
03:42 PM polprog: Hfuy: do you have something to check the hardware? what protocol does that nrf communicate with?
03:54 PM Hfuy: polprog: I've run it using an Arduino library.
03:54 PM Hfuy: The hardware is OK.
03:54 PM Hfuy: I'm also communicating OK with the NRF chips themselves, I can set and read registers.
03:54 PM Hfuy: The problem is pretty clearly my code :/
03:55 PM Hfuy: I can't even tell if it's transmitting, to be honest.
03:55 PM Hfuy: It may be.
04:28 PM julius_: hi
04:28 PM julius_: theres a sex chat going on in #electronics at the moment so im gonna double post here...
04:29 PM julius_: http://fs5.directupload.net/images/170324/3fhan3ec.png <- why would a mosfet driver show this output? the input signal is a clean pwm signal with about 5% duty rate
04:40 PM Hfuy: I think I've pretty much dead-ended, here.
04:40 PM Hfuy: Beyond random changes I've literally no idea what to try no.
04:46 PM julius_: i know the feeling
04:46 PM julius_: and i know what cehteh would say to me know....datasheet
04:47 PM Hfuy: I have the datasheet.
04:47 PM Hfuy: Like most of them, it lists all the features but doesn't really give you a "basic setup procedure" listing.
04:55 PM cehteh: julius: yes :D
05:01 PM stee is now known as stee_3
05:16 PM * julius_ waits until cehteh leaves
05:16 PM julius_: i looked at the datasheet for this mosfet driver....its gibberish
05:19 PM Emil: Hfuy: the arduino lib (rf24) is quite close to C
05:19 PM Emil: Hfuy: if you have it working on arduino you can usually rip and tear at it and rewrite the relevant sections to C
05:19 PM Emil: to reverse engieer the lib
05:19 PM Emil: julius_: output? Gate capacitance
05:20 PM Emil: julius_: do you have any impedances in series with the pwm drive?
05:27 PM Hfuy: Emil: I would, but the library is vast.
05:28 PM Hfuy: It seems very concerned over the exact timing and order of operations
05:29 PM Emil: Hfuy: have you tried https://github.com/kehribar/nrf24L01_plus
05:29 PM Emil: http://gizmosnack.blogspot.fi/2013/04/tutorial-nrf24l01-and-avr.html
05:29 PM Emil: http://www.tinkerer.eu/AVRLib/nRF24L01/
05:29 PM Hfuy: Gizmosnack is what I'm basing my work off.
05:29 PM Hfuy: Not a precise copy, but based on that.
05:30 PM Hfuy: The problem is I can't tell whether the problem is tx end or rx end.
05:30 PM Hfuy: I don't even know if it's transmitting.
05:31 PM Hfuy: I think it is, as I get a nonzero lost packet/retry count
05:31 PM Lambda_Aurigae: https://github.com/kehribar/nrf24L01_plus
05:31 PM Hfuy: but without a microwave spectrum analyser there's no way to tell.
05:32 PM Lambda_Aurigae: hmm..guess I'm late with that one.
05:32 PM Lambda_Aurigae: kehribar has both tx and rx sections separated out.
05:32 PM Hfuy: I'm looking at it.
05:32 PM Hfuy: God these things are a massive PITA.
05:33 PM Hfuy: Epic is the overcomplication.
05:33 PM Lambda_Aurigae: I just wront my own.
05:33 PM Hfuy: That's sort of what I wanted to do.
05:33 PM Hfuy: I need to implement a fairly large (tens of members) star network
05:33 PM Hfuy: all I need it to do is to send out the bytes.
05:34 PM Hfuy: All this data pipe and auto acknowledge stuff is overkill.
05:34 PM Hfuy: And, of course, it implies massive complication.
05:35 PM Hfuy: Yeah, see, this is not going to work.
05:36 PM Lambda_Aurigae: but I started with nrf2401 chips before there were a plethora of libraries out there.
05:39 PM Hfuy: That was my approach.
05:39 PM Hfuy: Because I wanted to do something slightly unusual, it seemed the best idea to learn it from the ground up.
05:41 PM Hfuy: I think I'm going to rip all my code out, and steal from this chap.
05:41 PM Hfuy: At least until I get some sort of substantive results.
05:46 PM Hfuy: What's this .DS_store file
05:48 PM Hfuy: ...and of course none of this is going to work anyway, because I'm working in the Arduino IDE.
05:52 PM Lambda_Aurigae: it's a macos file
05:52 PM Hfuy: Oh, of course.
05:52 PM Lambda_Aurigae: folder attributes file or some such.
05:53 PM Hfuy: mutter grumble macs
05:54 PM Hfuy: I'm not even really a C person.
05:54 PM Hfuy: It all comes off as inexcusably primitive to me.
05:58 PM Hfuy: Welp. I don't know what's going on. If I read (say) register 0A, I get E7 in the first byte, which is indeed the default rx address for pipe 0.
05:59 PM Lambda_Aurigae: so write in javascript.
05:59 PM Hfuy: Ha. On an 8-bit, 16MHz CPU with 2K of RAM :)
05:59 PM Lambda_Aurigae: or visual basic
05:59 PM Lambda_Aurigae: you are complaining about primitive and you are working on an 8bit processor?
06:00 PM Hfuy: Furthermore, if I write address 0A to a five-byte value beginning 0xCE, then read it, I get 206, which is 0xCE.
06:00 PM Hfuy: So I can read and write registers perfectly well.
06:04 PM Hfuy: OK here's an example. Why are there "incompatible types in assignment of uint8_t to unit8_t[5]"
06:07 PM Lambda_Aurigae: what's the line that causes that?
06:07 PM Hfuy: addr = nrf_getreg(0x0A,5);
06:08 PM Lambda_Aurigae: and the definitions of those two?
06:08 PM Hfuy: uint8_t addr[5];
06:08 PM Hfuy: uint8_t *nrf_getreg(uint8_t reg, uint8_t len){
06:08 PM Lambda_Aurigae: you are trying to assign a uint8_t value to the base of an array
06:09 PM Lambda_Aurigae: you need to do addr[1] = nrf_getreg(0x0A,5);
06:09 PM Hfuy: I don't get it. I can uart_send(nrf_getreg(foo, bar)[n])
06:09 PM Hfuy: Well yes, but nrf_getreg() will return five bytes. Or at least, a pointer to five bytes.
06:09 PM Lambda_Aurigae: actually
06:09 PM Lambda_Aurigae: you need to declare addr as a pointer rather than as an array
06:10 PM Lambda_Aurigae: and do a new array.
06:10 PM Lambda_Aurigae: that's just horked
06:10 PM Hfuy: Feh pointers.
06:10 PM Lambda_Aurigae: yup.
06:10 PM Lambda_Aurigae: pointers are a bitch.
06:10 PM Hfuy: Well, pointers seem reasonably straightforward. It's the way they sort of but not quite behave like arrays.
06:10 PM Lambda_Aurigae: better to pass the addr[] variable in and modify it in the routine.
06:10 PM Hfuy: For what it's worth, simply modifying the declaration to uint8_t *addr; works.
06:11 PM Lambda_Aurigae: ok.
06:11 PM Lambda_Aurigae: makes sense.
06:11 PM Lambda_Aurigae: pointers are always twisted and horrid unless you think in C.
06:11 PM Hfuy: Then I can use the sort of kind of implied array syntax to get at the individual bytes.
06:11 PM Hfuy: Christ knows what happens if it's an int*
06:12 PM Hfuy: Does the array syntax then give you ints?
06:13 PM Lambda_Aurigae: dunno
06:13 PM Hfuy: Anyway none of this is helping to unf!"k my RF24 issue.
06:16 PM Hfuy: ...and now I need to include a .h file.
06:19 PM Hfuy: What is it with C that it can't find header files. Ever. Under any circumstances.
06:28 PM cehteh: julius: :D
06:30 PM Hfuy: So you can't pass an int in where it expects an int array.
06:30 PM Hfuy: Despite the fact that in memory, an array of one int is... an int.
06:31 PM Hfuy: I... I can't... I can't even...
07:03 PM Hfuy: If anyone has a second, look at this: https://github.com/kehribar/nrf24L01_plus/blob/master/nrf24.c#L263
07:04 PM Hfuy: in the function nrf24_powerUpRx, the command on line 247 seems to be run when the !CS line is high, so should be ignored. Huh?
07:05 PM Emil: Hfuy: CE is active High, CSN is active low
07:05 PM Hfuy: Yes.
07:05 PM Hfuy: And CSN is high when the code on 247 runs.
07:06 PM Emil: Hfuy: they are also used differently
07:06 PM Hfuy: Oh. I guess it changes in configRegister()
07:09 PM Hfuy: I'm not sure why he's screwing around with CE in that function to be honest.
08:34 PM Hfuy: Welp, I've now tried three completely different approaches to making these RF modules work, and the only way I can do it is by using the "getting started" library example.
08:34 PM Hfuy: Otherwise - nothing.
08:36 PM Hfuy: I can't even tell if it's actually transmitting. There's no debug, no status, nothing.
08:38 PM Hfuy: If anyone can think of a way of detecting absolutely tiny amounts of microwave RF energy, so I could at least tell if anything's being transmitted, that would halve the size of the probelm.
08:48 PM darsie: Hfuy: How about single photon detection?
08:51 PM Hfuy: Outstanding.
08:51 PM Hfuy: Usually, you'd wave it near a piece of audio equipment and see what happens. But the frequencies are so high and the transmit times so short, that doesn't work.
08:54 PM Hfuy: Either my scope can't see it (which would be reasonable) or there is no activity. I can't tell which.
08:57 PM Hfuy: On the basis that this RF module is supposed to automatically retry transmissions that aren't acknowledged, and since that retry count seems to remain at zero, I assume it isn't actually transmitting.
08:57 PM Hfuy: But I can't really tell.
10:14 PM JanC is now known as Guest89300
10:14 PM JanC_ is now known as JanC