Poll
Question: use SA9903B Energy IC how to use SPI interface with arduion UNO
intreface two board - 0 (0%)
show result in computer - 2 (100%)
show result in LCD  display - 0 (0%)
Total Voters: 2

Pages: [1]   Go Down
Author Topic: how to create energy meter network  (Read 852 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I used energy IC SA9903B (SAMES) build up an energy meter, i want to use arduino UNO interface this meter and show the result in computer. But i don't know how to connect and write the programe, this is the first time i use this board. Pls help and teach me, Thanks a lot!!
Logged

0
Offline Offline
Shannon Member
****
Karma: 159
Posts: 10409
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Well the chip datasheet is here: http://www.sames.co.za/files/sa9903b.pdf

A search on this forum doesn't reveal anything so you get to be the first to write an SPI driver(!)  Is there a particular module you have or are you thinking of working from scratch?  The chip is available in through-hole version at least.

You'll need to work out how to interface the current and voltage sensing to the chip too if there isn't a module with that built-in...
Logged

[ I won't respond to messages, use the forum please ]

Offline Offline
Newbie
*
Karma: 0
Posts: 3
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

where can i find the sample for spi driver programme!! If anyone knew, pls tell me!!!
Logged

Seattle, WA USA
Offline Offline
Brattain Member
*****
Karma: 547
Posts: 45982
Seattle, WA USA
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Have you even bothered to look at the SPI library? That chip is sending data in 8 bit chunks. What a coincidence that that is exactly the size of a byte, and that that is the unit of data that the SPI library is designed to read/write.
Logged

Grand Blanc, MI, USA
Offline Offline
Faraday Member
**
Karma: 71
Posts: 3499
CODE is a mass noun and should not be used in the plural or with an indefinite article.
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Interesting chip, but I find one thing odd about the "Typical application circuit" (Figure 8 in the datasheet). I'd have reversed the hot and the neutral. The way it is shown, the hot mains ends up connected to the SA9903B ground pin (and probably then also to anything else it might interface to).

Am I looking at that right?
Logged

MCP79411/12 RTC ... "One Million Ohms" ATtiny kit ... available at http://www.tindie.com/stores/JChristensen/

Pages: [1]   Go Up
Jump to: