#avr Logs

Apr 11 2017

#avr Calendar

12:07 AM Thrashbarg_ is now known as Thrashbarg
01:17 AM rue_bed: Emil, he was being an ass
01:18 AM rue_bed: and getting worse quickly
01:18 AM rue_bed: dispite all the time zones, there are times where everyone is asleep
01:20 AM xentrac: are there?
01:21 AM rue_bed: hmmmm, my main machine is still using a 2.6.38.8 kernel
01:21 AM rue_bed: prolly the source of the nfs issues
01:22 AM rue_bed: nfs 4!?
01:43 AM LiaoTao: rue_bed: That's a pretty old kernel
01:43 AM LiaoTao: Any particular reason for staying with it?
01:43 AM rue_bed: yea, the system was installed 18 years ago
01:43 AM rue_bed: just updates since
01:44 AM rue_bed: I dont think since I'v made changes, I'v trusted any of the v3 stability
01:44 AM rue_bed: I usually get the last release of the last major version
01:44 AM LiaoTao: Latest kernel has like 3 times the amount of code
01:45 AM rue_bed: well yea
01:45 AM LiaoTao: Of course, a lot of it is (unnecessary to you) driver support
01:45 AM rue_bed: I should see if I can even compile a new kernel
01:46 AM rue_bed: gcc 4.9.2
01:46 AM rue_bed: bet I need something newer
01:46 AM LiaoTao: No that's fine
01:46 AM rue_bed: oooo
01:46 AM rue_bed: looks like I was playing with 3.19.8
01:47 AM rue_bed: I wonder why that was a nogo
01:47 AM LiaoTao: IIRC 3.19 had a few issues
01:47 AM LiaoTao: Lots of changes going on right about then
01:47 AM rue_bed: er, ftp.kernel.org is gone?
01:48 AM rue_bed: WTF
01:48 AM LiaoTao: Since January this year
01:48 AM rue_bed: WTF!!?!?!
01:48 AM LiaoTao: Oh, March
01:48 AM rue_bed: is there still ftp access?
01:48 AM rue_bed: ftp. .org ?
01:48 AM LiaoTao: https://www.kernel.org/shutting-down-ftp-services.html
01:49 AM rue_bed: wtf
01:49 AM LiaoTao: I think it's understandable
01:49 AM LiaoTao: FTP really is ancient by today's standards
01:50 AM xentrac: so is ASCII
01:50 AM xentrac: and the x86 instruction set
01:51 AM rue_bed: ok, so were downloading with http now?
01:51 AM LiaoTao: xentrac: Don't be factitious, or are you actually defending the complex mess and workarounds required to maintain FTP servers?
01:51 AM rue_bed: is the linux kernel going closed distribution!?
01:52 AM LiaoTao: Uh
01:52 AM LiaoTao: Spelling correction
01:52 AM LiaoTao: facetious
01:52 AM LiaoTao: Thanks hunspell
01:52 AM rue_bed: ah, via http
01:52 AM rue_bed: 3.16.43
01:53 AM rue_bed: 77M, ouch
01:53 AM rue_bed: and thats compressed
01:54 AM LiaoTao: rue_bed: My kernel source folder is 1.4G with compiled object files
01:55 AM xentrac: as a user I often find FTP servers more useful than HTTP servers
01:55 AM rue_bed: I'm haivng to download it again cause the browser did got-knows-what with it
01:55 AM xentrac: I can't say anything about how much effort they are to maintain because I've actually never maintained one
01:55 AM LiaoTao: That's for 4.10, though
01:55 AM LiaoTao: Yours should be a bit smaller
01:55 AM xentrac: while I've been doing HTTP servers since 1994
01:56 AM rue_bed: wtf, version number change? 3.16.43 is newer than 3.19.8?
01:57 AM LiaoTao: rue_bed: Because 3.16 was a long term release
01:57 AM LiaoTao: So the final 43 was released after the final 8
01:57 AM LiaoTao: Backported patches etc.
01:58 AM rue_bed: that hurts my head
01:58 AM xentrac: Linux version numbers have been like this since the parallel 1.2 and 1.3 series
01:58 AM rue_bed: so 3.19.8 was a branch that died and was re-absorbed
01:59 AM LiaoTao: Well you've got stable and long term releases since forever
01:59 AM rue_bed: yea
01:59 AM rue_bed: only use even numbers...
01:59 AM xentrac: I mean I'm not going to say it's a good idea but it's not a new practice
02:00 AM rue_bed: :) -J now, not -j, not -z
02:01 AM rue_bed: yay, make menuconfig works
02:08 AM rue_bed: PCI support is new?
02:08 AM rue_bed: hmm, update req'd
02:10 AM LiaoTao: Many if not all subsystems have been revised in some way or another
02:11 AM LiaoTao: There's been an absolutely massive influx of development since 2.6
02:13 AM rue_bed: I wonder if microsoft changed their fees
02:13 AM rue_bed: windows CE is the small device compeditor, isn't it?
02:15 AM xentrac: yes, "wince"
02:16 AM xentrac: although I think they may have dropped that for Windows Phone, which I think may be a continuation of Wince
02:16 AM rue_bed: windows phone!?
02:16 AM rue_bed: oh man
02:17 AM xentrac: yeah, they injected some Manchurian Candidates into Nokia who sold Nokia to Microsoft
02:18 AM rue_bed: I heard that since the ms stuff has now expired they can try to make phones again
02:19 AM LiaoTao: Does CE also have that retarded per-CPU licensing?
02:19 AM rue_bed: one cpu is all you will ever need
02:20 AM rue_bed: and 640k of ram
02:20 AM rue_bed: :-O "USB touchscreen driver"
02:20 AM rue_bed: O M G
02:20 AM rue_bed: thats what I need for the thing from the HP printer!
02:21 AM rue_bed: crap, its midnight,
02:22 AM rue_bed: cant I just have ONE good nights sleep
02:23 AM LiaoTao: Living the fast life
02:23 AM LiaoTao: Staying up after midnight compiling kernels
02:23 AM rue_bed: atleast I'm IN bed
02:24 AM rue_bed: its futile, I cant remember all what hardware I'm using
02:24 AM rue_bed: but browsing it is cool
02:25 AM LiaoTao: rue_bed: Did you enable /proc/config support? Might still have your old config
02:25 AM rue_bed: yes, but I'v never had a successfull upgrade from an old config
02:25 AM rue_bed: there are so many things that aren't covered in a new kernel
02:26 AM LiaoTao: Yeah, I suppose
02:26 AM rue_bed: you dont know what they are untill you walk it
02:28 AM rue_bed: man would I love to get ahold of an HP engineer and ask if that screen is supported by any of the current drivers in the linux kernel
02:28 AM rue_bed: have you ever heard of LJlinux?
02:29 AM rue_bed: it might be what the printer runs, that or CE, its unclear
02:29 AM rue_bed: some of the file systems are encrypted,
02:30 AM rue_bed: there is a linux image of some kind, but I cant get at the main filesystem
02:30 AM LiaoTao: No idea whatsoever
02:30 AM rue_bed: that said, everything on it is FAT, suggesting windows
02:33 AM rue_bed: odd noise
02:35 AM rue_bed: dunno, maybe it was the ups doing a test
02:36 AM rue_bed: or the phone system is eating ANOTHER drive
02:36 AM rue_bed: (so far its 5 drives, 2 power supplies, and a motherboard)
02:37 AM LiaoTao: rue_bed: Maybe you should get some sleep - you're going into rant mode!
02:45 AM rue_bed: mmm
02:45 AM rue_bed: less than 6 hours sleep now
02:48 AM Emil: rue_bed: many people can be asses, just ignore then
02:50 AM Emil: and wtf :D who sticks to a versiob 2 kernel
02:51 AM Emil: continuous integration is necessary in the fight against entropy
03:18 AM Jartza: Emil: umm. my current customer project involves some IoT routers... two of them run linux 2.6
03:19 AM Emil: Jartza: abort
03:20 AM Emil: Jartza: why bot just compile a newer kernel for them
03:20 AM Emil: Unless you were just given those routers
03:29 AM Jartza: because support
03:29 AM Jartza: and because I have no schematics
03:30 AM Jartza: in embedded world, it's not that plug'n'play to just compile it
03:33 AM tacmot: hi
03:34 AM tacmot: Does someone know which GSM Modules are easy to pair with the AVR xmega A1 explained?
03:43 AM Jartza: tacmot: SIM900a
03:43 AM Jartza: it's just uart + at commands
03:43 AM Jartza: I bet most of them are similar
03:45 AM Jartza: there are plenty of manufacturers, all of them I've seen use uart or spi
03:47 AM Emil: Jartza: do you usw them?
03:48 AM Emil: Jartza: mitä liittymää käytät niissä? I have bee trying to find a suitable one for a while now
03:49 AM Emil: I have some sim800 boards assembled
04:06 AM tacmot: Jartza: Is there any soldering required, when pairing the SIM900a
04:07 AM Emil: tacmot: depends what you buy
04:07 AM Emil: mate pls
04:07 AM tacmot: sorry for stupid questions i am a noob in electronics
04:07 AM Emil: if you buy a diy soldering kit you need to solder
04:08 AM Emil: if you buy a completely assembled version you dont need to soldwe
04:08 AM Emil: china stores usually dont have the headers soldered, adafruit etc tell you if you need to soldee
04:10 AM tacmot: i think i will begin every sentence with "sorry i am a noob in electronics,...."
04:10 AM Emil: no
04:11 AM Emil: you apply common sense
04:12 AM tacmot: if i buy this one: https://www.aliexpress.com/item/SIM800L-GPRS-GSM-Module-SIM-Board-Quadband-L-shape-Antenna-for-MCU-Arduino/32700859160.html, Is there any soldering required ?
04:13 AM Emil: the header probably
04:13 AM Emil: also download the app
04:13 AM Emil: you get better prices
04:13 AM tacmot: the app? which app?
04:14 AM sabor: the ali app
04:14 AM tacmot: oh thanks
04:14 AM sabor: it lets you save 0.2% and bugs you all the time with useless messages
04:15 AM Emil: hehe
04:15 AM sabor: tacmot: the pictures show the header is soldered onto this sim800 board, so you could connect it using a few jumper wires
04:15 AM Emil: sabor: that tells nothibg
04:16 AM Emil: it is probably unsoldered
04:16 AM sabor: Emil: but if it's not soldered on it asks for a dispute ;)
04:16 AM tacmot: Emil: By header you mean the yellow Pins named "5V/4V", "GND", "VDD", "SIM_TXD", etc???
04:16 AM sabor: exactly
04:16 AM Emil: sabor: lol wat
04:16 AM Emil: sabor: ali aint ebay
04:17 AM Emil: you wont get a refund
04:17 AM sabor: i got lots of refunds for things which were provably not ok
04:17 AM _ami_: Emil: me too.. they refund money if product is not okay.
04:18 AM sabor: tacmot: you can connect using these wires: https://www.aliexpress.com/item/-/32712747659.html
04:19 AM tacmot: Emil: The picture shows that i could use jumperwires to connect the GSM Module with the Xmega-A1. How would i know that i need any soldering?
04:20 AM sabor: tacmot: many modules come without the pin headers
04:20 AM tacmot: ok, cool thanks sabor, one problem less
04:21 AM tacmot: and this connection between the GSM module and Xmega is called UART?
04:22 AM sabor: yes, the ond the xmega you use the UART
04:22 AM tacmot: I use C with avrlibc to let the AVR do some stuff. Are there Libraries in C for the GSM Module ?
04:25 AM sabor: there's a lot of ugly arduino stuff on the web...
04:26 AM tacmot: yes but, does it also work with the xmega
04:26 AM tacmot: ?
04:26 AM tacmot: i have no experience in stuff like that
04:26 AM LiaoTao: sabor: No kidding
04:26 AM Emil: tacmot: you can input "avr sim800l" to your favourite search engine
04:27 AM tacmot: Emil: ok thanks, i will ask better questions now
04:30 AM sabor: tacmot: this looks interesting http://www.atmel.com/images/doc8016.pdf
04:31 AM tacmot: wow thanks
04:31 AM tacmot: think i have some material to read before bothering you again
04:32 AM polprog: in most cases everything is in the docs
04:32 AM tacmot: yes but i am a noob and i dont know nothing
04:33 AM polprog: i was a noob a yeqr ago ;)
04:33 AM sabor: atmel writes fantastic docs, they're worth reading
04:34 AM tacmot: sabor: yes i know, but for a beginner its like information overload
04:34 AM sabor: yeah, hehehe
04:35 AM Thrashbarg_ is now known as Thrashbarg
04:44 AM Emil: that's a nice appnote
04:51 AM julius: hey guys
04:51 AM julius: anybody from the us here?
04:52 AM tacmot: Why in the world is every pair of numbers in the PDU-String-receiver in the AT protocol flipped?
04:53 AM tacmot: e.g. from the docs (http://www.atmel.com/images/doc8016.pdf, page 10)
04:54 AM tacmot: original number: +4712345678 --> what needs to be given to the GSM module: 7421436587
04:55 AM julius: from my newbie perspective that sounds like a bad idea
04:56 AM julius: good luck, using gsm with a avr sounds interresting
05:05 AM tacmot: Can I buy this USB-TTL cable (https://www.reichelt.de/?ARTICLE=133760&PROVID=2788&wt_mc=amc141526782519998&gclid=CjwKEAjw_bHHBRD4qbKukMiVgU0SJADr08ZZoUxikpglGGwSmZacH2eT2xwKqO9Agyiq678kyghEmxoCTp3w_wcB) and connect this GSM MODULE (https://www.aliexpress.com/item/SIM800L-GPRS-GSM-Module-SIM-Board-Quadband-L-shape-Antenna-for-MCU-Arduino/32700859160.html) to my PC and start doing AT command from my linux command line ?
05:08 AM tacmot: no i need an adapter,
05:08 AM tacmot: do i?
05:09 AM polprog: check if linux supports the chip
05:37 AM Emil: tacmot: if you order from ali already then order the usb to serial cable from there, also
05:37 AM Emil: cp2102
05:37 AM Emil: it's the best imho
05:58 AM tacmot: this one ?https://www.aliexpress.com/item/CJMCU-CP2102-MICRO-USB-to-UART-TTL-Module-6Pin-Serial-Converter-UART-STC-Replace-FT232-NEW/32651396341.html?spm=2114.01010208.3.1.j5pPxQ&ws_ab_test=searchweb0_0,searchweb201602_3_10152_10065_10151_10068_10136_10137_10060_10138_10062_10156_10153_10141_10056_10055_128_10054_10059_10099_10103_10102_10101_10096_10148_10147_10052_10053_10142_10107_10050_10143_10051_10084_10083_10080_10082_10081_10110_10
05:58 AM tacmot: 111_10112_10113_10114_10078_10079_10073_10070_10123_10124-10050,searchweb201603_9,afswitch_1,ppcSwitch_7&btsid=eeb38e88-fc07-49c8-8013-fafd0084bc54&algo_expid=c69ef896-1b22-4ec3-90e2-347f176749dc-0&algo_pvid=c69ef896-1b22-4ec3-90e2-347f176749dc
05:58 AM * Tom_itx stands back up after being knocked down by that link
05:59 AM Emil: tacmot: mat
05:59 AM Emil: e
05:59 AM Emil: pls stop
05:59 AM tacmot: ok
05:59 AM Emil: tacmot: you can link just the item link
05:59 AM tacmot: chill
05:59 AM tacmot: how ?
05:59 AM Tom_itx: tinyurl
05:59 AM Emil: or from the site directly
06:00 AM tacmot: https://tinyurl.com/khhcjl5
06:09 AM Emil: https://www.aliexpress.com/item/1PCS-CP2102-USB-2-0-to-TTL-UART-Module-6Pin-Serial-Converter-STC-Replace-FT232/32717417395.html
06:09 AM Emil: There you go
06:09 AM Emil: Take away everything after the "?"
06:09 AM tacmot: Emil: use tinyurl please
06:10 AM tacmot: now you know how it feels
06:10 AM LeoNerd: You probably don't need the description slug
06:10 AM tacmot: mate pls
06:10 AM Emil: tacmot: are you fucking stupid?
06:10 AM LeoNerd: Oh huh.. you /do/. You can remove them from eBay or Amazon
06:10 AM LeoNerd: But apparently not aliex
06:11 AM Emil: LeoNerd: Yeah I was surprised also
06:15 AM tacmot: on my xmega there is a jumper connected between "RX"-"TX" on the header, so i cant connect my GSM modem to those, can i?
06:33 AM noHitW_work: nice, i got analog oscilloscope and 2 stk500's for free
06:33 AM Emil: noHitW_work: noice
06:35 AM noHitW_work: i rejected an audio DSP kit and now im regretting it
06:39 AM Lambda_Aurigae: never turn down free junk!
06:41 AM jaagr: :)
06:41 AM noHitW_work: oh nice, there was a brand new atmega16 in the stk500 case
06:44 AM Lambda_Aurigae: my stk500 came with one
06:44 AM Lambda_Aurigae: don't think I ever used it.
06:44 AM Lambda_Aurigae: just wired straight to the atmega32 I was using already.
06:45 AM Lambda_Aurigae: it kinda bugged me that I couldn't drop the atmega32 right on the stk500 board though.
06:46 AM Lambda_Aurigae: junk hauler is coming to the office next week so this weekend I'm gonna go spend a couple of hours ripping control boards out of old copiers.
06:46 AM Lambda_Aurigae: they have lots of nice motor controllers and such.
06:46 AM Lambda_Aurigae: should probably restock steppers from them too.
06:46 AM Lambda_Aurigae: think I'm down under 100 steppers these days.
06:47 AM Jartza: uuh
06:47 AM Jartza: steppers <3
06:49 AM Lambda_Aurigae: that still looks like a nutsack to me.
06:49 AM Jartza: hehe
06:49 AM Lambda_Aurigae: what kind/size steppers would you prefer Jartza ?
06:50 AM Jartza: nema17 size
06:50 AM Jartza: or nema23 :)
06:51 AM Jartza: preferably somewhere around 40-45Ncm (60-70oz.in)
06:51 AM Jartza: I'm building fully DIY 3d printer
06:52 AM Lambda_Aurigae: will see what I can find for you.
06:52 AM Lambda_Aurigae: most of what I have is much larger.
06:52 AM Jartza: large ones are interesting too, for CNC :)
06:52 AM Jartza: which I yet do not have a place for, but plans have been made
06:53 AM Jartza: although nema23 would run that fine too
06:53 AM Jartza: how big steppers you have then?
06:53 AM Jartza: nema42 is pretty crazy
06:54 AM Lambda_Aurigae: https://picclick.de/Xerox-Motor-Ste-59D5001-147-0155-252657864503.html
06:54 AM Lambda_Aurigae: just got hold of several of those.
06:55 AM Jartza: hmm. looks nema17 to me
06:55 AM Jartza: which I think means the attachment holes are 1.7" apart
06:55 AM Jartza: so about 43.2mm
06:56 AM Lambda_Aurigae: I need to figure out all the nema sizes and what they mean.
06:56 AM Lambda_Aurigae: never really bothered.
06:56 AM Lambda_Aurigae: these have a little rotary encoder on the back end.
06:56 AM Lambda_Aurigae: clear plastic disc with lots of black lines around the perimeter
06:57 AM Lambda_Aurigae: and a sensor module that looks like a dual sensor.
06:57 AM Lambda_Aurigae: got 4 of them...they are going to become a cnc or 3d printer or something.
06:57 AM Lambda_Aurigae: should be awesome positioning.
06:59 AM Lambda_Aurigae: http://www.piclist.com/techref/io/stepper/nemasizes.htm
06:59 AM Lambda_Aurigae: there we go!
07:03 AM Lambda_Aurigae: unfortunately these are custom steppers for xerox colorqubes and don't have a real nema extended id on them.
07:04 AM Lambda_Aurigae: and all the steppers I have are 24V
07:11 AM Jartza: rotary encoder is awesome!
07:11 AM Jartza: and doesn't really matter if it's nema17 but "close to that size"
07:11 AM Jartza: my printer will run on 24V power :)
07:13 AM Jartza: as I'm anyway making my own printer, I can make my own attachments to motors
07:14 AM Jartza: so it doesn't matter that much
07:14 AM Lambda_Aurigae: see if I can find you 4 matching....dunno if they will have encoders though...the encoder ones I keep for myself...stingy, doncha know.
07:16 AM Jartza: it's okay :)
07:16 AM Lambda_Aurigae: ok..off to work
07:16 AM Lambda_Aurigae: or some vague resemblence thereof.
08:08 AM julius: Lambda_Aurigae, under 100 steppers....dude, youre in trouble ;)
08:30 AM julius: finally, this fucking i2c rtc module talks to the atmega...
08:30 AM dunz0r: Connect all the <100 steppers up and build a really long stepper-snake.
08:33 AM cehteh: takling while fucking is annoying
08:37 AM julius: in my makefile it says: CFLAGS += -funsigned-char does this mean that uint8_t is identical to char in my code?
08:45 AM Lambda_Aurigae: http://stackoverflow.com/questions/20518527/gcc-force-compiler-to-use-unsigned-char-by-default
08:51 AM julius: yeah that is maybe not my problem after looking deeper
08:51 AM polprog: why not dig char, int and long and tell the compiler what do you want excatly?
08:51 AM julius: i would like todo that, but im confused about what is happening here
08:53 AM julius: im pretty sure that the i2c chip returns a uint8_t which goes from 0-59, now i want that converted to a readable output on my terminal. just sending the uint8_t does not work because it starts a 0 and counts up while in the ascii table the zero is 48(dec)
08:53 AM julius: then i tried: char output[7]; uint8_t tmp = getSeconds(); itoa(tmp, output, 10);
08:54 AM julius: which also does not work, the terminal displays values up to 89 and then starts from 0 again
08:54 AM Lambda_Aurigae: do you understand what itoa does?
08:54 AM julius: no
08:54 AM julius: i thought i did
08:54 AM Lambda_Aurigae: it takes a number, integer range(probably 16bit) and puts out an ascii string of the numbers
08:55 AM polprog: it converts a number to string, namely
08:55 AM Lambda_Aurigae: so send it 0x02 and it gives you "2"
08:55 AM Lambda_Aurigae: send it 0xff and it gives you "255"
08:55 AM polprog: very useful function
08:55 AM julius: ok, that sounds about what i want
08:55 AM Lambda_Aurigae: not really
08:56 AM polprog: why?
08:56 AM polprog: you want to get a number of secs
08:56 AM Lambda_Aurigae: well, yeah, it really should...will give you "0" "1"..."58" "59"
08:56 AM polprog: send the output of itoa to terminal!
08:56 AM Lambda_Aurigae: but it is going to give you 1 to 6 characters.
08:56 AM Lambda_Aurigae: or however many.
08:57 AM julius: why not 2 characters for 10, 11, 12 and 1 for 0,1,2,3... ?
08:57 AM julius: polprog, isnt that exactly what i did with the code line i posted?
08:58 AM Lambda_Aurigae: well, for a 16 bit integer it will be up to 5 digits plus terminating 0x00
08:59 AM julius: ah ok
08:59 AM julius: only got a uint8_t
08:59 AM Lambda_Aurigae: so it could be up to 3 digits plus terminating 0x00 so 4 total.
09:00 AM Lambda_Aurigae: can you send a string across that data connection and have it displayed correctly?
09:01 AM Lambda_Aurigae: send "Hello World!"
09:01 AM julius: let me try
09:01 AM Lambda_Aurigae: oh good glub...that should have been the first thing to try!
09:01 AM polprog: http://i.imgur.com/iWKad22r.jpg
09:02 AM Lambda_Aurigae: https://www.redbubble.com/people/firstdog/works/13061294-head-desk.
09:02 AM Lambda_Aurigae: https://www.redbubble.com/people/firstdog/works/13061294-head-desk
09:03 AM polprog: good luck, gtg
09:05 AM julius: char char_array[] = {'a','b','c','d','e',0x00};
09:05 AM julius: that i can send
09:06 AM julius: gets display without the 0x00 at the end
09:06 AM Lambda_Aurigae: so, replace the itoa() statement with output="Hello\n";
09:07 AM Lambda_Aurigae: we are trying to eliminate things...you need to test each individual part then start testing them together.
09:08 AM Lambda_Aurigae: I don't know that I've seen anywhere that you have verified that the getSeconds() thing works...but I might have scrolled past that.
09:09 AM Lambda_Aurigae: or, have you tested the itoa() function by putting a known number in the tmp variable?
09:10 AM julius: char output[7] = "Hello\n"; <- that works
09:10 AM Lambda_Aurigae: ok
09:10 AM Lambda_Aurigae: so, next, you need to test the itoa function
09:11 AM julius: the getSeconds thing i did not test yet...i was expecting it to work since the numbers are climbing
09:11 AM Lambda_Aurigae: itoa(43,output,10);
09:12 AM julius: sends 43
09:13 AM Lambda_Aurigae: then we have eliminated two suspects
09:13 AM Lambda_Aurigae: so, what's left?
09:13 AM julius: the getSeconds
09:14 AM Lambda_Aurigae: simple process of trial and elimination. This is used in everyday troubleshooting or diagnostics.
09:14 AM julius: let me look at its output as hex on the terminal
09:14 AM Lambda_Aurigae: if you do anything in life more complex than "Woudl you like fries with that?" it is something you need to learn.
09:14 AM julius: 3b is 59, after that it should go back to 00
09:17 AM julius: great it starts at 30 0d and ends with 38 38 0d
09:18 AM julius: hex would display the actual number and then "\r" and "\n" for newline
09:19 AM julius: so the \r \n somehow get mangled up into the first number from what i understand
09:22 AM julius: and yes i would like to have fries with that!
09:23 AM julius: actually, im gonna get me some "döner" with fries right now....later
09:39 AM -!- #avr mode set to +o by ChanServ
09:40 AM rue_house changed topic of #avr to: 8 bit atmel microcontrollers. http://wormfood.net/avrbaudcalc.php
09:41 AM rue_house changed topic of #avr to: 8 bit atmel microcontrollers. http://wormfood.net/avrbaudcalc.php http://www.engbedded.com/fusecalc/
10:22 AM specing: change topic to Make Carabia Great Again!
10:28 AM NoHitWonder: i have now 3 stk500 kits
10:28 AM NoHitWonder: thrusday i'm gonna go back and take anything that is left there
10:28 AM Emil: You really do little with them
11:08 AM julius: any software recommendations for serial communication under linux with a avr?
11:08 AM LeoNerd: I usually use socat
11:09 AM _ami_: julius: minicom or gtkterm (GUI)
11:11 AM julius: im currently using a hc05 and bluetooth-terminal with my phone....isnt that basically the same?
11:52 AM julius: looks like i can connect to the hc05 module with: rfcomm connect 0 98:D3:31:30:9F:61 which shows: Connected /dev/rfcomm0 to 98:D3:31:30:9F:61 on channel 1 and the hc05 red led changes its blink rate. the same rate as when my phone is connected to it. that looks ok
11:53 AM MacDefender: What about using screen in the shell? Done this a few times with macOS here but screen should exist in Linux too I guess?
11:55 AM MacDefender: screen /dev/ttyS0 19200,cs8 <- or something similar in the shell should work
12:00 PM julius: yes i know screen. let me try
12:02 PM julius: ah....havent installed it on my laptop....just need to update apt and then we go
12:02 PM julius: whats the ,cs8?
12:04 PM JanC_ is now known as JanC
12:04 PM julius: [screen is terminating] is the immediate reaction
12:13 PM polprog: MacDefender: screen works fine
12:13 PM polprog: overall i find miniterm do the job on linux (at least with buspirate)
12:15 PM MacDefender: The cs8 should set the data transfer to 8 bits per byte
12:16 PM MacDefender: And make sure to use the correct /dev/tty... device
12:18 PM polprog: yeah, later you can make a udev rule, mine attaches to /dev/buspirate
12:18 PM MacDefender: The great thing with screen is that it exist nearly everywhere (as said even in macOS) so you always can connect to serial devices without any additional software and it is scriptable
12:18 PM polprog: yeah, screen is awesome
12:47 PM Emil: julius: I use my own C software
12:49 PM _ami_: probably i made a fastest AVR usbasp programmer :) ~ 3MBps speed!
12:49 PM specing: by overclock?
12:50 PM _ami_: specing: no, by using another microcontroller. :P stm32f103
12:51 PM _ami_: i can go beyond 3Mbps but it seems AVR uses internal clock while getting programmed so the max speed is 4 MHz
12:52 PM specing: :)
12:52 PM aczid: wow cool :D
12:53 PM _ami_: will make the code opensource after cleaning the code a bit.
12:54 PM specing: not libre?
12:54 PM _ami_: specing: libre?
12:54 PM _ami_: oh.. you meant free?
12:56 PM _ami_: obviously it would be free,
12:56 PM specing: no
12:56 PM specing: free as in freedom
12:56 PM _ami_: oh yea.. obviously
12:57 PM Emil: _ami_: no, it uses whatever clock you have available by fuses
12:58 PM _ami_: Emil: umm.. no this is not the case in my testing. it did not work reliably for > 4 MHz speed
01:03 PM _ami_: i am pretty sure for entering into programming mode, it uses internal clock
01:05 PM Emil: you are wrong
01:06 PM Emil: Though I would super really prefer if always used the internal rc
01:06 PM Emil: if it*
01:06 PM Emil: Would stop reprogramming issues completely
01:07 PM _ami_: Emil: any reason why it did not work for > 4 Mhz. 16Mhz ext. crystal and atmega16a fuse is correctly set
01:08 PM Emil: _ami_: because the maximum is f_cpu/4
01:08 PM Emil: Not f_cpu/2
01:09 PM _ami_: its by 2? no?
01:09 PM Emil: no
01:09 PM Emil: it's by 4
01:09 PM _ami_: oh.. i thought its by 2
01:09 PM _ami_: oh thanks!
01:11 PM julius: 3mbit/s, thats 375kbyte/s ?
01:11 PM Emil: yes
01:11 PM julius: and how big is the biggest avr flash memory?
01:11 PM Emil: Always use Mb or MB and kb or kB
01:11 PM Emil: julius: 256k iirc
01:12 PM julius: so yeah, it flashes really fast
01:12 PM julius: but it looks like overkill to me
01:12 PM Emil: but that 3Mb/s is only the raw medium access speed
01:12 PM Emil: doesn't take into account protocol overhead
01:12 PM Emil: which when designing links is suuuuper annoying
01:13 PM Emil: like
01:13 PM julius: ok, so its not that fast
01:13 PM julius: probably makes sense if you program >100kb
01:13 PM Emil: Like
01:13 PM julius: kB
01:14 PM Emil: let's say you have a radio link that you can modulate at 1k
01:14 PM Emil: so your raw medium access speed is 1k
01:14 PM Emil: But then you need redundancy because fuck you that's why and you instantly lose like at least 50% of your link capacity
01:15 PM Emil: (wel, 25%-5% if you are good and use advanced codings and your link is quite clear)
01:16 PM Emil: and then you need framing because raw bitstream is raw_bitstream
01:16 PM Emil: So you have to come up with a scheme for that
01:16 PM Emil: there goes at least 25% again
01:17 PM Emil: and then comes application overhead :D
01:17 PM Emil: and encryption overhead :D
01:17 PM julius: stop it
01:17 PM Emil: and handshake overhead :D
01:17 PM julius: how am i supposed to sleep today
01:17 PM julius: all this overhead ;)
01:17 PM Emil: I mean, https://emil.fi/jako/koodi/overhead.cpp seems like god tier already :D
01:18 PM julius: argh, assembler
02:57 PM polprog: which general use opamp would be best for a small audio amp?
02:58 PM Emil_: polprog: signle supply? rail to rail? cost? bom?
02:59 PM Emil_: single*
02:59 PM Emil_: power?
02:59 PM cehteh: there are integrated audio amp IC's .. prolly better
03:00 PM Emil_: I tend to agree
03:00 PM cehteh: and yes what power and impedance do you want to drive?
03:00 PM polprog: yeah, i know, i have a couple of audio op amp ICs
03:01 PM polprog: cehteh: 4ohm speaker, but i think i'd use a transistor amp for the output stage
03:01 PM Emil_: why?
03:01 PM Emil_: You can use the small audio amp ics directly
03:01 PM Emil_: polprog: didn't you learn anything about the fan driver? ;)
03:01 PM polprog: it's in general for a school experiment, sand patterns on metal plates
03:01 PM polprog: i might use the driver... ;)
03:02 PM cehteh: and for what definition of 'best' .... cheapest, lowest noise, least power, best linearity?
03:02 PM polprog: simplest
03:02 PM Emil_: If you can think of a circuit there's a huge chance that someone made a mass produced IC for that
03:02 PM Emil_: so bom, single supply, rail to rail preferably
03:02 PM polprog: i know, it's just to drive a speaker from a wavegen
03:02 PM cehteh: simplest would be a integrated IC ... or next no opamp but only discrete transistors (sux somewhat, but educative)
03:02 PM polprog: so i can change the frequencies to show the patterns
03:03 PM polprog: i'll try the transistors
03:03 PM Emil_: matey
03:03 PM Emil_: what is your input?
03:03 PM cehteh: just google for a schematic
03:04 PM polprog: input, a signal generator or a laptop/phone if i fail to get the first one
03:04 PM Emil_: why does it need to be on a scope or to a speaker?
03:05 PM polprog: to a speaker, the scope tap will take from the generator, if any
03:06 PM Emil_: Why not just show it from a website?
03:06 PM polprog: because school s
03:06 PM polprog: "science fair"
03:06 PM Emil_: Sure it's "more tangible" if you physically get things there and show fancy equipment
03:06 PM polprog: exactly
03:06 PM Emil_: but like, science is 95% about being smart what you do :D
03:06 PM Emil_: When you get to uni you notice that it's just simulations and that's where the money is at ;)
03:07 PM polprog: sure, but i need something catchy
03:07 PM polprog: that's why theres a sig gen, scope and some bits and pieces driving the speaker
03:07 PM Emil_: Wellthen
03:07 PM polprog: and of course, magic sand
03:07 PM Emil_: just make a crude two transistor amplifier
03:07 PM Emil_: first to buffer the input and second for the output stage
03:07 PM Emil_: Or just one transistor
03:08 PM Emil_: Like class A amp
03:08 PM polprog: well, i guess that's it
03:08 PM Emil_: https://en.wikipedia.org/wiki/Amplifier#/media/File:Electronic_Amplifier_Class_A.png
03:08 PM Emil_: It is literally just that
03:08 PM Emil_: of course you need to bias the input
03:09 PM polprog: i know, i read that part ;)
03:09 PM Emil_: and the output has a dc offset
03:09 PM Emil_: If you want to do better buy a simple soic-8 audio amp
03:10 PM Emil_: like if you want to diy it
03:10 PM polprog: i have a dip8 amp
03:10 PM polprog: i think that the simple two transistor amp will do
03:12 PM Emil_: if you have a dip8 amp use it
03:12 PM Emil_: don't make your life harder than necessary :D
04:13 PM julius: anybody wants to take a guess why the seconds run from 0 to 89 and not up to 59 as expected? https://bpaste.net/show/67d6eaa9bad0
04:14 PM Emil_: julius: >9600
04:14 PM Emil_: pls stop
04:15 PM julius: im not over it, i am under your condition :)
04:15 PM Emil_: julius: if you paste code, please also provide a paste with only the relevant parts
04:15 PM julius: yes its a bit long
04:28 PM julius: https://bpaste.net/show/95f406bdd15d
04:28 PM julius: theres a shorter version
04:28 PM julius: question; why do seconds run from 0-89 instead of 0-59
04:48 PM Emil_: julius: why use hex when you can use decimal?
04:49 PM Emil_: Also why multiple calls to DDRD?
04:49 PM Emil_: Why not just DDRD|=(1<<LED1)|(1<<LED2);?
04:49 PM julius: yeah, that was bad copy and pasting
04:50 PM julius: gonna change that
04:50 PM Emil_: julius: check where that 89 is coming from
04:50 PM Emil_: if it is coming from the rtc lib then it's a "feature"
05:20 PM cehteh: julius: and really .. that code isnt that great :D
05:51 PM julius: now im missing the topic where it said to not pull down people but empower them or we will crush you
05:52 PM julius: and for your information, every of my minutes is 29 seconds longer than yours...which means i will life a lot longer
05:53 PM Tom_itx: no you will just die a longer death
05:54 PM specing: ha
06:06 PM julius: im not british
06:21 PM cehteh: :)
06:22 PM cehteh: julius: can your rtc generate a 32768 kHz clock or a once a second tick?
06:22 PM cehteh: many can do that
06:23 PM julius: one second
06:24 PM cehteh: then you run one avr timer by that, read the RTC time once at startup for sync your time and done
06:24 PM cehteh: and dont use delay
06:26 PM julius: i was to lazy to look at timers
06:26 PM julius: i know the delay is blocking
06:26 PM cehteh: the avr-libc has a some interface where you can tick it once a second and does all the timekeeping for you too, in case 1 second precision for the clock is good enough for you
06:27 PM julius: but youre not saying that the extra 29 seconds come from the wrong frequency of my avr?
06:27 PM julius: its on 1 16mhz quarz
06:27 PM cehteh: the thing is that your loop runs 1second (from delay) + the time it need to execute the other instructions on the loop
06:27 PM cehteh: thats pretty ugly
06:27 PM julius: right
06:27 PM julius: still i was expecting it to show 59 at some point
06:28 PM julius: or at least 57, 58
06:28 PM cehteh: well and your problem comes from something else, somehow you read or interpret the RTC data wrong
06:28 PM julius: youre right the thing has a quarz on it...gonna look at that in a few hours
06:28 PM arij is now known as arij_work
06:29 PM julius: need _delay_ms(1000*60*8)
06:29 PM julius: thx for the info
06:29 PM cehteh: lol
06:29 PM julius: ...*60
06:29 PM cehteh: never ever use delay for extended times (or better never at all)
06:30 PM julius: will keep that in mind
06:30 PM julius: anyway im happy that this rtc outputs anywthing at all, the first one was just not cooperative
06:30 PM julius: gn8
06:30 PM cehteh: n8
07:06 PM Tom_itx: i don't think delay_ms goes that high
08:28 PM arij_work is now known as arij
09:35 PM enhering: Hi. Good night!
11:46 PM daey_ is now known as daey