How to serial read hundreds of sensors ?

  • 22 Replies
  • 6623 Views
*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: How to serial read hundreds of sensors ?
« Reply #15 on: November 28, 2017, 05:41:12 pm »
 The GPIO  pins can read external voltages or output a voltage. These pins are on the out side of the board. Python code can access them:)

Access to GPIO with Python on Your Raspberry Pi 3:   

https://www.arrow.com/en/research-and-events/articles/raspberry-pi-gpio



*

ranch vermin

  • Not much time left.
  • Terminator
  • *********
  • 947
  • Its nearly time!
Re: How to serial read hundreds of sensors ?
« Reply #16 on: November 29, 2017, 01:37:18 pm »
Like Keghn is saying,   u need a giant parallel buss but u can only do that from scratch cause consumer hardware pretty much always just recurses down a single wire (usb type device) cause its 10000 times easier that way - and having busses thicker than your arm is something youd only see in a tardis somewhere in time. :)

*

Thierry

  • Nomad
  • ***
  • 60
  • God is a sphere. Press 9 to enter.
Re: How to serial read hundreds of sensors ?
« Reply #17 on: November 30, 2017, 11:32:04 am »
I took some informations.

It seems that multiplexing in my case would bring :
- a huge number of wires going to the same place
- non accurate signals
- a lot of "noise" due to the distance between sensors and processor.

What some guys suggest is to have a master processor receiving data from slave processors themselves connected to sensors (1 slave per sensor).

In this case :
- 4 short wires only between each sensor (A, B, VCC, GRND)
- Technically easier to add new sensors and manage the global architecture

This is the schematic they attached :

http://www.electro-tech-online.com/attachments/rs485-png.49989/

What do you think of this ?

*

Zero

  • Eve
  • ***********
  • 1287
Re: How to serial read hundreds of sensors ?
« Reply #18 on: November 30, 2017, 12:58:03 pm »
If each sensor emits data at a given frequency (wireless), you can catch'em all at once using Fourier transform. Just use radio waves instead of audio waves!
Quote
An MP3 splits a song into short segments. For each audio segment, Fourier’s trick reduces the audio wave down to its ingredient notes, which are then stored in place of the original wave.
http://nautil.us/blog/the-math-trick-behind-mp3s-jpegs-and-homer-simpsons-face

50%  :uglystupid2:
50%  8)

*

Thierry

  • Nomad
  • ***
  • 60
  • God is a sphere. Press 9 to enter.
Re: How to serial read hundreds of sensors ?
« Reply #19 on: December 01, 2017, 04:37:51 pm »
Hey guys !! I found my Christmas gift !  :D :D :D :D

I don't know what results I will get but at least I must try it ! (yes it is multiplex but I must try to see if it is ok or not)

http://mayhewlabs.com/products/arduino-mux-shield

EDIT : WTF the cost of delivery to France !!!!!!!!!!!!!  :uglystupid2: :tickedoff: it double the price !!!
I will look at China stuff then !
« Last Edit: December 01, 2017, 10:06:20 pm by Thierry »

*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: How to serial read hundreds of sensors ?
« Reply #20 on: December 01, 2017, 05:48:39 pm »
  Another way is to just daisy chained all devices and sensors together. The cpu, or arduino, starts a pulse that activate
the first device. When the device shut down it passes a pulse to the next device int the daisy chain. Odd devices accept
write data, even devices are read data to the cpu. 


*

Korrelan

  • Trusty Member
  • ***********
  • Eve
  • *
  • 1454
  • Look into my eyes! WOAH!
    • YouTube
Re: How to serial read hundreds of sensors ?
« Reply #21 on: December 02, 2017, 01:27:02 pm »
For one of my projects I used a matrix of 20X20 LED’s that simply changed intensity/ brightness according to sensory stimulus.

I then just pointed a webcam at the matrix and used software to read the values into a program.

I also once used a bank of simple light detecting resistors (LDR) stuck onto a monitor.  So I could control servos etc just by changing the brightness of the section of screen under the LDR's.  That was on a ZX81... so quite a few years ago lol.

Cheap, quick and easy.

 :)
It thunk... therefore it is!...    /    Project Page    /    KorrTecx Website

*

keghn

  • Trusty Member
  • *********
  • Terminator
  • *
  • 824
Re: How to serial read hundreds of sensors ?
« Reply #22 on: December 23, 2017, 06:09:17 pm »
Servo Motor With Raspberry Pi and Maestro board:

https://www.youtube.com/watch?v=mX6P9CwSm7I&t=227s


 


OpenAI Speech-to-Speech Reasoning Demo
by ivan.moony (AI News )
Today at 01:31:53 pm
Say good-bye to GPUs...
by MikeB (AI News )
March 23, 2024, 09:23:52 am
Google Bard report
by ivan.moony (AI News )
February 14, 2024, 04:42:23 pm
Elon Musk's xAI Grok Chatbot
by MikeB (AI News )
December 11, 2023, 06:26:33 am
Nvidia Hype
by 8pla.net (AI News )
December 06, 2023, 10:04:52 pm
How will the OpenAI CEO being Fired affect ChatGPT?
by 8pla.net (AI News )
December 06, 2023, 09:54:25 pm
Independent AI sovereignties
by WriterOfMinds (AI News )
November 08, 2023, 04:51:21 am
LLaMA2 Meta's chatbot released
by 8pla.net (AI News )
October 18, 2023, 11:41:21 pm

Users Online

269 Guests, 0 Users

Most Online Today: 335. Most Online Ever: 2369 (November 21, 2020, 04:08:13 pm)

Articles