How to serial read hundreds of sensors ?

  • 22 Replies
  • 7453 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:




 


Requirements for functional equivalence to conscious processing?
by DaltonG (General AI Discussion)
November 19, 2024, 11:56:05 am
Will LLMs ever learn what is ... is?
by HS (Future of AI)
November 10, 2024, 06:28:10 pm
Who's the AI?
by frankinstien (Future of AI)
November 04, 2024, 05:45:05 am
Project Acuitas
by WriterOfMinds (General Project Discussion)
October 27, 2024, 09:17:10 pm
Ai improving AI
by infurl (AI Programming)
October 19, 2024, 03:43:29 am
Atronach's Eye
by WriterOfMinds (Home Made Robots)
October 13, 2024, 09:52:42 pm
Running local AI models
by spydaz (AI Programming)
October 07, 2024, 09:00:53 am
Hi IM BAA---AAACK!!
by MagnusWootton (Home Made Robots)
September 16, 2024, 09:49:10 pm
LLaMA2 Meta's chatbot released
by spydaz (AI News )
August 24, 2024, 02:58:36 pm
ollama and llama3
by spydaz (AI News )
August 24, 2024, 02:55:13 pm
AI controlled F-16, for real!
by frankinstien (AI News )
June 15, 2024, 05:40:28 am
Open AI GPT-4o - audio, vision, text combined reasoning
by MikeB (AI News )
May 14, 2024, 05:46:48 am
OpenAI Speech-to-Speech Reasoning Demo
by MikeB (AI News )
March 31, 2024, 01:00: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

Users Online

309 Guests, 0 Users

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

Articles