XnkeHello, folks
jmcgnhXnke: My goodness, there's over 500 nicks listed for this channel. It's a good thing they aren't all talking at once!
XnkeI was in here talking to timemage the other week, came back to let him know what it took to fix my homebrew arduino board
jmcgnhXnke: I'm afraid that tale would be lost on me, I'm such a newb.
Xnkeessentially I designed a board that had zero chance of working as built
XnkeBecause I forgot to tie the +5V line and the VUSB line together, so that the board would only ever work if I powered the board from +5v, AND had it plugged in via USB at the same time
Xnke...that has been remedied.
Mrgoose-Anyone know what kind of speaker/wattage the iphone or smartphones in general use? It seems pretty loud for such a tiny speaker
Xnkenormally it'll be a poly cone and 1/10th watt
Mrgoose-how are they so clear/loud then
Xnkethe hard poly cone and very high db/watt rating mean it takes very little power to make loud sound
XnkeIf you look at the audio spectrum output, the sound has no lows, so you don't need much power
XnkeNormally would cut all low frequencies below 300hz, so that really reduces the power needs.
XnkeCheck out the "equal loudness curves" and it'll help you understand how much power you really need for clear, easy-to-listen-to speech
Mrgoose-https://www.adafruit.com/product/1890?gclid=Cj0KCQjwvuDPBRDnARIsAGhuAmZUsUn5pdePeY8HgRYnMAr9RPTQWCwHkPqSuzQq0iDBp3AplxOxbsIaAlkHEALw_wcB , like i have this speaker
Mrgoose-and its not very loud and it sounds tinny
Xnkewell, it is a tin speaker
XnkeAlso, the enclosure makes a big difference
XnkeAre you talking about the speakerphone on them? Because that function uses the entire surface of the display as the speaker
Mrgoose-Xnke: yea
XnkeLook into surface transducers
Xnkethat might get you what you're after
Mrgoose-ah thanks
Xnkethey don't have cones like speakers, but a piece of PC board works pretty good
Mrgoose-i think that may be what i want
Xnkethat will work for ya. the bigger the hard surface (like 4x5") the louder it will be with less power
Xnkebut, since it's any hard surface, you could use the case as your surface
theraspberrySo I've bought some pro micro's with the ATmega32u4 on it, and I'm having difficalty getting any code to run on it.
theraspberryI can flash it just fine, after hitting the reset twice. However even the standard blink script doesn't seem to work :/
theraspberryIs there anything that I may be missing here?
shbrngdodid you set the CPU info correct and are you using the correct 'variant' for that board when you build/flash ?
shbrngdoall of that matters.
shbrngdoeach atmega CPU has different addresses for things. and the board may or may not assign the pins the same. so you need the correct CPU type and correct board variant type when you compile.
shbrngdoit may be something as simple as not having the LED on the same pin for your board as it is for the board you compiled for
p0g0The pro micro is a 328p
p0g0It usually comes without a bootloader. You can flash with the ISP header tho.
theraspberryavrdude: Device signature = 0x1e9587 (probably m32u4)
theraspberryI don't think i have a 328p
p0g0maybe I have the models wrong...
shbrngdoin that case, it may just be wired differently
p0g0hang on
theraspberrythis is the specific one that I purchased off ebay - really it could be anything
p0g0nah, I have the mini and the micro confused, ny mistake...
shbrngdoport/pin mapping
theraspberrytalking about mistakes, this is the one that I actually purchased.. https://www.ebay.com.au/itm/302095098357
p0g0and I've not used the micro...
shbrngdomini/micro - yeah set the right board type, try again
shbrngdoI once ordered a new CD ROM laser for a game cube, got a laser for something else marked 'sony'
shbrngdoI still have to re-order that though
theraspberry"the right board type" - I have tried just "Arduino/Genuino Micro" aswell as the Leonardo
theraspberrysince Leonardo has the m32u4
shbrngdoyou should check the manufacturer web site, see which one to use
shbrngdoor just google around
p0g0theraspberry: was there any code on that rig when you bought it?
shbrngdounless you have the right pin/port mapping it probably won't work right for blinking the LED
shbrngdothough I suppose you could just re-map things yourself so that it starts working, see what virtual pin it's hooked to
theraspberryp0g0: It didn't seem to have anything, when I plug a new one in the only difference is it could be programmed without hitting th reset.
theraspberryI tried some keyboard sketches too, they didn't seem to work either.
shbrngdoprobably has a different pin mapping
theraspberryI wouldn't be suprised, I may message em on ebay
p0g0theraspberry: are you using the USB link or the ttl Rx/Tx?
shbrngdosee if you can add the board type to the arduino library
theraspberryusb link
shbrngdoUSB bootloaders are different
theraspberryyeah, I read about them
theraspberryI worked that part out - sorta
shbrngdoas long as you don't pooch it you won't have problems flashing
shbrngdobut you need to build the image for the correct CPU pin/port mapping
p0g0you may need the space tho...
p0g0I generally dump the bootloader on the mini...
shbrngdoright, I think they're a bit larger aren't they
shbrngdo'Catarina' bootloader
theraspberryI have an untouched one that I can dump off.
theraspberryI bought 5 lol.
Nooblet101looking for suggestions on ways to sense touch anywhere on a bronze statue
shbrngdothe USB has to be connected to the same pins on any USB-capable ATmega so that will never change, BUT the other pins for GPIO and A:D might be on different pins
p0g0you have the 8 mhz, 3.3v rig?
theraspberrythe thing is though, these boards don't have all the pins exposed, I can't use an AVR programmer also since I don't actually have one.
Nooblet101not like location but was i touched
shbrngdoNooblet101 - I've seen lamps that are touch sensitive before. I bought one for my mother back in the 80's.
shbrngdoit was a brass lamp
theraspberryp0g0: apparently "ATMega 32U4 running at 3.3V/8MHz"
p0g0theraspberry: you can make an ISP programmer from a working arduino
theraspberryI have an Uno, I was looking for it before.
shbrngdoyes, that's in the 'playground' - well documented
shbrngdo'Arduino ISP'
Nooblet101yeah need to connect that to a arduino, and I am a tad leary of using a touch sensor with the public
theraspberrybut that still doesn't help me since the board doesn't actually have the SCK pin exposed
theraspberryfrom what I can se
Nooblet101I would prefer a 12v volt not line voltage sensor just for litigous reasons
shbrngdoNooblet101 - well, if you use the A:D input maybe you can detect 50/60hz 'hum'
p0g0The picture I see on the adafruit site shows the ISP header, at the far end away from the USB hood.
shbrngdothat sounds right
p0g0the same pix on the arduinos store site...
theraspberryp0g0: https://i.ebayimg.com/images/g/3SQAAOSwTA9X8mqN/s-l1600.jpg
theraspberrythat is the exact board that I have
shbrngdothe uno has 2 ISP headers. the one for the 8u4 or whatever it is [for serial port] is unpopulated
theraspberrymaybe its that "J1" marked on the bottom right
Nooblet101prefer and end up doing may be different though theres 12v output touch sensor modules for running led touch lamps for 3$ and a level shifter or voltage divider or something should alllow simple state checks (if I undertsnad this at all)
p0g0theraspberry: OK, I see that... you have some dubious nonstandard clone then...
theraspberryI thinks o
theraspberryit would work great, if I could get it to work :$
p0g0theraspberry: I'd try using the Tx/Rx and manual reset to flash it, that might be OK.
p0g0Why not use the mini? It is cheaper, and just works...
theraspberryI want the keyboard function.
p0g0what is that?
shbrngdodubious non-standard clone might need a different 'variant'
shbrngdoyou COULD flash blink, then check each I/O pin for the blink voltage, just to see
theraspberryshbrngdo: I may do this.
shbrngdoso the LED isn't on the same pin, let's say
shbrngdoit will tell you if the pin mapping is different.
theraspberryp0g0: https://www.arduino.cc/en/Reference/MouseKeyboard
shbrngdonormally it blinks pin 13
theraspberryI can manualy set it to a pin and check it.
theraspberrytime to get a 330ohm resistor lol.
p0g0theraspberry: I think you could easily port the AVR Tx/Rx io to the keyboard buffer on a PC, at least in MS & Linux OS worlds, but it sounds like you have a plan for the 'keyboard' stuff.
theraspberrywell, I am just being a script kiddy, making it run ducky script for fun
theraspberrydefenetly must be the wrong board
theraspberryi pointed it to pin 6
theraspberryand its doing 2 sec flashes instead of 1
theraspberryping 17 is one of the leds
hashlogtheraspberry: could it be that some prescaler is enabled if it is blinking at double the speed?
hashlogtheraspberry: as far as I've seen prescaler can be enabled through fuse bits and register operation in code
p0g0Might be due to the 8 vs 16 mhz versions...
p0g0the 3.3v vs 5
laenMorning arduinoendo's! Or something.
pwillardArduinites... ;-P
theraspberryyeah got it working
theraspberryits based off the sparkfun boards
theraspberryjust need to install the proper board stuff..
pwillarddeshipu: No that name is reserved for DONGS
pwillardtheraspberry: Yeah, that is sort of not optional...
pwillardSo many variants
theraspberrywell, I know these work
theraspberryI don't mind stuffing around with em
alphaferretwhat's the smallest footprint spi controllable dp3t switch
wondiwshi, there is an Arduino Due version, but when I can't find any mention of it in the Arduino (IDE) software, how does this work?
LordCrcwondiws: Tools -> Board, select the Due there
blathijswondiws: And before that, tools -> board -> boad manager and install the "SAM core" or something similar
wondiwsblathijs, I can't find that option
wondiwsand I have version 2.0, which is newer than the stable, right?
blathijswondiws: I don't think Arduino IDE 2.0 exists, latest version is 1.8.4 or 1.8.5 IIRC
blathijswondiws: If you're using the version from Debian or Ubuntu, you might have version 1.0.x which doesn't support the Due yet
wondiwsblathijs, yes, I'm using that
blathijs"that" ?
wondiwsblathijs, I'm running debian
LordCrcblathijs: oh yeah, forgot i had installed that earlier (been fiddling with STM boards)
wondiws2:1.0.5-dsfg.... it says something like that
wondiwsLordCrc, you mean other boards apart from arduino?
LordCrcwondiws: Help -> About
LordCrcwondiws: yes
blathijswondiws: Right. You should probably install the latest version from arduino.cc (just a matter of downloading and unpacking a zipfile somewhere, such as in your homedir, no install required)
blathijswondiws: ^^ There
wondiwsLordCrc, I take it Arduino Due also uses an stm chip?
Flea86wondis: Atmel arm, not stm
Flea86Atmel SAM3X8E ARM
LordCrcwondiws: both the due and the stm32 use ARM Cortex-M3 based chips
LordCrcwell the STM32 _is_ a M3 chip
Flea86STM32 is actually a series ranging from M0 to M3 and beyond :)
LordCrccorrection, the STM32 i'm using is an M3
Flea86bleh, new keyboard :/
wondiwsLordCrc, I have here a STM32F405 on an OPTI-something F4 flight controller board
LordCrcwondiws: so my point was, the STM32-based board i'm using is using a chip that's based on the same architecture as the chip that the due uses
LordCrcthat was what i was trying to say :D
wondiwsI want to try to program it, but I also will buy an Arduino Due when I come home this evening
LordCrcah cool, i got the STM32F103 iirc
wondiwsLordCrc, I compiled the firmware for INAV-flight, that went without trouble
wondiwsbut now I'm curious how to make a "hello world" :P
Rickta59you want to program the stm32f405 with arduino wondiws ?
wondiwsRickta59, it was not on my mind, but is that possible then?
Rickta59probably not :) .. which is what I was going to mention
Rickta59st is paying some guys to port arduino to their chips
Rickta59but the 405 isn't one they have done yet
LordCrcwondiws: in case you haven't found it yet http://www.stm32duino.com
Rickta59401re  411re  429zi  407 
Rickta59yeah be careful about that ...
Rickta59that was originally only focused on the stm32f103 chips
Rickta59that is a different effort than the one ST is doing
Rickta59although they post there too
Rickta59https://github.com/stm32duino/Arduino_Core_STM32 this is the one best for F4 chips
Rickta59https://github.com/rogerclarkmelbourne/Arduino_STM32 this is best for the "blue pill" stm32f103cx boards
wondiwsLordCrc, don't the ARM chips need to include headers like the AVR ones need <avr/io.h>?
pwillardThey need their own build environment
wondiwspwillard, you mean this HAL?
lambda443does the arduino have any sort of non-volatile storage other than where the code is stored?
LordCrclambda443: eeprom
Muntdepends on the chip. Most of the time I think yes, it does.
Yotsonhttps://www.arduino.cc/en/Reference/EEPROM :)
lambda443hmm, so this is generally independent of where the code is stored right? i mean from this library user's point of view
YotsonWhatever you store with that lib. will still be there when the board resets.
lambda443i see, but looking at the datasheet of atmega328 where the program is stored(capacity of 32kb) and this eeprom memory(1kb) are different technologies? :D
wondiwslambda443, correct
wondiwsprogram is stored in flash, eeprom = eeprom (as the name suggests)
wondiwsyou might store calibration data in there, or scores if you make some simple game or something like that
lambda443haha, all i needed was 1 bit (this is entirely the prior state in my use case) :D
wondiwslambda443, and this isn't a constant bit?
pwillardYes, it is not touched when noew code is uploded
lambda443wondiws: no :D, i mean something like a boolean value, what mode of operation the device was in when it lost power
pwillardyou mean automatically... without you doing it?
lambda443yes, :D
pwillardeeprom is written to in bytes at a time... its non-volatile... but YOU have to write an read from code in program area
wondiwslambda443, keep in mind that eeprom wears off after a certain number of writes
lambda443wondiws: it becomes unpredictable?
pwillardso only write to it when you know its value needs to be different.
pwillardit has a limit of 100,000 writes or so before it stops writing to that location correctly.
lambda443that's a lot of writes :D
Yotson"The EEPROM has an endurance of at least 100,000 write/erase cycles." from the atmega328 datasheet.
YotsonAh, too late.
lambda443what happens after then? does the individual byte fail or does it ruin the whole neighborhood
lambda443ACTION tries a for (int i=0 i<100,001; i++) loop
lambda443lol as if they're 100% accurate, if it's the same with SSDs i imagine it's just an approximate worst case scenario
pwillardTechnically... its on a byte by byte basis... if you kill one byte with overwriting... the next bit... if not abused... should be fine.
devonrevengeIm using file descriptors, fcntl, termios and all that jazz to talk to a teensy at /dev/ttyACM0 and im only getting junk in reply does anyone know what could be wrong with this experiment? https://hastebin.com/ocajorikun.cpp and https://hastebin.com/esabamisoz.cpp
Rickta59did you put a scope on the uart out devonrevenge ?
Rickta59scope/logic analyzer
MikeDebiandevonrevenge, what do you exactly mean by "to talk to"? can't you even upload a sketch, is that right?
MikeDebiansorry, i've just seen your code
MikeDebiancan you send data with no problem? the only issue is receive it?
devonrevengeI havent tried to send
devonrevengeI thought I would read first the thing has readable data with <<
devonrevengeusing the old fstream
devonrevengethe scope?
devonrevengeits usb
MikeDebianI haven't tried in c++ but in C you can easily send data
MikeDebianI'll put a short code example
devonrevengethe problem with fstream is controlling the flow of reading and writing
devonrevengeIt does not know when to stop reading
devonrevengeI think it has to be done at this low level but tbf its linux programming and its a bit hard
MikeDebianthis is a basic code to send data to arduino over serial
MikeDebianit's written in C, no C++
devonrevengejsut ran into this while testing the device - might be useful recourse http://www.comptechdoc.org/os/linux/programming/c/linux_pgcserial.html
devonrevengethanks MikeDebian
MikeDebianon the arduino side you'll have to read the data. arduino will receive the data as numbers (0-255), you have then to convert them to chars. And if you are sending a string instead of a single char on arduino side you'll need to get every char byte by byte and compose a string made of those chars. You can delimit the data by a special char like "!"
devonrevengethats beautiful
devonrevengethe device I made has protocol that worked with the QT application I made
devonrevengeSo wierdly im kind of reverse engineering a command line host application
devonrevengeThanks mike I might have to use that but im going to keep trying to bend my head around the linux header method for a bit longer before I switch to thta
MikeDebiansorry devonrevenge, I've been away
MikeDebianthis is straight forward
MikeDebianthe piece of code I sent you works with no problem. of course you have just to define the data_tosend string
MikeDebianto read you use file=open("/dev/ttyACM0", "r");
devonrevengeYeah I can follow that - I meant there is a way with file descriptors and such I Was trying to understand that
MikeDebiannever explored that
devonrevengethat method would work better than my original solution that was using ifstream
devonrevengeand the shift operators - your way is probably the right way
devonrevengejust im exploring the linux side
MikeDebianjust give this way a shot, no need to over complicate I guess
MikeDebianI guess I put something wrong, it is not 0_RDWR but O_RDWR
MikeDebianreplace the zero with o
devonrevengeAh yeah
devonrevengethis system will work undoubtedly
devonrevengetheres also stty too
devonrevengeno idea what they are
MikeDebianread this: http://www.linusakesson.net/programming/tty/
devonrevengethats a good recourse thanks
devonrevengenice intro - the stock ticker
DatzHi, does anyone have any ideas about what the value of this zener diode may be on this relay? https://img1.banggood.com/thumb/view/upload/2012/lidanpo/SKU112790%20(2).jpg
Datzor if you are familiar with these modules, it may help
baldengineerwhy do you think it is a zener?
baldengineer(it probably isn't)
DatzI figured it was because of what it looked like
Datzit's between the relay's coil
Datzso.. any ideas on what it may be?
Datzoh, also there's a "D" next to the part
Datzsignal diode?
Datzfound what I was looking for: https://electronics.stackexchange.com/questions/110574/how-to-choose-a-flyback-diode-for-a-relay
Datzbaldengineer: thanks for nudging me out of the wrong direction
pwillardYeah, you cannot normally tell zener from a normal diade "visually"
pwillardand a zener would be really uot of place as a an emf kickback diode
pwillardout of place, rather
pwillardIt would be a standard rectifier like 1N4001 or signal diode 1N4148.
Datzah, ok thanks
guglicapwould anyone here be interested in an arduino controller server? the idea is that you have arduino as data sources and arduinos as "commandables", all connected to this central server and you can do stuff like when the humidity is below a certain value (humidity is coming from an arduino source) turn a light on in the living room (which would happen on a controllable arduino). You could also set events like
guglicapturn the lights off after 23pm
Muntguglicap : stick it on github, someone may find a use for it. Warm fuzzy feeling ensues
guglicapI'm still working on it, I'm starting it because I need it myself :D
guglicapIt's written in Go
guglicapThen I'll need to write the Arduino library
guglicapbtw, how would you go about writing a library on top of another library? in this case on top of Webduino
Muntguglicap : Depends on the library. Just include it in your own library .h file ?
guglicapalright, it's not something I'll have to do anytime soon
wondiwsI just downloaded Arduino Due in the Board Manager, where are the files stored now?
Muntwhat OS ?
wondiwsin the /hardware directory there's still only "avr"
wondiwsMunt, linux, I run it from my home directory
pwillardright... Arduino has ide independent locations where its stores cores...
pwillardthat way you an update the IDE version and not have to re-install everything
pwillardeach *location* is OS specific... but if you hunt for Arduino15 folder, you might find it
wondiwspwillard, I'm not running as root, so the locations where it can store it are limited
pwillardyou are missing the point. Root has nothing to do with it
Muntfind / -iname "cortex_handlers.c"
pwillardthe IDE has OS specific places where it keeps cores... often located by hinting for the Arduino15 folder
wondiwspwillard, yes, it's .arduino15
wondiwsthanks Munt, pwillard
pwillardhunting, rather
Muntney worries sur. happy foraging.
BHXHello everybody. Is there a known problem with software serial at higher baud rates? It neither seems to send nor receive valid characters at 115200 baud, even though the documentation states that softserial can work at 115200 baud.
deshipuBHX: yes, since it's software, it's very limited by the speed of your microcontroller
JoseBravoI'm sending a IR signal using my arduino mega, but the signal is too weak. I'm powering the arduino with a 12v 1amp source, can I use that source to power my IR led too using a transistor ?
BHXI am aware of that, still, why does the arduino reference say software serial can manage 115200 baud if it can't?
deshipuBHX: probably because it can, on some boards, with nothing else running, when the moon is in the right phase, etc.
BHXThere is nothing else running... :/ Oh well... :(
BHXJoseBravo, can your IR led handle more than 20mA?
JoseBravoBHX, yes
BHXWell, the mega ports can source/sink 40mA per pin, if you need more, yes, you can use a transistor.
BHXOh for fucks sake... the softserial doesn't even manage 57600 baud, wtf...
ApocxTry 9600. If you still have issues then, something else is the problem
BHXIt works up to 19200
JoseBravoBHX can I connect the 12v 1amp directly to threIR led or I do need to reduce amps or volts to power it?
BHXJoseBravo, you need to limit the current that flows through the led. If you want to power it from 12 volts directly, you need to use a higher-value resistor.
deshipuor, if it's a high-power led, a constant-current driver would be better
JoseBravo200R resistence will be ok for a 100mAh led? if the input is 1Amp ?
BHXIt depends on the voltage (12V - 1.5V) / 200R = 53mA, so it at least should not damage the led.
JoseBravoBHX deshipu thanks!
BHXEhm... the ... SoftwareSerial ONLY sends 0x00 on ANY baudrate other than 9600 or 19200???
BHXHow often is the U(S)ART used in arduino world to communicate to peripheral modules?
deshipuevery day
BHX*sigh*... alright, seems I might have to implement an auto baud rate detection then :(
Muntfirst world problems
BHXKind off, on the other hand, I'm not used anymore to debug the libraries I'm using... Usually I can just trust what the reference states... I was assuming the arduino libraries are well tested due to the popularity of the plattform :/
MuntI guess design your hardware choices around your requirements.
captainhairAnyone here familier with led strip lights? My friend has some hooked upto to a remote dimmer but when dimmed they buzz. Anyway around that?
BHXThat doesn't work if the requirement is "The module to be developed should be compatible with the arduino plattform" on the other hand, maybe I should advice my customer to have one "Arduino version" at 19200 baud and another version at 115200 baud :/
Fauxcaptainhair: "dimmer" isn't a specific enough term, basically dimmers are all garbage and modern lights try hard not to be broken by them.
BHXcaptainhair, is it an led dimmer?
captainhairI'm pretty sure it's an led dimmer yes. It was bought for dimming led strip lighting, though wouldn't surprise me if ebay seller didn't tell the truth?
captainhairAh so I need to find out the method it uses to dim
captainhairI can say the buzzing comes from the power supply, which I assumed was some kind of sde effect of the dimming process
captainhairI remember in my old house we had dimmers and some were much better than others in terms of noise
captainhairBut yeah I'm not sure I can be specific enough
captainhairOn a flip side then, are the any specific projects or terms I should be go ogling to find out how to use an arduino to trigger led strip lighting, including facility for dimming?
captainhairI'm thinking what this will come down to is counting how many leds are in our strips, calculate the power usage, Google suitable power supply
buZzcaptainhair: normally you dont use a 'dimmer' to dim leds
Snert_captainhair: I haven't seen any dimmer noise. I've used Leviton and Insteon so mebbe things are better now compared to backwhen.
captainhairWhat would something with that function, but for leds?
captainhairBe called* sorry typing on phone
captainhairIirc we've got about 4m of led strip
buZzthere -are- dimmers that can be used for leds, but i wouldnt call them common, normally when you 'tech up' to have ledstrips as lighting, you also add actual led drivers which can already dim
Snert_look into PWM of LEDs - pulse width modulation.
captainhairOoooh, I know about pwm.
Snert_but also....all of my current generation LED bulbs are dimmable and I've had zero problems.
captainhairSo that's how an Led "dimmer" would function, via pwm?
buZzvery often, yes
buZz(recognizable by 'blinky stripe' when you wave the led around really fast)
captainhairYeah, like damn modern cars
captainhairWith their searing bright led lights that flicker out the corner of your eye
captainhairIt's only single colour (white) so that does simplify things somewhat.
Snert_skip it. go modern. have a smartphone and dimmable and/or color changing bulbs.
captainhairAh, it's for a snake vivarium
captainhairSo only warm white is needed
Snert_even so...with a color changing bulb you can dial up the shade of white.
Snert_or simply put some cellophane over the standard dimmable white bulb.
captainhairThat's true, but we already have the light units made up and in use, it would be alot more effort to remake them just for a tinge of colour
captainhairShe only really uses it so she can see inside, the snake doesn't benifit from it :p
captainhairBut yeah at the moment the 4m or so of led strip is bring driven by a cheap figure-8 pin generic psu
Snert_you a snake breeder?
captainhairBut I'd like to add arduino control to it and replace it's power supply with something safer/better and get it to dim without buzzing
Snert_I gots a buddy that breeds pythons in his garage.
captainhairNah its my friends, she got given a big boa when she was young and now he's a bigger boa
captainhairWith a 2m wide viv that needs it's lighting sorted :p
Snert_want a blue python? $5k.
buZzthis talk about ledstrips makes me -again- desire WS2801 UV ledstrip
kkeis there some nifty trick to use serial only while developing and when going to "production" you just change some line or something and all serial.print stuff is skipped?
captainhairNo thanks I'm not actually into snakes myself :p but hers is a lovely fellow so I'm happy to help with his home
buZzkke: i just do #define DEBUG 1 at top code
buZzkke: and debug with if (DEBUG) serial.print("bla")
buZzjust change 1 line, done
kkesounds nice
kkewhat normally happens if you don't have serial connected? does it still print at whatever the baud rate is to nonexistent stream?
sibiriait's preferrable if you leave that portion of code out entirely using pragmas
sibiriarather than always including it as per buZz' example
sibiria#ifdef DEBUG
sibiriathen just comment the DEBUG definition out for production
kkethere's probably some macro thing for that? like the F("xyz") thing whatever that is
kkeor was it R
BHXsibiria: Is there a difference in using if(const/constexpr) vs #ifdef? (assuming an optimizing compiler)
sibiriathe latter will omit/include completely
sibiriathe former will always include, but not run
BHXNo it won't, an optimizing compiler will realize the dead code and remove on compile (hence optimizing compiler)
sibiriathat depends on multiple things
HrdwrBoBBHX: maybe
sibiriawhat happens in the eventual header, f.e.
sibiriaare the symbols referenced somewhere etc.
BHXI don't think that matters for const and constexpr or when talking about c++ static const
sibiriayou don't have to consider the possibility when using preprocessor macros
BHXthey are also not type checked or scoped, as well as prone to conflicting with internal macros
BHXWhat's more arduino-style "CRC8" or "no checksum" when transferring commands over serial?
blathijsBHX: No checksum is certainly more common, but not neccesarily a good idea ;-p
darkdrgn2kare there any connectors for the arduino like gpio pins that are "low profile"
blathijsdarkdrgn2k: Angled (90 degree) connectors could work?
MuntACTION is wondering how to move a 400KG box about a meter square into his garage
blathijs(easiest would be to solder on male angled headers on the arduino side, I'm not aware of any angled male pins to put on a wire)
d3jakeMunt: Rollers?
d3jakeWooden dowels?
Muntd3jake : Sounds logical
MuntQuite possibly going to get a CNC in a big heavy box. 400kg sounds pretty intimidating to unpack and move around.
d3jakeMunt: Just move it 50kg at a time, 8 times
d3jakeMunt: If you were down the street, I'd totally help out
Muntangle grinder time. that'll probably be a more likely option when i move house >,<
Muntcheers d3jake sir! I'll get hte kettle on
d3jakeMunt: Earl Grey?
Muntbuilders tea here!
Muntcauses involuntary sexist remarks to be thrown at passing women.
d3jakeNever seems to be doing work, but the tea brews itself anyway?
Munt<sexist comment removed>
d3jakeMunt: Remind me where you are?
brianxdoes anyone know how much computing power is used in brushless motor controllers and if the computer used always knows the exact position of the motor at all times?
d3jakefor position tracking you'd need a stepper, IIRC> Otherwise, you'd need some sort of external position tracking
brianxthere have long been methods to track motor position without external tracking like a graycode sensor. if i understand them correctly, brushless motor controllers tell the motor which coil to turn on or off and when so like a stepper they should know the position because they told a specific coil to be on.
Mrgoose-https://www.adafruit.com/product/1674?gclid=Cj0KCQjw4eXPBRCtARIsADvOjY0l3iHKbElSsCOn90E7XtFDJtz96y5BAAlUqtJZvau9bXW-9DI1Y2QaAs8rEALw_wcB , would this work similar to a surface transducer? Or does this one have to be used on "bone"
brianxthough like a stepper, i think they can only tell how far the motor has been told to move, not if it actually went there or where exactly it had started out.
brianxi'm guessing an arduino uno can't run a 10krpm brushless, but can an stm32?
brianxor is there hardware that assists the computer in acting fast enough?