๐ฌ MyMultisensors
-
Very nice looking project! And someone else who loves judo ;)
Will you upload your schematics? I am working on a similar (although not as integrated) project and perhaps I can learn some things from your board. -
@LastSamurai
yeah thx, samurai and budo :) On my side, I love Wing Chun kungfu (not wushu!). So Ip Man is one of my favorite movie lol! I practise a little bit JJB and Eskrima too, ; fun is there are cross concepts like triangle and keep/catch the centerline..Schematic is already uploaded. I was thinking to upload the other files but I would like to test it before someone try and need me for debug (I will have already enough debug on my side...). Do you need something in particular?
-
Cool this is the MySensors martial arts corner ;-) I do Tai Chi Chuan and Tai Chi Sword. The latter I started recently but I'm loving it. We learn the complete form but also sword handling and fighting skills.
-
@carlierd
cool :) yep, I miss time too..I'm lucky to have a mookjong near my desk :) so I can make a break when I have a problem in my work! plus our forms don't take lot of place to train, very pratical, when you are in car or waiting somewhere :laughing:@TheoL
very cool, I hope you enjoy too :) int vs ext? sticking vs pushing hand? direct vs circular? which one is better? none lol! almost same goals, personal style, and finally the fun is it's like playing chess! So the boards I design are always routed with 45ยฐ or circular route! no right angle route..nonsense ahah! Be like water my friend :blush:Now, sorry guys, don't laugh, that's embarrassing, I have to stop this (interesting) OT :disappointed: I feel like you I could spend my time to talk about this, sport and wellness...but I shoud try to attract openhardware makers than martialart.com !! So what was I saying??? huum..50 years on coincell?.. :blush:
-
@carlierd
the W not the HW. It's because CW is smaller than the W version. They are software compatible.For the pullup, it's a good practice to be sure to have the right level on the CS line. you can forgot it sometimes, but sometimes not having it on each cs line can be source of useless trouble..
-
@carlierd
yes I know..and sure the cs line can be output=high in the setup sketch part...
briefly for spi, you have: mosi (data output of master/mcu), miso (data input), sck (clock sync). and the CS line is active low when you want to select the chip.
So if for any reason, the CS line is in an unknown state (for instance when mcu reset or other case..), that could give some strange working. And again more trouble, if you have other chip sharing the same spi bus, and no pullup on each CS to give a nice voltage level and choose the right chip..Here a nice article: http://www.dorkbotpdx.org/blog/paul/better_spi_bus_design_in_3_steps
-
Will the board be possible to buy assembled?
-
yep, it's planned. I will try to make this option possible.
sorry for delay, I have lot of other things in progress. but it should not take too much time before I give more news. -
I am very happy because the pir circuit trigger very well, I'm rather impressed. Yeah :smiley:
so far, very few tests because I was playing with software on other things but I've tested two different lens as the pir sensor range is mostly dependant of the lens.- 8308 type
http://www.ebay.com/itm/10-Infrared-Sensor-8308-4-mini-White-Fresnel-Lens-body-pyroelectric-PIR-/141271386262
I got a good 3meter range. - 8120 type
http://www.ebay.com/itm/10-PIECE-White-Fresnel-8120-PIR-infrared-mini-sensor-lights-small-Lenses-/141271544319
Is my favorite for the moment. Compact and a good 5meter. I just move a little bit and it trigger.
I will give more results. I'm working on it today ;) I need to boost..tonight no work! it's champions league final :smile:
- 8308 type
-
and the interesting thing is power consumption (pir circuit only) : 1.8uA in sleep mode, 2.5uA active, promising :)
-
still working nice for the moment :) I have modified my schematic a bit, removed few useless things, and improved others for power consumption and a bit of miniaturization ;)
I am working on the software too. to improve power consumption during blindtime etc.
@hek
I'm using pinchange in my sketch, for few pins. Actually it's raw, I did it with raw registers too, but that's not user friendly and I have already seen this question. I'm looking to make it mysensors now. I am using the EnableInterrupt lib.
So if I use the lib with mysensors I get an error "multiple definition of `__vector_2' ". I see that comes from myHwATmega328 part, from "attachinterrupt".What do you think about this:
- a special define like MYS_USE_EXTINT.
- If defined, in myHwATmega328, in the sleep methods we use the EnableInt lib instead of arduino attachinterrupt
- keep the isr routines for int0 and 1 handled as it is
- and for the others isr, in the main sketch so user/I could do what I want in my irq.
something like this in sketch then,
enableInterrupt(PIR_INT_PINH, irq_pirh, RISING); enableInterrupt(PIR_INT_PINL, irq_pirl, RISING);It's roughly explained :) Is it planned or done? Which way do you prefer??
-
Hi.
so it's still a wip but I'm getting close of what I want :)
because using a coincell (without regul) is more tricky. due to internal res of coin cell ;)An example, the PIR circuit was working nice in standalone (without nothing around, it uses 1.6uA in trigger or not). As soon as I added the atmel chip (and nothing more, no radio at all, no i2c..). Bingo, nice to meet you false triggers!!
This was the coincell which was making me a joke lol As soon as atmel woke up I got a cycling false trigger yeah. In fact having atmel internal 8mhz is enough power hungry to make a nice voltage drop and the pir trigger.
So I solved it in sketch, and a bit of hardware too ;)I am curious to know if others people playing with coincell will have long lifetime without some optimizations (hardware and software..).
So now, the actual state for me this week end, is to connect radio and play again. And add some stuff about listenmode and atc to improve overall..
About my previous post about external int, no more problem, I am using raw registers for external int and sleep function. because I need some custom things. Plus, the more libs and features, the less mem I have and I have not so much space...I will need to disable some debugs lol if I want all my sensors, signing, rfm69 with new mode etc..
I'm not really surprised, I was expecting a bit this behaviour, that's why I said this would be a nice sketch challenge :)
-
@NeverDie saying this you're challenging me lol :) more seriously, I have no real issue.
what would you simplify? can't be more simple imho. no regulator, just batt.. I still can use 2xaa/aaa. That would ease a bit. the circuit works fine as expected ;) but that would be less fun without optimizations ;)Things I have thought when I did my choice:
- as the pir analog is sensitive, I wanted no regul for this one. or I would go for a booster and then more hardware debug (I have already a one cell optimized design that I plan to try with this pir, just to know if there will be a rev2 lol..). But that would need more care&filtering with good quality components (shielded inductors, ferrites, capacitors...) to prevent false trigger.
Like this one I did https://forum.mysensors.org/topic/2951/my-mysx-multisensors-board or my ulpnode clone ;) That would be an overall more expensive solution. but with less maintenance and one cell ;) - use 1uA digital PIR...not cheap
- use a better mcu like cc1310 with its power domains and events. but not mysensors/arduino.
- coincell is just for the fun as this design. and like I said I can use 2 lithium or alkaline.
- as the pir analog is sensitive, I wanted no regul for this one. or I would go for a booster and then more hardware debug (I have already a one cell optimized design that I plan to try with this pir, just to know if there will be a rev2 lol..). But that would need more care&filtering with good quality components (shielded inductors, ferrites, capacitors...) to prevent false trigger.
-
Few pics of another board i have just assembled. I have just noticed I didn't show any proof/pics :confused:
Top view

With this lense, I get 5-6m.

Bottom view, with rfm69, coincell holder and AVRSPI/FTDI connector.

I am waiting for rev 1.1 pcb. No big changes, I improved a bit silkscreen, removed the schmitt trigger to save some power and in place i use pinchange int, makes more sense. Few routes and size changed.
Though, 328p is memory limited, I have to disable debug for this one!