Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > sci.electronics.design > #461199
| From | Don Kuenz <g@crcomp.net> |
|---|---|
| Newsgroups | sci.electronics.design |
| Subject | Re: The internet of things, or the internet that sings? |
| Date | 2017-05-21 23:07 +0000 |
| Organization | A noiseless patient Spider |
| Message-ID | <201700521e@crcomp.net> (permalink) |
| References | <ofscpa$53c$1@gioia.aioe.org> |
Jan Panteltje <pNa0nStpealmtje@yahoo.com> wrote: > Whatever, been playing with those POE powered sensors, > small box, yesterday and 2day was the turn for a CO sensor. > > Using a MQ-7 sensor, small boxes arrived, could finally put something together: > http://www.panteltje.com/pub/CO_sensor_POE_UDP_PCB_IMG_6203.JPG > The upside-down sub-board is an ebay ethernet module, but it only has a > ENC28J60 chip on it and I already replaced the ethernet connetor, > so next time I will just use the chip.. simpler, > domne that in my LED controller. > > Anyways, this is NOT for 48 V POE but for <= 24 V, mainly because of the LM2296 > Use an other sjip for higher voltage, > > This is what the ciruit looks like in pencil: > http://panteltje.com/pub/CO_sensor_UDP_POE_circuit_diagram_IMG_6204.JPG > > And the test code (do not use, I have changed the 60 / 90 second delays to just 4 seconds... > else testing takes so long.. > http://panteltje.com/pub/co_sensor_udp_MQ-7_first_test_do_not_use_.asm > anyways that is clearly marked in the code as ; WAS TEST > other things need checking too) > > So, it sends UDP to some IP address and you probably noted the 2 x 4 holes on the board, > well the firts 4 are for the PIC programmer, and the other 4 for logic level RS232 for config, > if you type 'h' it shows this menu: > > Panteltje (c) co_sensor_udp_MQ-7-0.1 > > > Commands > AnnnENTER set source IP address A.xxx.xxx.xxx saved in EEPROM > BnnnENTER set source IP address xxx.B.xxx.xxx saved in EEPROM > CnnnENTER set source IP address xxx.xxx.C.xxx saved in EEPROM > DnnnENTER set source IP address xxx.xxx.xxx.D saved in EEPROM > EnnnENTER set destination IP address E.xxx.xxx.xxx saved in EEPROM > FnnnENTER set destination IP address xxx.F.xxx.xxx saved in EEPROM > GnnnENTER set destination IP address xxx.xxx.G.xxx saved in EEPROM > HnnnENTER set destination IP address xxx.xxx.xxx.H saved in EEPROM > LnnnnnENTER set source port, saved in EEPROM > PnnnnnENTER set destination port, saved in EEPROM > S show data on serial out > s do not show data on serial out, default. > v print status, IP address, ports, and MACs > WnnnnnENTER CO alarm beeper level, default 17, to disable local alarm beeper use 65535 > XnnnENTER PWM 1.5V level, default 29 > h help (this) > > On the receiving side you could do > # netcat -u -l -p 1082 > and then it looks like this: > 392 > 394 > 392 > 394 > 398 > 396 > 395 > 394 > 394 > > Thse are for now actually ADC steps (x/1024 at 4.096 V PIC internal > reference output from sensor into resistor), > so you need to calibrate and do that log thing, > have not decided yet if I wil do that on board or at the RX end (an > UDOP server is running for all the sensors) > > The missing thing here (see circuit diagram) is the alarm beeper / > driver transistor, > as my alarm beeper did not fit in the box, > maybe I will find a smaller one. > > So, that was / is the weekend tronix. > > Linux snort: > 05/21-17:43:23.853504 01:02:03:04:05:0B -> B8:27:EB:0A:2C:43 type:0x800 len:0x40 > 192.168.178.82:1082 -> 192.168.178.73:1082 UDP TTL:128 TOS:0x0 ID:46078 IpLen:20 DgmLen:33 > Len: 5 > 33 39 30 0D 0A 390.. > > Food pizza! > The smell of molten lead... > I am still alive... > > > PS you have to think of a MAC addres for this thing, it is a #define in the code. > I keep making my own MACs. Very impressive! That's one well earned pizza. In order to better follow along, my next parts order probably ought to include a PIC16F690 and a PIC18F14K22. You seem fond of both, judging by your PIC page. Thank you, -- Don Kuenz KB7RPU
Back to sci.electronics.design | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
The internet of things, or the internet that sings? Jan Panteltje <pNa0nStpealmtje@yahoo.com> - 2017-05-21 15:46 +0000
Re: The internet of things, or the internet that sings? Don Kuenz <g@crcomp.net> - 2017-05-21 23:07 +0000
Re: The internet of things, or the internet that sings? Jan Panteltje <pNa0nStpealmtje@yahoo.com> - 2017-05-22 08:02 +0000
Re: The internet of things, or the internet that sings? co_pic website now up Jan Panteltje <pNa0nStpealmtje@yahoo.com> - 2017-05-25 10:02 +0000
Re: The internet of things, or the internet that sings? co_pic website now up Jan Panteltje <pNa0nStpealmtje@yahoo.com> - 2017-05-25 17:25 +0000
csiph-web