You are on page 1of 14

5/7/2015

Seeeduinov4.0Wiki

Seeeduinov4.0
FromWiki

Contents
1Introduction
2BoardInterface,Features,andComponents
2.11.J2Pads
2.22.LEDsL,TX,RX
2.33.MicroUSBPort
2.44.SW2SlideSwitch(5V3V3)
2.55.DCPowerJack
2.66.U5ICSP
2.77.U5
2.88.SW1Button(Reset)
2.99.ExtraHeaderPads(Digital)
2.1010.U1
2.1111.ExtraHeaderPads(PowerandAnalog)
2.1212.UARTtoUSB(FTDI)Pads/Port
2.1313.U1ICSP
2.1414.GroveConnectors
2.15PWMPins
3Specification
4DriverInstallation
4.1Automatic
4.2Manual
5Examples/Applications
5.1Example1:YourFirstArduino/SeeeduinoProgram
(LEDBlink)
5.2Example2:UARTtoUSB(FTDI)and3.3VLogic
GettingStartedWithTheESP8266WiFiModuleWithout
ExtraCircuitryandWithoutWritingSoftware
6VersionTracker
7BugReport
8Resources/References

Introduction
TheSeeeduinov4.0isanATMEGA328Microcontrollerdevelopmentboard.TheATMEGA328PMUisahighperformance,lowpower
AVR8BitMicrocontroller.TheSeeeduinov4.0has14digitalinput/outputpins(6ofwhichcanbeusedasPWMoutputs)and6analogpins.
TheboardalsofeaturesanATMEGA16U2microcontrollerwhichactsasaUARTtoUSBconverterchipwhichmeansthattheboardcan
basicallyworklikeanFTDIchip.
TheSeeeduinov4.0inheritsallofArduinoDuemilanove'sandUno'sfeaturesbutalsoaddssomeofitsown.Thisboardiscompatibleto
Duemilanove'sandUno'spinlayout,andtheDuemilanove'sscrewholesandboarddimensions.
ForadetailedexplanationandoverviewofallthefeaturesseethesectioninthisWiKititledBoardInterface,Features,andComponents
(http://www.seeedstudio.com/wiki/Seeeduino_v4.0#Board_Interface.2C_Features.2C_and_Components).

BoardInterface,Features,andComponents
TheSeeeduinoboardoffersavarietyoffeatures,someofwhicharenotfoundinotherduinoboards(e.g.5Vor3.3Vlogic,extraheaderpads,
directUSBtoUARTconnectors).Seebelowforadetaileddescriptionoftheboard'sinterfaceanditsuniquefeatures.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

1/14

5/7/2015

Seeeduinov4.0Wiki

SeeduinoV4.0Board

1.J2Pads
ConnectedtotheATMEGA16U2's(U5chip)pinsPB4,PB5,PB6,andPB7pins.

2.LEDsL,TX,RX
The"L"LEDisconnectedtodigitalpin13,itcanbeuseda"status"LEDinyourprojects.TheTXandRXLEDsworkautomatically,they
letyouknowwhentheboardissendingorreceivinginformationrespectively.

3.MicroUSBPort
PortusedtoconnecttheboardtoyourPCforprogramming.MicroUSBistheubiquitousversionofUSB,foundinmostAndroidphones,
andotherdevices.Youprobablyhavedozensofthesecableslayingaroundyourhouse.

4.SW2SlideSwitch(5V3V3)
Slideswitchusedtochangethelogiclevelandpoweroutputoftheboardtoeither5Vor3.3V.Nowadaysmanynewandgreatsensorsare
beingdeveloptoworkwith3.3V,withotherduinoboardsyouwouldneedtoplacealogiclevelconverterbetweentheboardandthese
sensor(s),withtheSeeeduinoV4.0boardallyouhavetodoisslidetheswitch!

5.DCPowerJack
TheDCpowerjackallowsyourSeeeduinoboardtobepoweredfromawalladaptersothatyoucansupplymorepowertoyourprojectif
needed,forexamplewhenusingDCmotorsorotherhighpowerdevices.TheDCinputcanbe7V12V.

6.U5ICSP
ICSPandSPIportfortheATMEGA16U2chip.

7.U5
ATMEGA16U2chip.ThischipischargeoftheUSBtoUARTconnectionwhichisusedtoprogramtheATMEGA328PMU(U1)andcan
alsousetheFTDIlikeport.

8.SW1Button(Reset)

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

2/14

5/7/2015

Seeeduinov4.0Wiki

ThisbuttonisconvenientlyplacedonthesidetoallowyoutoresettheSeeeduinoboardevenwhenashieldplacedontop.Thisisn'tthecase
inotherduinoboardswherethebuttonisplacedontopmakingithardtoaccess.

9.ExtraHeaderPads(Digital)
Sometimesitisveryconvenienttoconnectasensor/devicetoyourboarddirectlyinsteadofgoingthroughabreadboard,orperhapsyouwant
tosolderthesensordirectlytotheboardonceyou'vecompletedyourproject,ormaybeyouwanttomonitortheoutputofthepinswhile
they'rebeenusedbyotherdevices.Inanycasewehaveaddedtheseextrapadstohelpyoualongtheway.

10.U1
TheATmega328PMUchip,thisisthebrainoftheboard,wherethecodeyouwritegoestobeexecuted.

11.ExtraHeaderPads(PowerandAnalog)
JustliketheExtraHeaderDigitalPads,theseextraconnectionsaresomethingwe'vepersonallycometorealizepeopleneedintheirprojects,
speciallythepowerconnectionsifyouwanttopowermorethanonesensor/devicewithouttheuseofabreadboard.

12.UARTtoUSB(FTDI)Pads/Port
Thisistheoutput/inputoftheUARTtoUSBfunctionoftheATMEGA16U2(U5)chip.Youcanusethisporttocommunicatedirectlywith
devicesthatrequireaUARTtoserialconnection,itisgreatforquicktestingthesedeviceswithoutwritinganycode.Thisportmakesthe
SeeeduinoboardworkessentiallylikeanFTDIchipifneeded.
TheoutputvoltageofVCCwillbeeither5Vor3.3V,whateveryouhaveselectedusingSW2.

13.U1ICSP
ThisistheICSPconnectionfortheATmega328PMU,itislocatedinthestandardICSP/SPIpositionforArduinoUno,Due,Mega,and
Leonardocompatiblehardware(e.g.shields)thatmayusethisconnector.TheSPIpinsinthisport:MISO,SCK,andMOSI,arealso
connectedtodigitalpins12,13,and11respectivelyjustlikethoseoftheArduinoUno.

14.GroveConnectors
Ourdepot(http://www.seeedstudio.com/depot/)hasavarietyofsensors/devicesthatcanmakeuseofthisI2CorUARTconnection.In
additionwesellindependentGroveconnectorstohelpyoumakeourownsensorconnections.TheI2CGroveconnectorisalsoconnectedto
analogpins4and5forSDAandSCLrespectivelyifyouwouldliketousethosepinsinstead.TheUARTGroveconnectorisconnectedto
digitalpins0and1forRXandTXrespectively.

PWMPins
Digitalpins3,5,6,8,9,and10canbeusedforpulsewidthmodulation(PWM).

Specification
Microcontroller:ATmega328PMU
OperatingVoltage:5Vor3.3V(choicebyslideswitch)
DigitalI/OPins:14
PWMChannels:6
AnalogInputChannels:6
DCJackInput:7v12v
DCCurrentperI/OPin:40mA
FlashMemory:32KB(ATmega328PMU)
RAM:2KB(ATmega328PMU)
EEPROM:1KB(ATmega328PMU)
ClockSpeed:16MHz

DriverInstallation
Automatic
TheArduino/SeeeduinodriversareincludedwiththeArduinoSoftware(http://arduino.cc/en/main/software).InWindows,oncetheArduino
Softwareisinstalled,pluginyourSeeeduinoboardtoyourPC'sUSBportandthedriverinstallationwillbeginautomaticallyasshowninthe
screenshotbelow:

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

3/14

5/7/2015

Seeeduinov4.0Wiki

SeeeduinoV4.0driverinstallationwindowasitappearsinWindows

Afteracoupleofminutes(25),thedrivershouldcompleteitsinstallationandyouwillthiswindow:

SeeeduinoV4driverinstallationcompletewindowasitappearsinWindows.

AtthispointtheSeeeduinoV4.0isreadytouse.

Manual
InWindows,iftheautomaticdriverinstallationfailsyoucaninstallthedriversmanually,theyarelocatedintheArduinoSoftwarefolder,to
dosofollowthesesteps:
1. Openthe"DeviceManager"windowbysearchingforit,andclicking"DeviceManager"asshownintheanimatedimagebelow.
Alternatively,ifthisdoesnotworkforyou,youmayrightclick"MyComputer">Manage>DeviceManager.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

4/14

5/7/2015

Seeeduinov4.0Wiki

HowtoopenthedevicemanagerwindowinWindows.

2. Inthe"DeviceManager"window,under"Ports(COM&LPT)"or"OtherDevices"lookfor"USBSerialPort",thisistheSeeeduino
boardbuthasn'tbeenrecognizedbyWindowsyet.Rightclickandselect"UpdateDriverSoftware..."

3. Next,choosethe"BrowsemycomputerforDriverSoftware"option.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

5/14

5/7/2015

Seeeduinov4.0Wiki

4. Finally,findandselectthefoldernamed"Drivers",locatedinthefolderoftheArduinoSoftwaredownload.

5. Ifthedriverwasinstalledsuccessfullyyoushouldseethedialogboxbelow.

6. Inthe"DeviceManager"windowthedeviceyourightclickedonshouldnowdisplay"ArduinoUno(COMXX)"or"USBSerial
Port(COMXX)"asshownbelow.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

6/14

5/7/2015

Seeeduinov4.0Wiki

7. AndwhenyouopentheArduinoIDEthesameCOMportwillalsobeavailable.RemembertocloseandopentheArduinoIDEifit
wasopenedduringthedriverinstallationortheSerialportwillnotbevisible.

Examples/Applications
Example1:YourFirstArduino/SeeeduinoProgram(LEDBlink)
Asdescribedinthe"BoardInterface,Features,andComponents"sectionofthisWiKi,theSeeeduinoboardhasanonboardLEDconnected
topin13.Inthisexamplewe'llshowyouhowtoblinkthatLED.BlinkinganLEDisthesimplestprogramonecanwritetogetacquainted
withaboard'shardware,andsoftware.
ToblinktheLEDinyourSeeeduinoboard,followthestepsintheanimatedimagebelow:

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

7/14

5/7/2015

Seeeduinov4.0Wiki

HowtoblinktheLEDofyourSeeeduinov4.0board.

Orifyoupreferwehavelistedanddescribedeachofthesteps:
1. OpentheArduinoIDE
2. SelecttheSeeeduinoboardbygoingtoTools>Board>ArduinoUno.TheSeeeduinoboardisrecognizedasanArduinoUnoboard.

3. MakesurethattheSerialCOMportwhereyourSeeeduinoboardisconnectedtoisselectedbygoingtoTools>SerialPort>COMXX
whereCOMXXistheCOMportofyourboard.
http://www.seeedstudio.com/wiki/Seeeduino_v4.0

8/14

5/7/2015

Seeeduinov4.0Wiki

4. Openthe"Blink"examplebygoingtoFile>Examples>0.1Basics>Blink.Anewwindowwithcodewillopen,youmayclosethe
previous/originalArduinowindow.

TOP

5. Inthisnewwindowclickthe"Upload"button,thiswillupload/sendthecodetoyourSeeeduinoboard.Waitafewsecondsforthe
"DoneUploading"messagetodisplay,thismessagessignalsthatthecodewassuccessfullywrittentotheboardandreadytouse.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

9/14

5/7/2015

Seeeduinov4.0Wiki

6. TheblueonboardLEDontheSeeduinoboardshouldstarttoblinkasshownbelow:

SeeeduinoBlinkingLED

Example2:UARTtoUSB(FTDI)and3.3VLogicGettingStartedWithTheESP8266WiFiModuleWithout
ExtraCircuitryandWithoutWritingSoftware
TwogreatfeaturesoftheSeeeduinoV4.0boardwhencomparedtoitscompetitorsisitsabilitytoswitchbetween5Vand3.3Vlogic,andits
USBtoUARTportessentiallymakingitanFTDIlikedevicegreatforquicklygettingstartedwithdevicesthatusetheUART
protocol/interface.
InthisexamplewewillshowyouhowtousethepopularESP8266WiFimodule(http://www.seeedstudio.com/depot/WiFiSerial
TransceiverModulewESP8266p1994.html?cPath=19_20).Thisexampleisamazingbecausewithotherduinoboardsyouwouldrequirea
voltageconverter,alogicconverter,andsoftwaretocontroltwoseparateSerialportsbutwiththeSeeeduinoboardnoneofthesethreethings
arerequired.
Step1:PuttingTheBoardIn3.3VMode
1. RemoveallpowersourcesfromtheSeeeduinoboardsothatitiscompletelyoff.
2. SlideswitchSW2overtothe3V3setting.
http://www.seeedstudio.com/wiki/Seeeduino_v4.0

10/14

5/7/2015

Seeeduinov4.0Wiki

Step2:ESP8266SeeeduinoConnections
ConnectyourESP8266WiFimoduletotheSeeeduinoboardasfollows(Seethephotobelowforaschematic):
SeeeduinoPin

ESP8266Pin

GND

GND

TX

RX

RX

TX

CH_PD

VCC

VCC

VCC

SeeeduinoV4.0andESP8266Schematic.SW2showsthesettingat5Vbutpleaseslideitoverto3V3.

Step3:SendingCommands
1. ConnectyourSeeeduinoboardtotheUSBportofyourPC.
2. OpentheArduinoIDE
3. Uploadablankprogramtoyourboard,ormakesurethattheprogramithasdoesnotuseranySerialfunctions.
BlankProgram:
voidsetup()
{
}
voidloop()
{
}

4. OpentheArduino"SerialMonitor"window.
5. IntheSerialMonitorwindowchangeyoursettingsto"BothNL&CR"andbaudrateto"9600",orthecorrectbaudrateforyour
ESP8266sinceitmightbedifferent.
6. TheESP8266isreadytoreceiveandsendinformation/commands.Trysending"AT+RST"toresetthemodule,thensend
"AT+CWLAP"tolistalltheaccesspointsyourESP8266isabletodetect.Seetheimagebelowforanexampleresponse.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

11/14

5/7/2015

Seeeduinov4.0Wiki

ESP8266outputtotheSerialMonitorwindowwhentheAT+RSTand
AT+CWLAPcommandsaresent.

VersionTracker
BelowisalistofchangesthathavebeenmadetotheSeeeduinoboardoveralltheversions.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

12/14

5/7/2015

Seeeduinov4.0Wiki

Revision

Descriptions

SeeeduinoV0.9

Initialpublicrelease

ReleaseDate

Seeeduinov1.1

1. FixedbugunnessesaryviaonPin4wire.
2. FixedbugLablemistakenlycoveredbyswitches.
3. AddedI2Candsensorport.
4. Addedan100uFcapacitorforvccswitch.
5. Groupednew100milgridpins.
6. Replacedresetbuttonswithmetalones.
7. Rearrangedtextsandlablesforclearerindications.

Seeeduinov2.12

1. Zeroexternalpowerconsumptionwhenswitchedoff
2. StrongerSwitches
3. Secondpowersupplyfor5Vdirectinput.[Caution]USE5VONLY!
4. 150mAdrivercapacityunder3.3V
5. 1.0mmslimPCBforlighterweighs
6. Extrarowreservedforpinheaders

Seeeduinov2.2

1. USB/EXTpowerautoselect
2. Upgradepowercapacitor
3. Cleanuplayouts
4. Reseteasier
5. RealQuartzCrystal
6. ExternpowerDiodechangeto1N4004(morepoweronVinpin)

Dec16,2010

Seeeduinov2.21

1. UpgradedtoStrongerminiUSBconnector.

Jan12,2011

Seeeduinov3.0

1. changeJSTconnectortoDCJackconnector

Jan1,2012

Seeeduinov4.0

1. RemoveRSTswitch
2. ATMEGA16U2asUSBbusconverterchip
3. DCtoDCconvertertoreducepowerdissipation
4. MicroUSB
5. UNObootloader

Sep1,2014

BugReport
ThesilkprintedofPWMhasanerror.PinofPWMshouldbeD9,D10,D11.Wewillfixthiserrorasap.

Resources/References
Seeeduinov4.0Eaglefile(http://www.seeedstudio.com/wiki/File:Seeeduino_v4.0_Eagle.zip)
Seeeduinov4.0PDFfile(http://www.seeedstudio.com/wiki/File:Seeeduino_v4.0_pdf.pdf)
http://www.seeedstudio.com/wiki/Seeeduino_v4.0

13/14

5/7/2015

Seeeduinov4.0Wiki

ATMEGA328PMUSummary(http://www.atmel.com/Images/Atmel82718bitAVRMicrocontrollerATmega48A48PA88A
88PA168A168PA328328P_datasheet_Summary.pdf)
ATMEGA16U2Summary(http://www.atmel.com/Images/7799S.pdf)
Retrievedfrom"http://www.seeedstudio.com/wiki/index.php?title=Seeeduino_v4.0&oldid=104726"
Categories: Seeeduino ArduinoCompatible MicroControllers
Thispagewaslastmodifiedon16April2015,at12:24.
Thispagehasbeenaccessed4,139times.

http://www.seeedstudio.com/wiki/Seeeduino_v4.0

14/14

You might also like