#avr Logs

Jul 07 2017

#avr Calendar

12:14 AM day_ is now known as daey
01:29 AM Emil: enhering: "in case the other fails"
01:29 AM Emil: you dont want to go to that territory
01:29 AM enhering: I need to
01:30 AM enhering: I have a module that handles all internal communications.
01:30 AM enhering: If it fails, the system crashes
01:33 AM enhering: Emil: https://filebin.ca/3SWF4L65Rkkm
01:33 AM enhering: a draft of the new version of the main bus
01:45 AM enhering: Emil: too bad?
01:52 AM Emil: enhering: stop
01:53 AM Emil: "if it crashesh"
01:53 AM Emil: It is the same for all flight controllers
01:53 AM Emil: dont be stupid ans make your design more complex than it needs to be
01:54 AM enhering: Do you think it is much more complex?
01:54 AM Emil: yes, and unnecessary
01:54 AM enhering: redundancy?
01:55 AM Emil: sigh
01:55 AM enhering: I just want to be able to handle redundancy
01:55 AM enhering: In case it is needed. Is it too bad?
01:56 AM Emil: Of course you can do it but it is a) unnecessary and b) too complex
01:56 AM Emil: Do you include 8 motors because redundancy?
01:57 AM enhering: there are 16 servo channels
01:57 AM enhering: you can
01:57 AM Emil: do you include 3 batteries because redundancy
01:57 AM enhering: you can plug as many power supplies as you want.
01:57 AM Emil: do you include 4 radio modules because of redundancy
01:58 AM enhering: you can.
01:58 AM Emil: enhering: you are missing the point
01:58 AM enhering: this can go from simple to paranoid.
01:58 AM Emil: it is already at paranoid level
01:58 AM enhering: i want to carry a lidar.
01:58 AM enhering: I do not want it to crash
01:58 AM enhering: easily
01:59 AM Emil: I dont like it either but you simply just have to trust your hardware
01:59 AM Emil: enhering: lol
01:59 AM Emil: enhering: then dont diy it
02:00 AM enhering: if I do not diy it, i have to pay a lot of money for someone to do it for me.
02:00 AM enhering: If i develop it, I can fix it.
02:00 AM enhering: I'm very near a flying prototype
02:01 AM enhering: a simple DJI drone arrives here at around 4000 USD
02:01 AM enhering: Fixing it can cost around 200USD
02:01 AM Emil: you are free to shoot yourself in the leg ":D
02:01 AM enhering: 2000USD
02:01 AM enhering: I trust my development capabilities
02:03 AM enhering: the goal of this controller is to carry expensive scientific equipment. I'd like to be able to fix this thing in antarctic land, if needed.
02:03 AM enhering: And I like developing stuff.
02:04 AM enhering: Well. I'd like to see what can be done with this. If it gets too complex I'll abort the feature.
02:05 AM enhering: Thanks for your opinion, Emil. I respect it.
02:24 AM Emil: enhering: it's awesome that you are doing this : )
03:47 AM Gerritjan: Hey all, I have a question can i use this to generate enough for the 17 dof robot power? https://www.aliexpress.com/item/Realan-1109-DC-ATX-PSU-12V-120W-Pico-ATX-Switch-Pico-PSU-24pin-MINI-ITX-DC/32783294346.html?spm=2114.search0104.3.191.ZFv4sL&ws_ab_test=searchweb0_0,searchweb201602_4_10152_10065_10151_10068_10084_10083_10080_10304_10082_10081_10177_10110_10136_10137_519_10111_10060_10112_10155_10113_10114_437_10154_10056_10055_10054_
03:51 AM Gerritjan: or is the Watt to low for that i have 17 servos Type: MG996R
04:58 AM abc13: warning: cannot set sck period. please check for usbasp firmware update. avrdude.exe: error: programm enable: target doesn't answer. 1 .....can anyone say why this error occurs??
04:59 AM abc13: I am using AVRDUDESS right now
05:04 AM Thrashbarg: check connections. The AVR isn't responding to the programmer's instructions
05:06 AM abc13: i have checked conections so many times the same programmer works fine for ATMEGA328p controller .....Thats why am confused
05:07 AM Thrashbarg: are you trying to program another ATmega? It may have had fuse bits set that prevent the clock from working, or has had ISP disabled
05:08 AM abc13: so first i need to set fuse bits for ATTINY and try ?
05:09 AM Thrashbarg: no... has this ATtiny been used for anything else or is it brand new
05:10 AM abc13: This is brand new one ....first time am trying to progrram
05:14 AM Thrashbarg: abc13: then all I can suggest is check the connections, correct power, etc
05:14 AM Thrashbarg: the only other option is it's DOA
05:17 AM abc13: ohh ok .... DOA means?
05:17 AM Thrashbarg: dead on arrival
05:17 AM abc13: ohh ok ok ......Tq
05:18 AM abc13: I will better check connection and replace the one
05:56 AM gjm: pajeet
07:16 AM abc12: Can anyone send me the link for USBASP updated firmware?
07:18 AM gjm: pajeet
07:24 AM Emil: abc12: check the site
07:24 AM Emil: http://www.fischl.de/usbasp/
07:27 AM abc12: Tq emil ....can anyone send me the link for Avrdude latest version?
07:28 AM Emil: abc12: you can use google
07:28 AM Emil: We are not your butlers
07:32 AM maciejjo_ is now known as maciejjo
08:37 AM gerrit_ is now known as Gerritjan
09:02 AM rue_bed2: 10:1 you dont need the latest vesions anyhow
09:02 AM rue_bed2: r
09:03 AM rue_bed2: if there is a problem, its quite likley cause of something unrelated to software
10:23 AM enhering: good morning.
10:27 AM NoHitWonder^: morning
11:02 AM Emil: enhering: because left
11:02 AM Emil: before I said it
11:02 AM enhering: Hi Emil.
11:02 AM Emil: enhering: it's awesome that you are doing your project
11:02 AM enhering: Good afternoon.
11:03 AM enhering: Thanks. It is hard to push this alone.
11:06 AM enhering: I understood your point yesterday. I just, after doing all I did until now, do not want to make the same as everybody did. Investing in flexibility costs more, but gives more room for improvement.
11:06 AM enhering: I'm exploring this room.
11:07 AM NoHitWonder^: how's the project enhering ?
11:07 AM NoHitWonder^: any major updates?
11:07 AM enhering: moving slowly. Sharing time with a 1 year old kid is not easy.
11:08 AM enhering: major updates. Servo module is working. Now I'm working on the comuunicatioons module to route proper data from ground to proper modules.
11:08 AM enhering: And handling normal, anomaly and emergency conditions.
11:09 AM enhering: In a simple, stupid, way.
11:10 AM enhering: Not easy
11:13 AM NoHitWonder^: yeah
11:14 AM NoHitWonder^: damn, need to reboot again
11:48 AM Emil: polprog: http://www.ebay.com/itm/201414930886
11:54 AM jeroncic: hi, i started writing my own sensor driver and i would like to make it writh. So can any one send or give me an example of good sensor library.
11:57 AM enhering: which sensor are you talking about?
11:57 AM enhering: which language are you using?
11:57 AM jeroncic: APDS-9960 Digital Proximity, Ambient Light, RGB and Gesture Sensor
11:57 AM jeroncic: C
11:57 AM enhering: have you tried arduino playground?
11:58 AM jeroncic: i have designed my own pcb, with APDS-9660 sensor and xmega128A4U
11:58 AM polprog: Emil: thanks !
11:59 AM polprog: it's cheaper and should arrive after my camp ends
11:59 AM polprog: looks like the lens is removable
12:02 PM jeroncic: http://codepad.org/i1dBQAxN is there any more sufiticated method to write register addresses ?
12:04 PM polprog: what do you mean
12:04 PM polprog: it's right imo
12:05 PM jeroncic: is this the only way to write register addresses ?
12:05 PM polprog: look how register handling is done in avr-libc
12:05 PM polprog: i dont know, i havent heard about the sensor before
12:05 PM polprog: and what you posted is just a row of defines
12:05 PM polprog: no part of this actually *writes*
12:08 PM jeroncic: AVR Libc, what is that ? i new to this site/lib ?
12:09 PM polprog: it's the thing that lets you program avrs in C language, simply put
12:09 PM polprog: because what you posted just says that register ABC is at adress XYZ
12:10 PM polprog: and i dont even know what protocol the sensor uses to communicate
12:10 PM jeroncic: I2C
12:10 PM polprog: ok
12:10 PM polprog: so you need to write a method/procedure/subroutine (whatever you call it) that sends some data via I2C
12:11 PM jeroncic: is there like a example for I2C how to implement it
12:11 PM enhering: Maybe you need to handle I2C first
12:11 PM polprog: in the datasheet for the AVR you use there is example code sending a byte over i2c
12:11 PM enhering: you can read arduino libraries too. Very informative.
12:12 PM polprog: and in the sensor datasheet theres (probably) some info about what bytes to send to the sensor to do X
12:12 PM polprog: maybe you should start with a less difficult project?
12:12 PM polprog: i dunno, led number display or some well known sensor
12:13 PM polprog: dunning-kruger af
12:18 PM jeroncic: you are right, but i rly want to learn it so i ask for you help if it is possible
12:19 PM jeroncic: http://ww1.microchip.com/downloads/en/DeviceDoc/Atmel-8331-8-and-16-bit-AVR-Microcontroller-XMEGA-AU_Manual.pdf
12:19 PM polprog: there's nothing wrong in asking
12:19 PM polprog: :)
12:19 PM jeroncic: thank you :)
12:20 PM polprog: xmega..
12:20 PM polprog: a bit complicated for a beginner
12:20 PM enhering: jeroncic: you have to get into the datasheet. No options.
12:20 PM polprog: i never got my hands on one
12:20 PM jeroncic: i have found I2C sectionon site 250
12:20 PM polprog: also that what enhering said
12:21 PM enhering: eat it, drink it, until you understand it.
12:22 PM polprog: so you have to understand how and why i2c works
12:22 PM polprog: and then follow the sensor datasheet
12:23 PM polprog: youll probably have to send adress first (I2C requires it) then register address, and then either read or write a value
12:23 PM jeroncic: ok i will start with I2C, is there like a atmel site for like I2C example or somethink
12:23 PM polprog: that's all
12:23 PM enhering: i suggest starting with arduino libraries. You can read them and follow the programmed sollutions
12:23 PM polprog: yeah
12:23 PM polprog: that's a good idea
12:23 PM Jartza: jeroncic: https://learn.sparkfun.com/tutorials/i2c
12:24 PM Jartza: I found that useful
12:24 PM enhering: And if it does not work, try again.
12:24 PM enhering: Do not forget the I2C pull-ups. Without them no I2C works.
12:25 PM enhering: I2C protocol is dependent on them.
12:25 PM polprog: 4.7k is a good value, like in the tutorial
12:25 PM jeroncic: i have pull-ups already on the PCB
12:25 PM enhering: i use 10k. Is that too bad?
12:25 PM polprog: no
12:25 PM enhering: I should learn electronics
12:25 PM polprog: it should be ok
12:26 PM enhering: time is soooo... finite...
12:26 PM jeroncic: it depends wich I2C speed you are using
12:26 PM enhering: Pull-ups limit speed?
12:26 PM polprog: yeah, there was a TI app note about pullup calc
12:27 PM polprog: that depends on bus capacitance
12:27 PM enhering: ok
12:27 PM polprog: basically fast speed + big bus = small pullup
12:27 PM jeroncic: capacitance and resistance
12:27 PM enhering: makes sense
12:27 PM polprog: but tbh you'd catch that on a scope
12:27 PM polprog: jeroncic: oh, so you're not that green :P
12:27 PM polprog: EE student?
12:28 PM jeroncic: yes, we learn a lot of theory.
12:29 PM jeroncic: but we have like not even single curse on programing MCU
12:29 PM jeroncic: like pratical, so i decided i want to learn that
12:29 PM polprog: i know an EE student from chicago who was taught basics of how comouters work on a soft-cpu on an FPGA
12:29 PM polprog: practice is as important as theory
12:30 PM jeroncic: i agree, but it is hard to start practice on your own
12:30 PM enhering: start wiring, or arduino
12:32 PM jeroncic: i hate arduino :D so the hard way it is
12:32 PM polprog: what
12:33 PM polprog: it's like the easiest electronics platform ive seen
12:33 PM polprog: 7 year old kids do stuff with that
12:33 PM jeroncic: that why i hate arduino
12:33 PM polprog: it's simplified and limited because it's simplified
12:34 PM polprog: btw, sensor datasheet shows exactly how I2C transactions go
12:34 PM enhering: I disassembled arduino and rewrote all of it for my controller.
12:34 PM enhering: Learnt a lot
12:35 PM polprog: jeroncic: so you just have to understand how the thing works and try to implement that in that XMEGA you have
12:35 PM polprog: imo the xmega part will be harder
12:37 PM polprog: gtg, happy hacking
12:38 PM jeroncic: i will try it, i found some support for XMEGA and lib for my sesor for arduino. So thx guys i hellped me a lot :D
12:38 PM jeroncic: *u
01:13 PM polprog: any good read for someone who want to build a semidigital radio?
01:13 PM polprog: wants*
01:14 PM polprog: preferably IQ modulator/demodulator based
01:14 PM polprog: i have a vague idea about how that works
01:36 PM Emil: https://www.youtube.com/watch?v=xI5GDhlvxBY
01:37 PM Emil: 乇乂ㄒ尺卂 ㄒ卄丨匚匚
01:37 PM Emil: 乇乂ㄒ尺卂 ㄒ卄丨匚匚
01:37 PM polprog: https://www.youtube.com/watch?v=oIpVN3K9Lgc
01:42 PM Emil: polprog: that's quite catchy
01:43 PM Emil: But it lacks the 乇乂ㄒ尺卂 ㄒ卄丨匚匚ness
01:43 PM polprog: samurai jack!
01:43 PM polprog: i know that
01:46 PM polprog: Emil: https://i1.jbzdy.pl/contents/2017/06/8ed6ae407fefc9d86d865c6ea66c3a27.mp4
01:47 PM polprog: fuck that asphalt wasnt 乇乂ㄒ尺卂 ㄒ卄丨匚匚
01:48 PM Casper: but why does it go boom?
01:50 PM polprog: methane most probably, its sewer
01:50 PM polprog: or those morons put something there
01:52 PM Emil: polprog: wttttff :D
01:52 PM Emil: polprog: I'd say there was some nice mix of something else, too
01:52 PM Emil: no way there's a buildup of methane like dat
01:52 PM Emil: polprog: that lupin
01:53 PM Emil: that's pretty good
01:53 PM polprog: i dont generally watch anime
01:53 PM polprog: but when i do it's samurai jack :P
01:53 PM Emil: well
01:53 PM Emil: I mean
01:53 PM Emil: "animu"
01:53 PM polprog: when i was 7
01:53 PM Emil: Avatar the last airbender, samurai Jack
01:53 PM polprog: it aired on cartoon network
01:53 PM Emil: Anime in general
01:53 PM polprog: oooh, and that
01:54 PM Emil: I mean
01:54 PM polprog: avatar
01:54 PM Emil: it's western anime iirc
01:54 PM Emil: but just because it's animu doesn't mean it's not watchable
01:54 PM Emil: if you want a good show to watch then My Hero Academia and Full Metal Alchemist: Brotherhood are nice
01:54 PM Emil: good shows*
01:55 PM polprog: hmm
01:55 PM polprog: ill see
01:57 PM Emil: https://www.youtube.com/watch?v=3JWaHYiYeE8
01:57 PM polprog: my face is laughing
02:04 PM polprog: http://windows95tips.com/
02:05 PM Emil: We should officially commence the shitpost friday
02:05 PM Emil: Started like 30 minutes ago
02:05 PM Emil: already
02:11 PM polprog: anyway, i wana build a semi-digital radio
02:13 PM Emil: whatcha mean by that
02:14 PM polprog: IQ demodulator
02:14 PM polprog: with BPSK to avr
02:14 PM polprog: so i could build a matching transmitter and transmit 1200 baud uart
02:14 PM polprog: or receive BPSK transmission
02:15 PM Emil: ummm
02:15 PM polprog: yeah
02:15 PM polprog: not much i know about that
02:15 PM Emil: buy an rtlsdr
02:15 PM Emil: r820t
02:15 PM polprog: i have
02:15 PM polprog: one of those DVB-T sticks
02:16 PM polprog: now i wanna build one myself :P and IQ seems to be faily universal
02:16 PM polprog: you can receive am, fm and stuff
02:16 PM Emil: matey
02:16 PM Emil: I mean sure
02:17 PM polprog: ok, i think i will have to read more about that
02:18 PM polprog: :P
02:18 PM polprog: nvm
02:18 PM Emil: antenna -> band pass/lowpass -> lna -> down converter -> low pass -> adc
02:19 PM polprog: lna = low noise amplifier?
02:19 PM polprog: hmm
02:19 PM Emil: yeah
02:19 PM Emil: and well, you can change the order around
02:19 PM polprog: DDC looks like a black box to me for now
02:19 PM Emil: ddc?
02:19 PM polprog: there are chips, google spat some datasheets
02:19 PM polprog: digital down converter
02:20 PM Emil: Ah
02:20 PM Emil: you want lna before filter
02:21 PM Emil: well, it depends
02:21 PM Emil: Yeah it's actually just how your design works
02:21 PM polprog: can i read more somewhere
02:21 PM Emil: theoreticall filtering first is better
02:21 PM polprog: what's the topi called
02:21 PM polprog: radio construction?
02:22 PM polprog: or something more precise
02:22 PM Emil: hm?
02:22 PM Emil: you want to know how to radio
02:23 PM polprog: ye
02:23 PM Emil: get the tv stick and play around with gnu radio
02:23 PM Emil: but
02:23 PM polprog: i already did
02:23 PM Emil: Search terms
02:23 PM Emil: dsp
02:23 PM Emil: radio engineering
02:23 PM Emil: software radio design
02:23 PM Emil: sofware defined radio*
02:28 PM Emil: https://emil.fi/jako/kuvat/2017-07-07_21-58-10_nZv5sihP.png
02:28 PM Emil: fucc
02:28 PM Emil: boi
02:29 PM Emil: went a bit 'tard
02:30 PM polprog: would you like to talk about this
02:30 PM polprog: why arent you buying from a single supplier and reducing postage costs
02:30 PM Emil: I mean
02:30 PM Emil: I just started to add things to my basket
02:30 PM Emil: and then my mouse went to the purchase now button
02:31 PM Emil: and I repeated this!
02:31 PM Emil: I don't even want to know how much it was :D
02:31 PM polprog: :D
02:35 PM Emil: https://www.youtube.com/watch?v=oIpVN3K9Lgc
02:36 PM Emil: Hmm
02:36 PM polprog: https://www.youtube.com/watch?v=kZE48P5u9rI
02:37 PM Emil: I wonder if I should film a dank maymay video
02:37 PM Emil: "EE Lyfe"
02:37 PM Emil: "EE student lyfe"
02:37 PM Emil: "0755: die"
02:38 PM Emil: "0800: shower, clothes, computer"
02:38 PM Emil: "0820: arrive at class, browse reddit/irc/..."
02:38 PM Emil: Alternatively, wake up at like 11 for 1215 class <3
02:40 PM Emil: 乇乂ㄒ尺卂 ㄒ卄丨匚匚
02:40 PM Emil: get out at like 14/16, go have some food, browse dänk mäymyäs
02:40 PM Emil: at 18 go to lab, turn the music up
02:41 PM Emil: https://www.youtube.com/watch?v=StmxHCDiLlQ
02:41 PM Emil: This is what we listen to
02:41 PM polprog: https://i.redditmedia.com/PhentX062KleQYancNDc55vheJ3Hjt0K1dNY-ojW5yk.png?w=699&s=817bfaa442fafc21db8b5fa7d9b0edd1
02:42 PM polprog: at my lab theres always music on
02:42 PM Emil: or this https://www.youtube.com/watch?v=kiGAgMVj35I
02:42 PM polprog: rave or regular radio
02:42 PM Emil: o this https://www.youtube.com/watch?v=TjULkVkfsgI
02:43 PM polprog: that's nice
02:43 PM Emil: polprog: it's AWESOME
02:43 PM Emil: you are doing electronics
02:43 PM polprog: you like kraftwerk
02:43 PM Emil: and it's just constanttly there
02:43 PM Emil: and it's FUCKING AWESOME
02:43 PM polprog: electronic music for lyfe <3
02:43 PM Emil: It's food for the EE's soul
02:44 PM Emil: like inappropriate and so not politically correct shit
02:44 PM polprog: gtg
02:44 PM Emil: cya
03:03 PM polprog: MP3 player is just an DDS signal gen
03:03 PM polprog: humans like signals
03:04 PM Emil: DDS?
03:05 PM Emil: and we fucking thrive in signals
03:05 PM Emil: We like signals and patterns so much we find them even where there arent' :D
03:05 PM Emil: arent
03:18 PM polprog: you like rave/trance?
03:21 PM Emil: sure
03:42 PM polprog: recently got a members of mayday 2cd
03:51 PM Emil: polprog: https://emil.fi/hehehe/
03:51 PM Emil: polprog: hm?
03:52 PM Emil: oh m an
04:16 PM polprog: http://polprog.net/rtfm/
04:16 PM polprog: Emil: lol
04:16 PM polprog: @ that site
04:17 PM Emil: you copycat! :D
04:19 PM Emil: https://emil.fi/jako/kuvat/2017-07-07_23-48-24_UOVzTJ5W.png
04:20 PM Emil: https://emil.fi/jako/kuvat/2017-07-07_23-50-05_mHO0KqdB.png
04:21 PM Emil: polprog: you do have excellent taste
04:27 PM polprog: Emil: :P i did that before!
04:28 PM Emil: polprog: liesssssss
04:29 PM polprog: fake news
04:33 PM day_ is now known as daey
08:52 PM enhering: Hi
09:37 PM enhering: I have another question for you, #avr people. Is there a sort of watchdog timer implemented on hardware?
09:39 PM Thrashbarg: yes
09:40 PM enhering: Dedicated hardware, Thrashbarg?
09:40 PM Thrashbarg: what ATmega are you thinking of?
09:40 PM enhering: Independent hw, out of the mcu
09:41 PM Thrashbarg: ah right, there are yea
09:41 PM enhering: do you remember a clue to it?
09:42 PM Thrashbarg: pardon?
09:44 PM enhering: sorry...
09:44 PM enhering: do you remember any one?
09:44 PM enhering: to indicate
09:45 PM Thrashbarg: I've never used one, but searching google for "watchdog timer IC" comes up with a lot of suggestions
09:45 PM enhering: Thanks a lot, Thrashbarg
09:45 PM Thrashbarg: you just need to pulse the input of it to keep it from timing out
09:45 PM Thrashbarg: heh
09:46 PM * Thrashbarg is a rubber duck :P
09:47 PM Thrashbarg: https://en.wikipedia.org/wiki/Rubber_duck_debugging
09:49 PM tpw_rules: enhering: why do you need one outside the mcu?
09:51 PM julius: morning everybody
09:52 PM enhering: I have a CPU doing a critical job. If it fails, it must be replaced by another one quickly
09:58 PM cehteh: the avrs have hardware watchdogs
09:59 PM cehteh: but be careful with it, easy way to shot yourself in the foot
09:59 PM cehteh: watchdog isnt stopped on reset and you have to pet it regulary
10:01 PM enhering: Found this article on WDTs
10:01 PM enhering: https://www.digikey.com/en/articles/techzone/2012/may/a-designers-guide-to-watchdog-timers
10:05 PM cehteh: ah .. i should read the full backlog :D
10:06 PM enhering: no problem
10:06 PM cehteh: i bet you can use a ne555 for a simple watchdog
10:06 PM Thrashbarg: hehe
10:07 PM Thrashbarg: might need two, one to detect the timeout and one to pulse the reset pin
10:08 PM enhering: A simple one, driven by capacitors, is described in the link above
10:08 PM cehteh: google gives plenty results
10:08 PM Thrashbarg: that's what I said haha
10:08 PM cehteh: yes
10:09 PM cehteh: the trouble is more about how to react correctly
10:10 PM cehteh: aka when you have 2 cpus, one as fallback, you need to be absolutely sure that they are never both 'master' at the same time, and how to sync states etc
10:10 PM enhering: If my communications module fails central module, a second one should kick in. I can do this with a mux. But in a real emergency condition, the GNC module (navigation, guidance and control) should become the master of the bus and take control of the sensors and servos to stabilize and land.
10:11 PM Thrashbarg: "The missile knows where it is at all times. It knows this because it knows where it isn't."
10:11 PM enhering: shit... corrector problems...
10:12 PM enhering: s/central module//
10:12 PM cehteh: besides mpu's fail rarely
10:13 PM cehteh: most often its the software
10:13 PM cehteh: when you run the same software on both, eventually you hit the same bug
10:13 PM enhering: Eventually not
10:14 PM enhering: This module is so critical...
10:14 PM cehteh: everyone else uses flight controllers with only one mpu :D
10:15 PM enhering: yep
10:16 PM enhering: mine can be easily upgraded. You can keep your system and upgrade a sensor module without the need to buy a new controller
10:16 PM enhering: or upgrade all mcus
10:16 PM enhering: or whatever
10:17 PM enhering: you can even fly with three sensor modules, or redundant pilots
10:17 PM cehteh: yes, but its huge and still only 8 bit for now
10:17 PM cehteh: otherwise i like the idea somewhat
10:17 PM enhering: still huge
10:17 PM enhering: prototypes are huge...
10:18 PM cehteh: but it has its drawbacks, you'll prolly waste a lot cycles on communication between the mpu's
10:18 PM enhering: help me making it smaller, better. It is open source, open hw.
10:18 PM cehteh: and you cant do fancy INS or filtering algorithms on 8 bit mpus
10:19 PM enhering: the sensor module continuously interrogate sensors and calculates statiscis. Dispersion, etc. I gain on other sides.
10:19 PM cehteh: the plan i had once was to make the software modular but still running on a single mpu (32bit stm32)
10:19 PM enhering: the kalman moduel can run on 32 bit mpus
10:19 PM cehteh: you dont need kalman :D
10:19 PM enhering: you can have a STM32 on a mcu module. Just follow the standards
10:20 PM enhering: there will be kalman... :)
10:20 PM cehteh: in theory yes, practically this getting really complex (software on different platforms, lots development work and higher prices)
10:21 PM cehteh: still go on, i look forward
10:21 PM enhering: cehteh: the classes for each module are really small.
10:21 PM enhering: and simple
10:21 PM cehteh: classes?
10:21 PM cehteh: C++?
10:21 PM enhering: C++
10:21 PM enhering: yep
10:21 PM cehteh: bleh :D
10:21 PM enhering: running. Alive and kicking
10:22 PM cehteh: flown already?
10:22 PM enhering: not yet, man.
10:22 PM cehteh: :D
10:22 PM enhering: flying is the cherry over the cake
10:22 PM enhering: I have a SPI protocol that can transfer data between modules ina reliable way
10:23 PM enhering: modules are communicating
10:23 PM enhering: lots of work already
10:23 PM cehteh: i just watch :) keep us posted
10:23 PM enhering: servos are responding
10:23 PM enhering: I keep
10:23 PM enhering: I really want to fly this soon.
10:25 PM enhering: https://pastebin.com/FkfbWWLH
10:26 PM enhering: I'm working on this now. Which modules are called in which order.
10:27 PM enhering: So the commands are correctly routed from ground to communications module, to other modules.
10:28 PM enhering: This is an attempt for the next generation of main bus: https://filebin.ca/3ScIQRphtUDF
10:30 PM enhering: There is now, also, a general module class, that handles the work that all modules have to do, including the inter module communications layer. Functional modules are written over that.
10:31 PM enhering: All classes are small and simple. Easy to fix.
10:31 PM enhering: Enough. Sorry. I talk too much.
10:32 PM Tom_itx: nobody else is
10:32 PM Tom_itx: and it sounds interesting
10:32 PM enhering: Thanks, Tom_itx
10:35 PM enhering: Biggest problem now is how to handle modular stuff in the proper way. Imagine you make a better sensor module for the system and sends one to me. I should be able to include your module class into my system with minimal effort. This means that the class you create must not only be able to manage your module, but should be able to instruct my communications module how to handle it.
10:38 PM enhering: The consequence if this requirement is, probably, that each module management class should have a master implementation, to be instantiated in the COM module. When the COM module detects your module on the bus, it should behave accordingly.
10:41 PM cehteh: dont hardcode things, make it data driven from some configuration, add a protocol version, then round robin initialize everything
10:41 PM cehteh: well .. gtg, cu
10:42 PM enhering: I'm going in that direction, cehteh
10:42 PM enhering: But simple is not easy
11:50 PM enhering: I just had this crazy idea... Imagine you have many coils radially distributed around a sphere surface. Inside the sphere you have power, your control stuff, and an addressable driver for each coil. Now you put all this stuff inside a spherical plastic bag and fill it with ferrofluid.
11:51 PM enhering: You may be able to command the coils, changing the shape the ferrofluid assumes around them.
11:51 PM enhering: This would make a nice, shape shifting, robot.
11:59 PM Casper: or not